@bit-sun/business-component 4.2.1-alpha.7-aiwei → 4.2.1-alpha.8-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1026 -762
- package/dist/index.js +1026 -762
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +3 -3
- package/src/components/Functional/SearchSelect/index.tsx +13 -0
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (
|
|
223
|
+
if (e.includes(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,113 +230,306 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
-
i = e;
|
|
283
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
-
} catch (t) {
|
|
285
|
-
i = e, c = 1, u = t;
|
|
286
|
-
} finally {
|
|
287
|
-
f = 1;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return {
|
|
291
|
-
value: t,
|
|
292
|
-
done: y
|
|
293
|
-
};
|
|
233
|
+
function _regeneratorRuntime() {
|
|
234
|
+
_regeneratorRuntime = function () {
|
|
235
|
+
return e;
|
|
236
|
+
};
|
|
237
|
+
var t,
|
|
238
|
+
e = {},
|
|
239
|
+
r = Object.prototype,
|
|
240
|
+
n = r.hasOwnProperty,
|
|
241
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
242
|
+
t[e] = r.value;
|
|
243
|
+
},
|
|
244
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
245
|
+
a = i.iterator || "@@iterator",
|
|
246
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
247
|
+
u = i.toStringTag || "@@toStringTag";
|
|
248
|
+
function define(t, e, r) {
|
|
249
|
+
return Object.defineProperty(t, e, {
|
|
250
|
+
value: r,
|
|
251
|
+
enumerable: !0,
|
|
252
|
+
configurable: !0,
|
|
253
|
+
writable: !0
|
|
254
|
+
}), t[e];
|
|
255
|
+
}
|
|
256
|
+
try {
|
|
257
|
+
define({}, "");
|
|
258
|
+
} catch (t) {
|
|
259
|
+
define = function (t, e, r) {
|
|
260
|
+
return t[e] = r;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function wrap(t, e, r, n) {
|
|
264
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
265
|
+
a = Object.create(i.prototype),
|
|
266
|
+
c = new Context(n || []);
|
|
267
|
+
return o(a, "_invoke", {
|
|
268
|
+
value: makeInvokeMethod(t, r, c)
|
|
269
|
+
}), a;
|
|
270
|
+
}
|
|
271
|
+
function tryCatch(t, e, r) {
|
|
272
|
+
try {
|
|
273
|
+
return {
|
|
274
|
+
type: "normal",
|
|
275
|
+
arg: t.call(e, r)
|
|
276
|
+
};
|
|
277
|
+
} catch (t) {
|
|
278
|
+
return {
|
|
279
|
+
type: "throw",
|
|
280
|
+
arg: t
|
|
294
281
|
};
|
|
295
|
-
}
|
|
282
|
+
}
|
|
296
283
|
}
|
|
297
|
-
|
|
284
|
+
e.wrap = wrap;
|
|
285
|
+
var h = "suspendedStart",
|
|
286
|
+
l = "suspendedYield",
|
|
287
|
+
f = "executing",
|
|
288
|
+
s = "completed",
|
|
289
|
+
y = {};
|
|
298
290
|
function Generator() {}
|
|
299
291
|
function GeneratorFunction() {}
|
|
300
292
|
function GeneratorFunctionPrototype() {}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return this;
|
|
304
|
-
}), t),
|
|
305
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
-
function f(e) {
|
|
307
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
-
}
|
|
309
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
293
|
+
var p = {};
|
|
294
|
+
define(p, a, function () {
|
|
310
295
|
return this;
|
|
311
|
-
})
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
296
|
+
});
|
|
297
|
+
var d = Object.getPrototypeOf,
|
|
298
|
+
v = d && d(d(values([])));
|
|
299
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
+
function defineIteratorMethods(t) {
|
|
302
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
+
define(t, e, function (t) {
|
|
304
|
+
return this._invoke(e, t);
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
function AsyncIterator(t, e) {
|
|
309
|
+
function invoke(r, o, i, a) {
|
|
310
|
+
var c = tryCatch(t[r], t, o);
|
|
311
|
+
if ("throw" !== c.type) {
|
|
312
|
+
var u = c.arg,
|
|
313
|
+
h = u.value;
|
|
314
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
+
invoke("next", t, i, a);
|
|
316
|
+
}, function (t) {
|
|
317
|
+
invoke("throw", t, i, a);
|
|
318
|
+
}) : e.resolve(h).then(function (t) {
|
|
319
|
+
u.value = t, i(u);
|
|
320
|
+
}, function (t) {
|
|
321
|
+
return invoke("throw", t, i, a);
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
a(c.arg);
|
|
325
|
+
}
|
|
326
|
+
var r;
|
|
327
|
+
o(this, "_invoke", {
|
|
328
|
+
value: function (t, n) {
|
|
329
|
+
function callInvokeWithMethodAndArg() {
|
|
330
|
+
return new e(function (e, r) {
|
|
331
|
+
invoke(t, n, e, r);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
function makeInvokeMethod(e, r, n) {
|
|
339
|
+
var o = h;
|
|
340
|
+
return function (i, a) {
|
|
341
|
+
if (o === f) throw Error("Generator is already running");
|
|
342
|
+
if (o === s) {
|
|
343
|
+
if ("throw" === i) throw a;
|
|
344
|
+
return {
|
|
345
|
+
value: t,
|
|
346
|
+
done: !0
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
for (n.method = i, n.arg = a;;) {
|
|
350
|
+
var c = n.delegate;
|
|
351
|
+
if (c) {
|
|
352
|
+
var u = maybeInvokeDelegate(c, n);
|
|
353
|
+
if (u) {
|
|
354
|
+
if (u === y) continue;
|
|
355
|
+
return u;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
+
if (o === h) throw o = s, n.arg;
|
|
360
|
+
n.dispatchException(n.arg);
|
|
361
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
+
o = f;
|
|
363
|
+
var p = tryCatch(e, r, n);
|
|
364
|
+
if ("normal" === p.type) {
|
|
365
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
+
return {
|
|
367
|
+
value: p.arg,
|
|
368
|
+
done: n.done
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
+
}
|
|
317
373
|
};
|
|
318
|
-
})();
|
|
319
|
-
}
|
|
320
|
-
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
-
var i = Object.defineProperty;
|
|
322
|
-
try {
|
|
323
|
-
i({}, "", {});
|
|
324
|
-
} catch (e) {
|
|
325
|
-
i = 0;
|
|
326
374
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
375
|
+
function maybeInvokeDelegate(e, r) {
|
|
376
|
+
var n = r.method,
|
|
377
|
+
o = e.iterator[n];
|
|
378
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
+
var a = i.arg;
|
|
382
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
+
}
|
|
384
|
+
function pushTryEntry(t) {
|
|
385
|
+
var e = {
|
|
386
|
+
tryLoc: t[0]
|
|
387
|
+
};
|
|
388
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
+
}
|
|
390
|
+
function resetTryEntry(t) {
|
|
391
|
+
var e = t.completion || {};
|
|
392
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
+
}
|
|
394
|
+
function Context(t) {
|
|
395
|
+
this.tryEntries = [{
|
|
396
|
+
tryLoc: "root"
|
|
397
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
+
}
|
|
399
|
+
function values(e) {
|
|
400
|
+
if (e || "" === e) {
|
|
401
|
+
var r = e[a];
|
|
402
|
+
if (r) return r.call(e);
|
|
403
|
+
if ("function" == typeof e.next) return e;
|
|
404
|
+
if (!isNaN(e.length)) {
|
|
405
|
+
var o = -1,
|
|
406
|
+
i = function next() {
|
|
407
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
+
return next.value = t, next.done = !0, next;
|
|
409
|
+
};
|
|
410
|
+
return i.next = i;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
+
}
|
|
415
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
+
value: GeneratorFunctionPrototype,
|
|
417
|
+
configurable: !0
|
|
418
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
+
value: GeneratorFunction,
|
|
420
|
+
configurable: !0
|
|
421
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
+
var e = "function" == typeof t && t.constructor;
|
|
423
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
+
}, e.mark = function (t) {
|
|
425
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
+
}, e.awrap = function (t) {
|
|
427
|
+
return {
|
|
428
|
+
__await: t
|
|
429
|
+
};
|
|
430
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
431
|
+
return this;
|
|
432
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
433
|
+
void 0 === i && (i = Promise);
|
|
434
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
435
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
436
|
+
return t.done ? t.value : a.next();
|
|
437
|
+
});
|
|
438
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
439
|
+
return this;
|
|
440
|
+
}), define(g, "toString", function () {
|
|
441
|
+
return "[object Generator]";
|
|
442
|
+
}), e.keys = function (t) {
|
|
443
|
+
var e = Object(t),
|
|
444
|
+
r = [];
|
|
445
|
+
for (var n in e) r.push(n);
|
|
446
|
+
return r.reverse(), function next() {
|
|
447
|
+
for (; r.length;) {
|
|
448
|
+
var t = r.pop();
|
|
449
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
+
}
|
|
451
|
+
return next.done = !0, next;
|
|
452
|
+
};
|
|
453
|
+
}, e.values = values, Context.prototype = {
|
|
454
|
+
constructor: Context,
|
|
455
|
+
reset: function (e) {
|
|
456
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
+
},
|
|
458
|
+
stop: function () {
|
|
459
|
+
this.done = !0;
|
|
460
|
+
var t = this.tryEntries[0].completion;
|
|
461
|
+
if ("throw" === t.type) throw t.arg;
|
|
462
|
+
return this.rval;
|
|
463
|
+
},
|
|
464
|
+
dispatchException: function (e) {
|
|
465
|
+
if (this.done) throw e;
|
|
466
|
+
var r = this;
|
|
467
|
+
function handle(n, o) {
|
|
468
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
+
}
|
|
470
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
+
var i = this.tryEntries[o],
|
|
472
|
+
a = i.completion;
|
|
473
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
+
if (i.tryLoc <= this.prev) {
|
|
475
|
+
var c = n.call(i, "catchLoc"),
|
|
476
|
+
u = n.call(i, "finallyLoc");
|
|
477
|
+
if (c && u) {
|
|
478
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
+
} else if (c) {
|
|
481
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
+
} else {
|
|
483
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
abrupt: function (t, e) {
|
|
490
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
+
var o = this.tryEntries[r];
|
|
492
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
+
var i = o;
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
+
var a = i ? i.completion : {};
|
|
499
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
+
},
|
|
501
|
+
complete: function (t, e) {
|
|
502
|
+
if ("throw" === t.type) throw t.arg;
|
|
503
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
+
},
|
|
505
|
+
finish: function (t) {
|
|
506
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
+
var r = this.tryEntries[e];
|
|
508
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
catch: function (t) {
|
|
512
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
+
var r = this.tryEntries[e];
|
|
514
|
+
if (r.tryLoc === t) {
|
|
515
|
+
var n = r.completion;
|
|
516
|
+
if ("throw" === n.type) {
|
|
517
|
+
var o = n.arg;
|
|
518
|
+
resetTryEntry(r);
|
|
519
|
+
}
|
|
520
|
+
return o;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
throw Error("illegal catch attempt");
|
|
524
|
+
},
|
|
525
|
+
delegateYield: function (e, r, n) {
|
|
526
|
+
return this.delegate = {
|
|
527
|
+
iterator: values(e),
|
|
528
|
+
resultName: r,
|
|
529
|
+
nextLoc: n
|
|
530
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
332
531
|
}
|
|
333
|
-
|
|
334
|
-
value: n,
|
|
335
|
-
enumerable: !t,
|
|
336
|
-
configurable: !t,
|
|
337
|
-
writable: !t
|
|
338
|
-
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
339
|
-
}, _regeneratorDefine(e, r, n, t);
|
|
532
|
+
}, e;
|
|
340
533
|
}
|
|
341
534
|
function _setPrototypeOf(t, e) {
|
|
342
535
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1409,22 +1602,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1409
1602
|
// sheepMap是表头字段中英文映射
|
|
1410
1603
|
// sheetCount:表的数量,默认一张
|
|
1411
1604
|
var resolveFile = /*#__PURE__*/function () {
|
|
1412
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1605
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1413
1606
|
var config,
|
|
1414
1607
|
data,
|
|
1415
1608
|
_args = arguments;
|
|
1416
|
-
return
|
|
1417
|
-
while (1) switch (_context.
|
|
1609
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1610
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1418
1611
|
case 0:
|
|
1419
1612
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1420
1613
|
sheetMap: [],
|
|
1421
1614
|
sheetCount: 1
|
|
1422
1615
|
};
|
|
1423
|
-
_context.
|
|
1616
|
+
_context.next = 3;
|
|
1424
1617
|
return analyseExcelToByte(file);
|
|
1425
|
-
case
|
|
1426
|
-
data = _context.
|
|
1427
|
-
return _context.
|
|
1618
|
+
case 3:
|
|
1619
|
+
data = _context.sent;
|
|
1620
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1428
1621
|
var workbook = XLSX.read(data, {
|
|
1429
1622
|
type: 'binary'
|
|
1430
1623
|
});
|
|
@@ -1436,6 +1629,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1436
1629
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1437
1630
|
resolve(outdata);
|
|
1438
1631
|
}));
|
|
1632
|
+
case 5:
|
|
1633
|
+
case "end":
|
|
1634
|
+
return _context.stop();
|
|
1439
1635
|
}
|
|
1440
1636
|
}, _callee);
|
|
1441
1637
|
}));
|
|
@@ -1445,40 +1641,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1445
1641
|
}();
|
|
1446
1642
|
//读取文件
|
|
1447
1643
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1448
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1644
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1449
1645
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1450
|
-
return
|
|
1451
|
-
while (1) switch (_context2.
|
|
1646
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1647
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1452
1648
|
case 0:
|
|
1453
1649
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1454
1650
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1455
|
-
_context2.
|
|
1651
|
+
_context2.next = 15;
|
|
1456
1652
|
break;
|
|
1457
1653
|
}
|
|
1458
1654
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1459
|
-
_context2.
|
|
1655
|
+
_context2.next = 5;
|
|
1460
1656
|
return resolveFile(nowFile.originFileObj, {
|
|
1461
1657
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1462
1658
|
sheetCount: 1
|
|
1463
1659
|
});
|
|
1464
|
-
case
|
|
1465
|
-
data2 = _context2.
|
|
1660
|
+
case 5:
|
|
1661
|
+
data2 = _context2.sent;
|
|
1466
1662
|
data = data2[0];
|
|
1467
1663
|
if (data.length) {
|
|
1468
|
-
_context2.
|
|
1664
|
+
_context2.next = 10;
|
|
1469
1665
|
break;
|
|
1470
1666
|
}
|
|
1471
1667
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1472
|
-
return _context2.
|
|
1473
|
-
case
|
|
1668
|
+
return _context2.abrupt("return");
|
|
1669
|
+
case 10:
|
|
1474
1670
|
if (callback) callback(data);
|
|
1475
1671
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1476
|
-
return _context2.
|
|
1477
|
-
case
|
|
1672
|
+
return _context2.abrupt("return", data);
|
|
1673
|
+
case 15:
|
|
1478
1674
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1479
|
-
return _context2.
|
|
1480
|
-
case
|
|
1481
|
-
|
|
1675
|
+
return _context2.abrupt("return");
|
|
1676
|
+
case 17:
|
|
1677
|
+
case "end":
|
|
1678
|
+
return _context2.stop();
|
|
1482
1679
|
}
|
|
1483
1680
|
}, _callee2);
|
|
1484
1681
|
}));
|
|
@@ -2430,14 +2627,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2430
2627
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2431
2628
|
};
|
|
2432
2629
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2433
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2434
|
-
return
|
|
2435
|
-
while (1) switch (_context.
|
|
2630
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2631
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2632
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2436
2633
|
case 0:
|
|
2437
|
-
return _context.
|
|
2634
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2438
2635
|
data: response,
|
|
2439
2636
|
status: response.status
|
|
2440
2637
|
}));
|
|
2638
|
+
case 1:
|
|
2639
|
+
case "end":
|
|
2640
|
+
return _context.stop();
|
|
2441
2641
|
}
|
|
2442
2642
|
}, _callee);
|
|
2443
2643
|
}));
|
|
@@ -2810,11 +3010,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2810
3010
|
data: luckysheet.transToCellData(newData)
|
|
2811
3011
|
});
|
|
2812
3012
|
};
|
|
2813
|
-
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3013
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2814
3014
|
var _customerColumnsMappi;
|
|
2815
3015
|
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2816
|
-
return
|
|
2817
|
-
while (1) switch (_context.
|
|
3016
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3017
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2818
3018
|
case 0:
|
|
2819
3019
|
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2820
3020
|
resultData = _this.getData().filter(function (d) {
|
|
@@ -2839,19 +3039,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2839
3039
|
}
|
|
2840
3040
|
// 调用回调函数
|
|
2841
3041
|
if (!beforeCheckCallback) {
|
|
2842
|
-
_context.
|
|
3042
|
+
_context.next = 12;
|
|
2843
3043
|
break;
|
|
2844
3044
|
}
|
|
2845
|
-
_context.
|
|
3045
|
+
_context.next = 9;
|
|
2846
3046
|
return beforeCheckCallback(resultData);
|
|
2847
|
-
case
|
|
2848
|
-
resultData = _context.
|
|
3047
|
+
case 9:
|
|
3048
|
+
resultData = _context.sent;
|
|
2849
3049
|
if (resultData) {
|
|
2850
|
-
_context.
|
|
3050
|
+
_context.next = 12;
|
|
2851
3051
|
break;
|
|
2852
3052
|
}
|
|
2853
|
-
return _context.
|
|
2854
|
-
case
|
|
3053
|
+
return _context.abrupt("return");
|
|
3054
|
+
case 12:
|
|
2855
3055
|
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2856
3056
|
columns: resultColumns,
|
|
2857
3057
|
data: resultData,
|
|
@@ -2907,8 +3107,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2907
3107
|
console.log(setExportData);
|
|
2908
3108
|
setExportData([123123]);
|
|
2909
3109
|
}).catch(function (err) {});
|
|
2910
|
-
case
|
|
2911
|
-
|
|
3110
|
+
case 13:
|
|
3111
|
+
case "end":
|
|
3112
|
+
return _context.stop();
|
|
2912
3113
|
}
|
|
2913
3114
|
}, _callee);
|
|
2914
3115
|
}));
|
|
@@ -4600,27 +4801,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4600
4801
|
popvalue = _useState8[0],
|
|
4601
4802
|
setPopValue = _useState8[1];
|
|
4602
4803
|
var _useState9 = React$1.useState([]),
|
|
4603
|
-
|
|
4604
|
-
source =
|
|
4605
|
-
setSource =
|
|
4804
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4805
|
+
source = _useState10[0],
|
|
4806
|
+
setSource = _useState10[1];
|
|
4606
4807
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4607
4808
|
getData();
|
|
4608
4809
|
}, {
|
|
4609
4810
|
wait: 1000
|
|
4610
4811
|
}),
|
|
4611
4812
|
run = _useDebounceFn.run;
|
|
4612
|
-
var
|
|
4613
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
-
fetching = _useState10[0],
|
|
4615
|
-
setFetching = _useState10[1];
|
|
4616
|
-
var _useState11 = React$1.useState(''),
|
|
4813
|
+
var _useState11 = React$1.useState(false),
|
|
4617
4814
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
var _useState13 = React$1.useState(
|
|
4815
|
+
fetching = _useState12[0],
|
|
4816
|
+
setFetching = _useState12[1];
|
|
4817
|
+
var _useState13 = React$1.useState(''),
|
|
4621
4818
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4622
|
-
|
|
4623
|
-
|
|
4819
|
+
searchValue = _useState14[0],
|
|
4820
|
+
setSearchValue = _useState14[1];
|
|
4821
|
+
var _useState15 = React$1.useState(resultSourceKey),
|
|
4822
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4823
|
+
uniqueValue = _useState16[0],
|
|
4824
|
+
setUniqueValue = _useState16[1];
|
|
4624
4825
|
React$1.useEffect(function () {
|
|
4625
4826
|
setPopValue(value);
|
|
4626
4827
|
onValueChange(value);
|
|
@@ -5037,21 +5238,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5037
5238
|
notCommonProperty = _useState8[0],
|
|
5038
5239
|
setNotCommonProperty = _useState8[1];
|
|
5039
5240
|
var _useState9 = React$1.useState(false),
|
|
5040
|
-
|
|
5041
|
-
visible =
|
|
5042
|
-
setVisible =
|
|
5043
|
-
var
|
|
5044
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
-
showNotCommon = _useState10[0],
|
|
5046
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
-
var _useState11 = React$1.useState([]),
|
|
5241
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5242
|
+
visible = _useState10[0],
|
|
5243
|
+
setVisible = _useState10[1];
|
|
5244
|
+
var _useState11 = React$1.useState(false),
|
|
5048
5245
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
var _useState13 = React$1.useState(
|
|
5246
|
+
showNotCommon = _useState12[0],
|
|
5247
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5248
|
+
var _useState13 = React$1.useState([]),
|
|
5052
5249
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5053
|
-
|
|
5054
|
-
|
|
5250
|
+
classifyOptionList = _useState14[0],
|
|
5251
|
+
setClassifyOptionList = _useState14[1];
|
|
5252
|
+
var _useState15 = React$1.useState('1'),
|
|
5253
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5254
|
+
listKey = _useState16[0],
|
|
5255
|
+
setListKey = _useState16[1];
|
|
5055
5256
|
React$1.useEffect(function () {
|
|
5056
5257
|
requestUtil({
|
|
5057
5258
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5346,7 +5547,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5346
5547
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5347
5548
|
searchStartLength = _ref.searchStartLength,
|
|
5348
5549
|
_ref$isQuery = _ref.isQuery,
|
|
5349
|
-
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery
|
|
5550
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
|
|
5551
|
+
_ref$requireSearchCon = _ref.requireSearchCondition,
|
|
5552
|
+
requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
|
|
5350
5553
|
var requestConfig = _objectSpread2({
|
|
5351
5554
|
url: url,
|
|
5352
5555
|
method: method,
|
|
@@ -5434,29 +5637,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5434
5637
|
scrollPage = _useState8[0],
|
|
5435
5638
|
setScrollPage = _useState8[1];
|
|
5436
5639
|
var _useState9 = React$1.useState(0),
|
|
5437
|
-
|
|
5438
|
-
itemsTotal =
|
|
5439
|
-
setItemsTotal =
|
|
5440
|
-
var
|
|
5441
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5442
|
-
fetching = _useState10[0],
|
|
5443
|
-
setFetching = _useState10[1];
|
|
5444
|
-
var _useState11 = React$1.useState(''),
|
|
5640
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5641
|
+
itemsTotal = _useState10[0],
|
|
5642
|
+
setItemsTotal = _useState10[1];
|
|
5643
|
+
var _useState11 = React$1.useState(false),
|
|
5445
5644
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
var _useState13 = React$1.useState(
|
|
5645
|
+
fetching = _useState12[0],
|
|
5646
|
+
setFetching = _useState12[1];
|
|
5647
|
+
var _useState13 = React$1.useState(''),
|
|
5449
5648
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
var _useState15 = React$1.useState(
|
|
5649
|
+
searchValue = _useState14[0],
|
|
5650
|
+
setSearchValue = _useState14[1];
|
|
5651
|
+
var _useState15 = React$1.useState(false),
|
|
5453
5652
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
var _useState17 = React$1.useState(
|
|
5653
|
+
isModalVisible = _useState16[0],
|
|
5654
|
+
setIsModalVisible = _useState16[1];
|
|
5655
|
+
var _useState17 = React$1.useState(initVal),
|
|
5457
5656
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5458
|
-
|
|
5459
|
-
|
|
5657
|
+
popvalue = _useState18[0],
|
|
5658
|
+
setPopValue = _useState18[1];
|
|
5659
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
5660
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5661
|
+
uniqueValue = _useState20[0],
|
|
5662
|
+
setUniqueValue = _useState20[1];
|
|
5460
5663
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5461
5664
|
// 优化搜索参数 支持传多个
|
|
5462
5665
|
var searchParams = {};
|
|
@@ -5485,58 +5688,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5485
5688
|
var _Form$useForm = antd.Form.useForm(),
|
|
5486
5689
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5487
5690
|
form = _Form$useForm2[0];
|
|
5488
|
-
var _useState19 = React$1.useState(true),
|
|
5489
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5490
|
-
collapsed = _useState20[0],
|
|
5491
|
-
setCollapsed = _useState20[1];
|
|
5492
5691
|
var _useState21 = React$1.useState(true),
|
|
5493
5692
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
var _useState23 = React$1.useState(
|
|
5693
|
+
collapsed = _useState22[0],
|
|
5694
|
+
setCollapsed = _useState22[1];
|
|
5695
|
+
var _useState23 = React$1.useState(true),
|
|
5497
5696
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
var _useState25 = React$1.useState(
|
|
5697
|
+
caretLeftFlag = _useState24[0],
|
|
5698
|
+
setCaretLeftFlag = _useState24[1];
|
|
5699
|
+
var _useState25 = React$1.useState([]),
|
|
5501
5700
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
var _useState27 = React$1.useState(
|
|
5701
|
+
tableData = _useState26[0],
|
|
5702
|
+
setTableData = _useState26[1];
|
|
5703
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
5505
5704
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5506
|
-
|
|
5507
|
-
|
|
5705
|
+
tablePagination = _useState28[0],
|
|
5706
|
+
setTablePagination = _useState28[1];
|
|
5508
5707
|
var _useState29 = React$1.useState([]),
|
|
5509
5708
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
var _useState31 = React$1.useState(
|
|
5709
|
+
selectedRowKeys = _useState30[0],
|
|
5710
|
+
setSelectedRowKeys = _useState30[1];
|
|
5711
|
+
var _useState31 = React$1.useState([]),
|
|
5513
5712
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5514
|
-
|
|
5515
|
-
|
|
5713
|
+
selectedRows = _useState32[0],
|
|
5714
|
+
setSelectedRows = _useState32[1];
|
|
5516
5715
|
var _useState33 = React$1.useState(false),
|
|
5517
5716
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
var _useState35 = React$1.useState(
|
|
5717
|
+
checkedAll = _useState34[0],
|
|
5718
|
+
setCheckedAll = _useState34[1];
|
|
5719
|
+
var _useState35 = React$1.useState(false),
|
|
5521
5720
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
var _useState37 = React$1.useState(
|
|
5721
|
+
indeterminate = _useState36[0],
|
|
5722
|
+
setIndeterminate = _useState36[1];
|
|
5723
|
+
var _useState37 = React$1.useState({}),
|
|
5525
5724
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
var _useState39 = React$1.useState(
|
|
5725
|
+
tableFormParams = _useState38[0],
|
|
5726
|
+
setTableFormParams = _useState38[1];
|
|
5727
|
+
var _useState39 = React$1.useState(false),
|
|
5529
5728
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
var _useState41 = React$1.useState(
|
|
5729
|
+
tooltipVisible = _useState40[0],
|
|
5730
|
+
setTooltipVisible = _useState40[1];
|
|
5731
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5533
5732
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5534
|
-
|
|
5535
|
-
|
|
5733
|
+
tableShowColumns = _useState42[0],
|
|
5734
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5536
5735
|
var _useState43 = React$1.useState(false),
|
|
5537
5736
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5538
|
-
|
|
5539
|
-
|
|
5737
|
+
confirmLoading = _useState44[0],
|
|
5738
|
+
setConfirmLoading = _useState44[1];
|
|
5739
|
+
var _useState45 = React$1.useState(false),
|
|
5740
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5741
|
+
modalSearched = _useState46[0],
|
|
5742
|
+
setModalSearched = _useState46[1];
|
|
5540
5743
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5541
5744
|
setItems(list);
|
|
5542
5745
|
setItemsTotal(total);
|
|
@@ -5909,6 +6112,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5909
6112
|
};
|
|
5910
6113
|
var onSearchTable = function onSearchTable() {
|
|
5911
6114
|
var params = form.getFieldsValue();
|
|
6115
|
+
// 必须选择一个值
|
|
6116
|
+
if (requireSearchCondition) {
|
|
6117
|
+
var hasValidValue = Object.values(params).some(function (value) {
|
|
6118
|
+
return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
|
|
6119
|
+
});
|
|
6120
|
+
if (!hasValidValue) {
|
|
6121
|
+
antd.message.warning('请至少选择一个搜索条件');
|
|
6122
|
+
return;
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
5912
6125
|
setModalSearched(true);
|
|
5913
6126
|
setTableFormParams(params);
|
|
5914
6127
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -6014,7 +6227,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6014
6227
|
})) || [];
|
|
6015
6228
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6016
6229
|
return searchList.map(function (i, index) {
|
|
6017
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6230
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
6018
6231
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6019
6232
|
span: ColSpan,
|
|
6020
6233
|
key: i
|
|
@@ -6112,7 +6325,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6112
6325
|
disabled: setDisabled(i.name)
|
|
6113
6326
|
}))));
|
|
6114
6327
|
}
|
|
6115
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6328
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
6116
6329
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6117
6330
|
span: ColSpan,
|
|
6118
6331
|
key: i.name
|
|
@@ -6126,7 +6339,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6126
6339
|
}
|
|
6127
6340
|
})));
|
|
6128
6341
|
}
|
|
6129
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6342
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6130
6343
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6131
6344
|
span: ColSpan,
|
|
6132
6345
|
key: i.name
|
|
@@ -6136,8 +6349,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6136
6349
|
key: i.name
|
|
6137
6350
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6138
6351
|
}
|
|
6139
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6140
|
-
var _i$
|
|
6352
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6353
|
+
var _i$field13;
|
|
6141
6354
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6142
6355
|
span: ColSpan,
|
|
6143
6356
|
key: i.name
|
|
@@ -6150,9 +6363,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6150
6363
|
width: '100%'
|
|
6151
6364
|
},
|
|
6152
6365
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6153
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6366
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6154
6367
|
}
|
|
6155
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6368
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6156
6369
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6157
6370
|
span: ColSpan,
|
|
6158
6371
|
key: i.name
|
|
@@ -6181,7 +6394,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6181
6394
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6182
6395
|
allowClear: true,
|
|
6183
6396
|
maxLength: 100
|
|
6184
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6397
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6185
6398
|
disabled: setDisabled(i.name)
|
|
6186
6399
|
}))));
|
|
6187
6400
|
});
|
|
@@ -7520,132 +7733,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7520
7733
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7521
7734
|
form = _Form$useForm2[0];
|
|
7522
7735
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7523
|
-
|
|
7524
|
-
tableSearchForm =
|
|
7525
|
-
setTableSearchForm =
|
|
7526
|
-
var
|
|
7527
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7528
|
-
caretLeftFlag = _useState10[0],
|
|
7529
|
-
setCaretLeftFlag = _useState10[1];
|
|
7530
|
-
var _useState11 = React$1.useState([]),
|
|
7736
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7737
|
+
tableSearchForm = _useState10[0],
|
|
7738
|
+
setTableSearchForm = _useState10[1];
|
|
7739
|
+
var _useState11 = React$1.useState(true),
|
|
7531
7740
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
var _useState13 = React$1.useState(
|
|
7741
|
+
caretLeftFlag = _useState12[0],
|
|
7742
|
+
setCaretLeftFlag = _useState12[1];
|
|
7743
|
+
var _useState13 = React$1.useState([]),
|
|
7744
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7745
|
+
tableData = _useState14[0],
|
|
7746
|
+
setTableData = _useState14[1];
|
|
7747
|
+
var _useState15 = React$1.useState(_objectSpread2({
|
|
7535
7748
|
total: 0,
|
|
7536
7749
|
size: "small",
|
|
7537
7750
|
current: 1,
|
|
7538
7751
|
pageSize: tableInitPageSize
|
|
7539
7752
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7540
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7541
|
-
tablePagination = _useState14[0],
|
|
7542
|
-
setTablePagination = _useState14[1];
|
|
7543
|
-
var _useState15 = React$1.useState([]),
|
|
7544
7753
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
var _useState17 = React$1.useState(
|
|
7754
|
+
tablePagination = _useState16[0],
|
|
7755
|
+
setTablePagination = _useState16[1];
|
|
7756
|
+
var _useState17 = React$1.useState([]),
|
|
7548
7757
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
var _useState19 = React$1.useState(
|
|
7758
|
+
selectedRowKeys = _useState18[0],
|
|
7759
|
+
setSelectedRowKeys = _useState18[1];
|
|
7760
|
+
var _useState19 = React$1.useState({}),
|
|
7552
7761
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7553
|
-
|
|
7554
|
-
|
|
7762
|
+
tableFormParams = _useState20[0],
|
|
7763
|
+
setTableFormParams = _useState20[1];
|
|
7555
7764
|
var _useState21 = React$1.useState(false),
|
|
7556
7765
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
var _useState23 = React$1.useState(
|
|
7766
|
+
confirmLoading = _useState22[0],
|
|
7767
|
+
setConfirmLoading = _useState22[1];
|
|
7768
|
+
var _useState23 = React$1.useState(false),
|
|
7560
7769
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7561
|
-
|
|
7562
|
-
|
|
7770
|
+
confirmContinueLoading = _useState24[0],
|
|
7771
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7563
7772
|
var _useState25 = React$1.useState([]),
|
|
7564
7773
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7565
|
-
|
|
7566
|
-
|
|
7774
|
+
selectColumns = _useState26[0],
|
|
7775
|
+
setSelectColumns = _useState26[1];
|
|
7567
7776
|
var _useState27 = React$1.useState([]),
|
|
7568
7777
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7569
|
-
|
|
7570
|
-
|
|
7778
|
+
showColumns = _useState28[0],
|
|
7779
|
+
setShowColumns = _useState28[1];
|
|
7571
7780
|
var _useState29 = React$1.useState([]),
|
|
7572
7781
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7573
|
-
|
|
7574
|
-
|
|
7782
|
+
tableColumns = _useState30[0],
|
|
7783
|
+
setTableColumns = _useState30[1];
|
|
7784
|
+
var _useState31 = React$1.useState([]),
|
|
7785
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7786
|
+
showToChooseColumns = _useState32[0],
|
|
7787
|
+
setShowToChooseColumns = _useState32[1];
|
|
7575
7788
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7576
7789
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7577
7790
|
// FIXME: 特殊业务逻辑
|
|
7578
7791
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7579
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7580
|
-
var result
|
|
7581
|
-
return
|
|
7582
|
-
while (1) switch (_context.
|
|
7792
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7793
|
+
var result;
|
|
7794
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7795
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7583
7796
|
case 0:
|
|
7584
7797
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7585
7798
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7586
7799
|
}))) {
|
|
7587
|
-
_context.
|
|
7800
|
+
_context.next = 3;
|
|
7588
7801
|
break;
|
|
7589
7802
|
}
|
|
7590
7803
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7591
|
-
return _context.
|
|
7592
|
-
case
|
|
7804
|
+
return _context.abrupt("return", false);
|
|
7805
|
+
case 3:
|
|
7593
7806
|
if (!(bType == 'spu')) {
|
|
7594
|
-
_context.
|
|
7807
|
+
_context.next = 26;
|
|
7595
7808
|
break;
|
|
7596
7809
|
}
|
|
7597
7810
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7598
7811
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7599
7812
|
}))) {
|
|
7600
|
-
_context.
|
|
7813
|
+
_context.next = 7;
|
|
7601
7814
|
break;
|
|
7602
7815
|
}
|
|
7603
7816
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7604
|
-
return _context.
|
|
7605
|
-
case
|
|
7817
|
+
return _context.abrupt("return", false);
|
|
7818
|
+
case 7:
|
|
7606
7819
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7607
|
-
_context.
|
|
7820
|
+
_context.next = 10;
|
|
7608
7821
|
break;
|
|
7609
7822
|
}
|
|
7610
7823
|
antd.message.warning('请先选择颜色!');
|
|
7611
|
-
return _context.
|
|
7612
|
-
case
|
|
7824
|
+
return _context.abrupt("return", false);
|
|
7825
|
+
case 10:
|
|
7613
7826
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7614
7827
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7615
7828
|
}))) {
|
|
7616
|
-
_context.
|
|
7829
|
+
_context.next = 13;
|
|
7617
7830
|
break;
|
|
7618
7831
|
}
|
|
7619
7832
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7620
|
-
return _context.
|
|
7621
|
-
case
|
|
7833
|
+
return _context.abrupt("return", false);
|
|
7834
|
+
case 13:
|
|
7622
7835
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7623
|
-
_context.
|
|
7836
|
+
_context.next = 26;
|
|
7624
7837
|
break;
|
|
7625
7838
|
}
|
|
7626
7839
|
result = true;
|
|
7627
|
-
_context.
|
|
7628
|
-
_context.
|
|
7840
|
+
_context.prev = 15;
|
|
7841
|
+
_context.next = 18;
|
|
7629
7842
|
return checkSpuMatchCode({
|
|
7630
7843
|
skcCode: recordItem[recordKey],
|
|
7631
7844
|
matchingCode: changeValue,
|
|
7632
7845
|
ext1: recordItem.colorName
|
|
7633
7846
|
});
|
|
7634
|
-
case
|
|
7635
|
-
result = _context.
|
|
7847
|
+
case 18:
|
|
7848
|
+
result = _context.sent;
|
|
7636
7849
|
result = true;
|
|
7637
|
-
_context.
|
|
7850
|
+
_context.next = 25;
|
|
7638
7851
|
break;
|
|
7639
|
-
case
|
|
7640
|
-
_context.
|
|
7641
|
-
|
|
7642
|
-
result = typeof
|
|
7643
|
-
case
|
|
7644
|
-
return _context.
|
|
7645
|
-
case
|
|
7646
|
-
return _context.
|
|
7647
|
-
|
|
7648
|
-
|
|
7852
|
+
case 22:
|
|
7853
|
+
_context.prev = 22;
|
|
7854
|
+
_context.t0 = _context["catch"](15);
|
|
7855
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7856
|
+
case 25:
|
|
7857
|
+
return _context.abrupt("return", result);
|
|
7858
|
+
case 26:
|
|
7859
|
+
return _context.abrupt("return", true);
|
|
7860
|
+
case 27:
|
|
7861
|
+
case "end":
|
|
7862
|
+
return _context.stop();
|
|
7863
|
+
}
|
|
7864
|
+
}, _callee, null, [[15, 22]]);
|
|
7649
7865
|
}));
|
|
7650
7866
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7651
7867
|
return _ref2.apply(this, arguments);
|
|
@@ -7736,16 +7952,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
7736
7952
|
e.target.blur();
|
|
7737
7953
|
},
|
|
7738
7954
|
onBlur: function () {
|
|
7739
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7955
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7740
7956
|
var value;
|
|
7741
|
-
return
|
|
7742
|
-
while (1) switch (_context2.
|
|
7957
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7958
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7743
7959
|
case 0:
|
|
7744
7960
|
value = e.target.value;
|
|
7745
7961
|
record[item.dataIndex] = value;
|
|
7746
7962
|
editRecord(record);
|
|
7747
|
-
case
|
|
7748
|
-
|
|
7963
|
+
case 3:
|
|
7964
|
+
case "end":
|
|
7965
|
+
return _context2.stop();
|
|
7749
7966
|
}
|
|
7750
7967
|
}, _callee2);
|
|
7751
7968
|
}));
|
|
@@ -7905,10 +8122,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7905
8122
|
}
|
|
7906
8123
|
_dom6 = null;
|
|
7907
8124
|
} else if (e.keyCode === 38) {
|
|
7908
|
-
var _e$nativeEvent$path$
|
|
8125
|
+
var _e$nativeEvent$path$10;
|
|
7909
8126
|
e.stopPropagation();
|
|
7910
8127
|
e.preventDefault();
|
|
7911
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8128
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7912
8129
|
if (dom1) {
|
|
7913
8130
|
// dom1.value=""
|
|
7914
8131
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7942,19 +8159,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7942
8159
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7943
8160
|
value: text || null,
|
|
7944
8161
|
onChange: function () {
|
|
7945
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7946
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7947
|
-
return
|
|
7948
|
-
while (1) switch (_context3.
|
|
8162
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8163
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8164
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8165
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7949
8166
|
case 0:
|
|
7950
8167
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7951
8168
|
return d[selectKey] == value;
|
|
7952
8169
|
})) || {};
|
|
7953
8170
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7954
|
-
_context3.
|
|
8171
|
+
_context3.next = 6;
|
|
7955
8172
|
break;
|
|
7956
8173
|
}
|
|
7957
|
-
_context3.
|
|
8174
|
+
_context3.next = 4;
|
|
7958
8175
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
7959
8176
|
record: record,
|
|
7960
8177
|
index: index,
|
|
@@ -7964,10 +8181,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7964
8181
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7965
8182
|
editRecord: editRecord
|
|
7966
8183
|
});
|
|
7967
|
-
case
|
|
7968
|
-
_context3.
|
|
8184
|
+
case 4:
|
|
8185
|
+
_context3.next = 25;
|
|
7969
8186
|
break;
|
|
7970
|
-
case
|
|
8187
|
+
case 6:
|
|
7971
8188
|
// 更新当前行数据函数
|
|
7972
8189
|
changeValue = function changeValue(v, dSSItem) {
|
|
7973
8190
|
var _item$dataSourceSelec;
|
|
@@ -7980,12 +8197,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7980
8197
|
}
|
|
7981
8198
|
}; // 处理校验,默认不校验
|
|
7982
8199
|
isCheckPass = true;
|
|
7983
|
-
_context3.
|
|
8200
|
+
_context3.prev = 8;
|
|
7984
8201
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7985
|
-
_context3.
|
|
8202
|
+
_context3.next = 15;
|
|
7986
8203
|
break;
|
|
7987
8204
|
}
|
|
7988
|
-
_context3.
|
|
8205
|
+
_context3.next = 12;
|
|
7989
8206
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7990
8207
|
record: record,
|
|
7991
8208
|
index: index,
|
|
@@ -7994,23 +8211,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7994
8211
|
changeValue: value,
|
|
7995
8212
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7996
8213
|
});
|
|
7997
|
-
case
|
|
7998
|
-
isCheckPass = _context3.
|
|
7999
|
-
_context3.
|
|
8214
|
+
case 12:
|
|
8215
|
+
isCheckPass = _context3.sent;
|
|
8216
|
+
_context3.next = 19;
|
|
8000
8217
|
break;
|
|
8001
|
-
case
|
|
8002
|
-
_context3.
|
|
8218
|
+
case 15:
|
|
8219
|
+
_context3.next = 17;
|
|
8003
8220
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8004
|
-
case
|
|
8005
|
-
isConformToTheRules = _context3.
|
|
8221
|
+
case 17:
|
|
8222
|
+
isConformToTheRules = _context3.sent;
|
|
8006
8223
|
isCheckPass = !isConformToTheRules;
|
|
8007
|
-
case
|
|
8008
|
-
_context3.
|
|
8224
|
+
case 19:
|
|
8225
|
+
_context3.next = 23;
|
|
8009
8226
|
break;
|
|
8010
|
-
case
|
|
8011
|
-
_context3.
|
|
8012
|
-
|
|
8013
|
-
case
|
|
8227
|
+
case 21:
|
|
8228
|
+
_context3.prev = 21;
|
|
8229
|
+
_context3.t0 = _context3["catch"](8);
|
|
8230
|
+
case 23:
|
|
8014
8231
|
if (isCheckPass) {
|
|
8015
8232
|
changeValue(value, dataSourceSelectItem);
|
|
8016
8233
|
} else {
|
|
@@ -8018,10 +8235,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
8018
8235
|
}
|
|
8019
8236
|
// 更新已选表格函数
|
|
8020
8237
|
editRecord(record);
|
|
8021
|
-
case
|
|
8022
|
-
|
|
8238
|
+
case 25:
|
|
8239
|
+
case "end":
|
|
8240
|
+
return _context3.stop();
|
|
8023
8241
|
}
|
|
8024
|
-
}, _callee3, null, [[
|
|
8242
|
+
}, _callee3, null, [[8, 21]]);
|
|
8025
8243
|
}));
|
|
8026
8244
|
function onChange(_x8) {
|
|
8027
8245
|
return _onChange.apply(this, arguments);
|
|
@@ -9412,29 +9630,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9412
9630
|
dataIndex: 'propertyNameAndValue'
|
|
9413
9631
|
}];
|
|
9414
9632
|
var _useState9 = React$1.useState(false),
|
|
9415
|
-
|
|
9416
|
-
isModalVisible =
|
|
9417
|
-
setIsModalVisible =
|
|
9418
|
-
var
|
|
9633
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9634
|
+
isModalVisible = _useState10[0],
|
|
9635
|
+
setIsModalVisible = _useState10[1];
|
|
9636
|
+
var _useState11 = React$1.useState([{
|
|
9419
9637
|
hovered: false
|
|
9420
9638
|
}]),
|
|
9421
|
-
|
|
9422
|
-
data =
|
|
9423
|
-
setData =
|
|
9639
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9640
|
+
data = _useState12[0],
|
|
9641
|
+
setData = _useState12[1];
|
|
9424
9642
|
var tableRef = React$1.useRef(null);
|
|
9425
9643
|
var codeSelected = tableCode;
|
|
9426
|
-
var
|
|
9427
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9428
|
-
loading = _useState12[0],
|
|
9429
|
-
setLoading = _useState12[1];
|
|
9430
|
-
var _useState13 = React$1.useState([]),
|
|
9644
|
+
var _useState13 = React$1.useState(false),
|
|
9431
9645
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9432
|
-
|
|
9433
|
-
|
|
9646
|
+
loading = _useState14[0],
|
|
9647
|
+
setLoading = _useState14[1];
|
|
9434
9648
|
var _useState15 = React$1.useState([]),
|
|
9435
9649
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9436
|
-
|
|
9437
|
-
|
|
9650
|
+
selectColumns = _useState16[0],
|
|
9651
|
+
setSelectColumns = _useState16[1];
|
|
9652
|
+
var _useState17 = React$1.useState([]),
|
|
9653
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9654
|
+
showColumns = _useState18[0],
|
|
9655
|
+
setShowColumns = _useState18[1];
|
|
9438
9656
|
React$1.useEffect(function () {
|
|
9439
9657
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9440
9658
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9550,42 +9768,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9550
9768
|
});
|
|
9551
9769
|
};
|
|
9552
9770
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9553
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9771
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9554
9772
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9555
|
-
return
|
|
9556
|
-
while (1) switch (_context.
|
|
9773
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9774
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9557
9775
|
case 0:
|
|
9558
9776
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9559
|
-
_context.
|
|
9777
|
+
_context.next = 3;
|
|
9560
9778
|
break;
|
|
9561
9779
|
}
|
|
9562
9780
|
antd.message.warning('至少录入一条数据');
|
|
9563
|
-
return _context.
|
|
9564
|
-
case
|
|
9781
|
+
return _context.abrupt("return");
|
|
9782
|
+
case 3:
|
|
9565
9783
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9566
9784
|
return d.skuCode && d.name;
|
|
9567
9785
|
})) {
|
|
9568
|
-
_context.
|
|
9786
|
+
_context.next = 6;
|
|
9569
9787
|
break;
|
|
9570
9788
|
}
|
|
9571
9789
|
antd.message.warning('录入商品不存在');
|
|
9572
|
-
return _context.
|
|
9573
|
-
case
|
|
9790
|
+
return _context.abrupt("return");
|
|
9791
|
+
case 6:
|
|
9574
9792
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9575
9793
|
return d.count;
|
|
9576
9794
|
})) {
|
|
9577
|
-
_context.
|
|
9795
|
+
_context.next = 9;
|
|
9578
9796
|
break;
|
|
9579
9797
|
}
|
|
9580
9798
|
antd.message.warning('请填写商品数量!');
|
|
9581
|
-
return _context.
|
|
9582
|
-
case
|
|
9583
|
-
_context.
|
|
9799
|
+
return _context.abrupt("return");
|
|
9800
|
+
case 9:
|
|
9801
|
+
_context.next = 11;
|
|
9584
9802
|
return isSkuCanEntry(data);
|
|
9585
|
-
case
|
|
9586
|
-
canEntryObject = _context.
|
|
9803
|
+
case 11:
|
|
9804
|
+
canEntryObject = _context.sent;
|
|
9587
9805
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9588
|
-
_context.
|
|
9806
|
+
_context.next = 16;
|
|
9589
9807
|
break;
|
|
9590
9808
|
}
|
|
9591
9809
|
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
@@ -9595,8 +9813,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9595
9813
|
content: messageInfo,
|
|
9596
9814
|
duration: 6
|
|
9597
9815
|
});
|
|
9598
|
-
return _context.
|
|
9599
|
-
case
|
|
9816
|
+
return _context.abrupt("return");
|
|
9817
|
+
case 16:
|
|
9600
9818
|
setLoading(true);
|
|
9601
9819
|
onSaveCallback(data).then(function (res) {
|
|
9602
9820
|
{
|
|
@@ -9614,8 +9832,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9614
9832
|
antd.message.error(Error);
|
|
9615
9833
|
setLoading(false);
|
|
9616
9834
|
});
|
|
9617
|
-
case
|
|
9618
|
-
|
|
9835
|
+
case 18:
|
|
9836
|
+
case "end":
|
|
9837
|
+
return _context.stop();
|
|
9619
9838
|
}
|
|
9620
9839
|
}, _callee);
|
|
9621
9840
|
}));
|
|
@@ -11924,18 +12143,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11924
12143
|
name: 'qp-code-like',
|
|
11925
12144
|
label: '客户编码'
|
|
11926
12145
|
}, {
|
|
11927
|
-
name: 'qp-createOrgCode-
|
|
12146
|
+
name: 'qp-createOrgCode-in',
|
|
11928
12147
|
type: 'select',
|
|
11929
12148
|
label: '创建组织',
|
|
11930
12149
|
field: {
|
|
11931
12150
|
type: 'select',
|
|
11932
12151
|
props: {
|
|
11933
|
-
|
|
12152
|
+
mode: 'multiple',
|
|
11934
12153
|
notFoundContent: '暂无数据',
|
|
11935
12154
|
allowClear: true,
|
|
11936
12155
|
showSearch: true,
|
|
11937
12156
|
showArrow: true,
|
|
11938
|
-
|
|
12157
|
+
maxTagCount: 1,
|
|
11939
12158
|
optionFilterProp: 'children',
|
|
11940
12159
|
filterOption: function filterOption(input, option) {
|
|
11941
12160
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -12006,17 +12225,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12006
12225
|
}
|
|
12007
12226
|
}
|
|
12008
12227
|
}];
|
|
12009
|
-
var
|
|
12228
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12010
12229
|
querySelectHeadersList: querySelectHeadersList,
|
|
12011
12230
|
extralHeaders: extralHeaders
|
|
12012
12231
|
});
|
|
12013
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
12232
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
12014
12233
|
'qp-status-eq': 10,
|
|
12015
12234
|
'qp-isMain-eq': 1,
|
|
12016
12235
|
'qp-type-in': '1,2'
|
|
12017
|
-
}, getQueryHeadersItem(
|
|
12236
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
12018
12237
|
'qp-status-eq': 1
|
|
12019
|
-
}, getQueryHeadersItem(
|
|
12238
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
12020
12239
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12021
12240
|
var allList = firstElement && [firstElement, firstElement];
|
|
12022
12241
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12202,7 +12421,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12202
12421
|
}
|
|
12203
12422
|
}
|
|
12204
12423
|
}];
|
|
12205
|
-
var
|
|
12424
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12206
12425
|
querySelectHeadersList: querySelectHeadersList,
|
|
12207
12426
|
extralHeaders: extralHeaders
|
|
12208
12427
|
});
|
|
@@ -12210,21 +12429,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12210
12429
|
pageSize: 5000,
|
|
12211
12430
|
currentPage: 1,
|
|
12212
12431
|
'qp-companyType-eq': '30'
|
|
12213
|
-
}, getQueryHeadersItem(
|
|
12432
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12214
12433
|
pageSize: 5000,
|
|
12215
12434
|
currentPage: 1,
|
|
12216
12435
|
'qp-companyType-eq': '20'
|
|
12217
|
-
}, getQueryHeadersItem(
|
|
12436
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12218
12437
|
// pageSize: 5000,
|
|
12219
12438
|
// currentPage: 1,
|
|
12220
12439
|
'qp-status-eq': '1'
|
|
12221
|
-
}, getQueryHeadersItem(
|
|
12440
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12222
12441
|
pageSize: 5000,
|
|
12223
12442
|
currentPage: 1
|
|
12224
|
-
}, getQueryHeadersItem(
|
|
12443
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12225
12444
|
pageSize: 5000,
|
|
12226
12445
|
currentPage: 1
|
|
12227
|
-
}, getQueryHeadersItem(
|
|
12446
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12228
12447
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12229
12448
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12230
12449
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12508,7 +12727,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12508
12727
|
}
|
|
12509
12728
|
}
|
|
12510
12729
|
}];
|
|
12511
|
-
var
|
|
12730
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12512
12731
|
querySelectHeadersList: querySelectHeadersList,
|
|
12513
12732
|
extralHeaders: extralHeaders
|
|
12514
12733
|
});
|
|
@@ -12516,17 +12735,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12516
12735
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12517
12736
|
'qp-realOrg-eq': true,
|
|
12518
12737
|
'qp-status-eq': 10
|
|
12519
|
-
}, getQueryHeadersItem(
|
|
12738
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12520
12739
|
'qp-status-eq': 10,
|
|
12521
12740
|
'qp-isMain-eq': 1,
|
|
12522
12741
|
'qp-type-in': '1,2'
|
|
12523
|
-
}, getQueryHeadersItem(
|
|
12742
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12524
12743
|
'qp-status-eq': 1
|
|
12525
|
-
}, getQueryHeadersItem(
|
|
12744
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12526
12745
|
pageSize: 5000,
|
|
12527
12746
|
currentPage: 1,
|
|
12528
12747
|
'ctl-withAuth': true
|
|
12529
|
-
}, getQueryHeadersItem(
|
|
12748
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
12530
12749
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12531
12750
|
var newData1 = [];
|
|
12532
12751
|
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
@@ -12844,7 +13063,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12844
13063
|
name: 'qp-officeTelephone-like',
|
|
12845
13064
|
label: '手机号'
|
|
12846
13065
|
}];
|
|
12847
|
-
var
|
|
13066
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12848
13067
|
querySelectHeadersList: querySelectHeadersList,
|
|
12849
13068
|
extralHeaders: extralHeaders
|
|
12850
13069
|
});
|
|
@@ -12852,7 +13071,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12852
13071
|
pageSize: 5000,
|
|
12853
13072
|
currentPage: 1,
|
|
12854
13073
|
'qp-companyType-eq': 20
|
|
12855
|
-
}, getQueryHeadersItem(
|
|
13074
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12856
13075
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12857
13076
|
});
|
|
12858
13077
|
modalTableProps = _objectSpread2({
|
|
@@ -12961,13 +13180,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12961
13180
|
name: 'qp-phone-like',
|
|
12962
13181
|
label: '手机号'
|
|
12963
13182
|
}]);
|
|
12964
|
-
var
|
|
13183
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12965
13184
|
querySelectHeadersList: querySelectHeadersList,
|
|
12966
13185
|
extralHeaders: extralHeaders
|
|
12967
13186
|
});
|
|
12968
13187
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12969
13188
|
'orgViewCode': 'administrative-organization-view'
|
|
12970
|
-
}, getQueryHeadersItem(
|
|
13189
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12971
13190
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12972
13191
|
});
|
|
12973
13192
|
modalTableProps = _objectSpread2({
|
|
@@ -13114,17 +13333,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13114
13333
|
name: 'qp-remark-like',
|
|
13115
13334
|
label: '备注'
|
|
13116
13335
|
}];
|
|
13117
|
-
var
|
|
13336
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13118
13337
|
querySelectHeadersList: querySelectHeadersList,
|
|
13119
13338
|
extralHeaders: extralHeaders
|
|
13120
13339
|
});
|
|
13121
13340
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
13122
13341
|
pageSize: 5000,
|
|
13123
13342
|
currentPage: 1
|
|
13124
|
-
}, getQueryHeadersItem(
|
|
13343
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
13125
13344
|
pageSize: 5000,
|
|
13126
13345
|
currentPage: 1
|
|
13127
|
-
}, getQueryHeadersItem(
|
|
13346
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
13128
13347
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13129
13348
|
formatSource(x, 1, 5, tableSearchForm);
|
|
13130
13349
|
});
|
|
@@ -13294,14 +13513,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13294
13513
|
}
|
|
13295
13514
|
}
|
|
13296
13515
|
}];
|
|
13297
|
-
var
|
|
13516
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13298
13517
|
querySelectHeadersList: querySelectHeadersList,
|
|
13299
13518
|
extralHeaders: extralHeaders
|
|
13300
13519
|
});
|
|
13301
13520
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13302
13521
|
pageSize: 5000,
|
|
13303
13522
|
currentPage: 1
|
|
13304
|
-
}, getQueryHeadersItem(
|
|
13523
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13305
13524
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13306
13525
|
});
|
|
13307
13526
|
modalTableProps = _objectSpread2({
|
|
@@ -13398,7 +13617,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13398
13617
|
}
|
|
13399
13618
|
}
|
|
13400
13619
|
}];
|
|
13401
|
-
var
|
|
13620
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13402
13621
|
querySelectHeadersList: querySelectHeadersList,
|
|
13403
13622
|
extralHeaders: extralHeaders
|
|
13404
13623
|
});
|
|
@@ -13406,7 +13625,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13406
13625
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13407
13626
|
'qp-realOrg-eq': true,
|
|
13408
13627
|
'qp-status-eq': 10
|
|
13409
|
-
}, getQueryHeadersItem(
|
|
13628
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13410
13629
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13411
13630
|
});
|
|
13412
13631
|
modalTableProps = _objectSpread2({
|
|
@@ -13512,13 +13731,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13512
13731
|
},
|
|
13513
13732
|
initialSource: nodeType
|
|
13514
13733
|
}];
|
|
13515
|
-
var
|
|
13734
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13516
13735
|
querySelectHeadersList: querySelectHeadersList,
|
|
13517
13736
|
extralHeaders: extralHeaders
|
|
13518
13737
|
});
|
|
13519
13738
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13520
13739
|
'qp-status-eq': 10
|
|
13521
|
-
}, getQueryHeadersItem(
|
|
13740
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13522
13741
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13523
13742
|
});
|
|
13524
13743
|
modalTableProps = _objectSpread2({
|
|
@@ -13844,13 +14063,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13844
14063
|
},
|
|
13845
14064
|
initialSource: nodeType
|
|
13846
14065
|
}];
|
|
13847
|
-
var
|
|
14066
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13848
14067
|
querySelectHeadersList: querySelectHeadersList,
|
|
13849
14068
|
extralHeaders: extralHeaders
|
|
13850
14069
|
});
|
|
13851
14070
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13852
14071
|
'qp-status-eq': 10
|
|
13853
|
-
}, getQueryHeadersItem(
|
|
14072
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13854
14073
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13855
14074
|
});
|
|
13856
14075
|
modalTableProps = _objectSpread2({
|
|
@@ -14795,9 +15014,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14795
15014
|
value = _useState8[0],
|
|
14796
15015
|
setValue = _useState8[1];
|
|
14797
15016
|
var _useState9 = React$1.useState([]),
|
|
14798
|
-
|
|
14799
|
-
propertyList =
|
|
14800
|
-
setPropertyList =
|
|
15017
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
15018
|
+
propertyList = _useState10[0],
|
|
15019
|
+
setPropertyList = _useState10[1];
|
|
14801
15020
|
React$1.useEffect(function () {
|
|
14802
15021
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14803
15022
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15220,7 +15439,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15220
15439
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
15221
15440
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
15222
15441
|
localstorage = _storageKeyString$spl2[0],
|
|
15223
|
-
restKeyArrays =
|
|
15442
|
+
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15224
15443
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
15225
15444
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15226
15445
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15321,45 +15540,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15321
15540
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15322
15541
|
headers: headers
|
|
15323
15542
|
}).then(/*#__PURE__*/function () {
|
|
15324
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15543
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
15325
15544
|
var _ctx$form;
|
|
15326
15545
|
var resData, coverData, data, dataList;
|
|
15327
|
-
return
|
|
15328
|
-
while (1) switch (_context.
|
|
15546
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15547
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15329
15548
|
case 0:
|
|
15330
15549
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15331
15550
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15332
|
-
_context.
|
|
15551
|
+
_context.next = 13;
|
|
15333
15552
|
break;
|
|
15334
15553
|
}
|
|
15335
15554
|
data = resData.data;
|
|
15336
15555
|
if (!remoteSource.converter) {
|
|
15337
|
-
_context.
|
|
15556
|
+
_context.next = 9;
|
|
15338
15557
|
break;
|
|
15339
15558
|
}
|
|
15340
|
-
_context.
|
|
15559
|
+
_context.next = 6;
|
|
15341
15560
|
return remoteSource.converter({
|
|
15342
15561
|
data: [data]
|
|
15343
15562
|
});
|
|
15344
|
-
case
|
|
15345
|
-
coverData = _context.
|
|
15346
|
-
_context.
|
|
15563
|
+
case 6:
|
|
15564
|
+
coverData = _context.sent;
|
|
15565
|
+
_context.next = 11;
|
|
15347
15566
|
break;
|
|
15348
|
-
case
|
|
15567
|
+
case 9:
|
|
15349
15568
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15350
15569
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15351
15570
|
return _mapSearchTree(ites);
|
|
15352
15571
|
}) || [];
|
|
15353
|
-
case
|
|
15354
|
-
_context.
|
|
15572
|
+
case 11:
|
|
15573
|
+
_context.next = 14;
|
|
15355
15574
|
break;
|
|
15356
|
-
case
|
|
15575
|
+
case 13:
|
|
15357
15576
|
coverData = [];
|
|
15358
|
-
case
|
|
15577
|
+
case 14:
|
|
15359
15578
|
setTreeData(coverData);
|
|
15360
15579
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15361
|
-
case
|
|
15362
|
-
|
|
15580
|
+
case 16:
|
|
15581
|
+
case "end":
|
|
15582
|
+
return _context.stop();
|
|
15363
15583
|
}
|
|
15364
15584
|
}, _callee);
|
|
15365
15585
|
}));
|
|
@@ -19667,37 +19887,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19667
19887
|
};
|
|
19668
19888
|
var refs = React$1.useRef(null);
|
|
19669
19889
|
var _useState9 = React$1.useState(''),
|
|
19670
|
-
|
|
19671
|
-
pagePath =
|
|
19672
|
-
setPagePath =
|
|
19890
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19891
|
+
pagePath = _useState10[0],
|
|
19892
|
+
setPagePath = _useState10[1];
|
|
19673
19893
|
var _useLocation = umi.useLocation(),
|
|
19674
19894
|
pathname = _useLocation.pathname,
|
|
19675
19895
|
_useLocation$state = _useLocation.state;
|
|
19676
|
-
var
|
|
19677
|
-
|
|
19678
|
-
isFullScreen =
|
|
19679
|
-
setIsFnllScreen =
|
|
19896
|
+
var _useState11 = React$1.useState(false),
|
|
19897
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19898
|
+
isFullScreen = _useState12[0],
|
|
19899
|
+
setIsFnllScreen = _useState12[1];
|
|
19680
19900
|
// @ts-nocheck
|
|
19681
19901
|
var value = props;
|
|
19682
19902
|
var _props$fields = props.fields,
|
|
19683
19903
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19684
|
-
var
|
|
19685
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
19686
|
-
showColumn = _useState12[0],
|
|
19687
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
19688
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19689
|
-
var _useState13 = React$1.useState(originSearchFields),
|
|
19904
|
+
var _useState13 = React$1.useState([]),
|
|
19690
19905
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
var
|
|
19906
|
+
showColumn = _useState14[0],
|
|
19907
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19908
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19909
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
19694
19910
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
var _useState17 = React$1.useState(
|
|
19911
|
+
showSearchFields = _useState16[0],
|
|
19912
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19913
|
+
var _useState17 = React$1.useState([]),
|
|
19698
19914
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19699
|
-
|
|
19700
|
-
|
|
19915
|
+
showExportColumn = _useState18[0],
|
|
19916
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19917
|
+
var _useState19 = React$1.useState(''),
|
|
19918
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19919
|
+
height = _useState20[0],
|
|
19920
|
+
setHeight = _useState20[1];
|
|
19701
19921
|
var sortTableRef = React$1.useRef(null);
|
|
19702
19922
|
var searchTableRef = React$1.useRef(null);
|
|
19703
19923
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20325,7 +20545,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20325
20545
|
if (!match) return null;
|
|
20326
20546
|
var _match = _toArray(match),
|
|
20327
20547
|
url = _match[0],
|
|
20328
|
-
values =
|
|
20548
|
+
values = _match.slice(1);
|
|
20329
20549
|
var isExact = pathname === url;
|
|
20330
20550
|
if (exact && !isExact) return null;
|
|
20331
20551
|
return {
|
|
@@ -20745,19 +20965,22 @@ function outLogin(_x) {
|
|
|
20745
20965
|
return _outLogin.apply(this, arguments);
|
|
20746
20966
|
}
|
|
20747
20967
|
function _outLogin() {
|
|
20748
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20968
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20749
20969
|
var res;
|
|
20750
|
-
return
|
|
20751
|
-
while (1) switch (_context.
|
|
20970
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20971
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20752
20972
|
case 0:
|
|
20753
|
-
_context.
|
|
20973
|
+
_context.next = 2;
|
|
20754
20974
|
return requestUtil({
|
|
20755
20975
|
url: '/user/web/loginOut',
|
|
20756
20976
|
method: 'GET'
|
|
20757
20977
|
});
|
|
20758
|
-
case
|
|
20759
|
-
res = _context.
|
|
20760
|
-
return _context.
|
|
20978
|
+
case 2:
|
|
20979
|
+
res = _context.sent;
|
|
20980
|
+
return _context.abrupt("return", res);
|
|
20981
|
+
case 4:
|
|
20982
|
+
case "end":
|
|
20983
|
+
return _context.stop();
|
|
20761
20984
|
}
|
|
20762
20985
|
}, _callee);
|
|
20763
20986
|
}));
|
|
@@ -20884,20 +21107,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20884
21107
|
});
|
|
20885
21108
|
};
|
|
20886
21109
|
var loginOut = /*#__PURE__*/function () {
|
|
20887
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
21110
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20888
21111
|
var sessionId;
|
|
20889
|
-
return
|
|
20890
|
-
while (1) switch (_context.
|
|
21112
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21113
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20891
21114
|
case 0:
|
|
20892
|
-
_context.
|
|
21115
|
+
_context.next = 2;
|
|
20893
21116
|
return getSessionId();
|
|
20894
|
-
case
|
|
20895
|
-
sessionId = _context.
|
|
20896
|
-
_context.
|
|
21117
|
+
case 2:
|
|
21118
|
+
sessionId = _context.sent;
|
|
21119
|
+
_context.next = 5;
|
|
20897
21120
|
return outLogin({
|
|
20898
21121
|
sessionId: sessionId
|
|
20899
21122
|
});
|
|
20900
|
-
case
|
|
21123
|
+
case 5:
|
|
20901
21124
|
// @ts-ignore
|
|
20902
21125
|
if (BUILD_TYPE) {
|
|
20903
21126
|
antd.message.success('退出登录成功');
|
|
@@ -20907,8 +21130,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20907
21130
|
} else {
|
|
20908
21131
|
setLoginOutPath();
|
|
20909
21132
|
}
|
|
20910
|
-
case
|
|
20911
|
-
|
|
21133
|
+
case 6:
|
|
21134
|
+
case "end":
|
|
21135
|
+
return _context.stop();
|
|
20912
21136
|
}
|
|
20913
21137
|
}, _callee);
|
|
20914
21138
|
}));
|
|
@@ -20995,15 +21219,18 @@ function getStoreByName(_x) {
|
|
|
20995
21219
|
return _getStoreByName.apply(this, arguments);
|
|
20996
21220
|
}
|
|
20997
21221
|
function _getStoreByName() {
|
|
20998
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20999
|
-
return
|
|
21000
|
-
while (1) switch (_context.
|
|
21222
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
21223
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21224
|
+
while (1) switch (_context.prev = _context.next) {
|
|
21001
21225
|
case 0:
|
|
21002
|
-
return _context.
|
|
21226
|
+
return _context.abrupt("return", requestUtil({
|
|
21003
21227
|
url: '/store-house/orgViewNode/listNoPage',
|
|
21004
21228
|
method: 'GET',
|
|
21005
21229
|
params: _objectSpread2({}, params)
|
|
21006
21230
|
}));
|
|
21231
|
+
case 1:
|
|
21232
|
+
case "end":
|
|
21233
|
+
return _context.stop();
|
|
21007
21234
|
}
|
|
21008
21235
|
}, _callee);
|
|
21009
21236
|
}));
|
|
@@ -21038,33 +21265,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21038
21265
|
openSelect = _useState8[0],
|
|
21039
21266
|
setOpenSelect = _useState8[1];
|
|
21040
21267
|
var _useState9 = React$1.useState([]),
|
|
21041
|
-
|
|
21042
|
-
options =
|
|
21043
|
-
setOptions =
|
|
21044
|
-
var
|
|
21045
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21046
|
-
rescouse = _useState10[0],
|
|
21047
|
-
setRescouse = _useState10[1];
|
|
21048
|
-
var _useState11 = React$1.useState(''),
|
|
21268
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21269
|
+
options = _useState10[0],
|
|
21270
|
+
setOptions = _useState10[1];
|
|
21271
|
+
var _useState11 = React$1.useState([]),
|
|
21049
21272
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
var _useState13 = React$1.useState(
|
|
21273
|
+
rescouse = _useState12[0],
|
|
21274
|
+
setRescouse = _useState12[1];
|
|
21275
|
+
var _useState13 = React$1.useState(''),
|
|
21276
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
21277
|
+
searchValue = _useState14[0],
|
|
21278
|
+
setSearchValue = _useState14[1];
|
|
21279
|
+
var _useState15 = React$1.useState([{
|
|
21053
21280
|
label: name,
|
|
21054
21281
|
value: code
|
|
21055
21282
|
}]),
|
|
21056
|
-
|
|
21057
|
-
store =
|
|
21058
|
-
setStore =
|
|
21283
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
21284
|
+
store = _useState16[0],
|
|
21285
|
+
setStore = _useState16[1];
|
|
21059
21286
|
function fetchUserList(_x, _x2) {
|
|
21060
21287
|
return _fetchUserList.apply(this, arguments);
|
|
21061
21288
|
}
|
|
21062
21289
|
function _fetchUserList() {
|
|
21063
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
21064
|
-
return
|
|
21065
|
-
while (1) switch (_context3.
|
|
21290
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
21291
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
21292
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
21066
21293
|
case 0:
|
|
21067
|
-
return _context3.
|
|
21294
|
+
return _context3.abrupt("return", getStoreByName({
|
|
21068
21295
|
orgName: storeName ? storeName : undefined,
|
|
21069
21296
|
platCompanyCode: init ? undefined : key,
|
|
21070
21297
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -21083,6 +21310,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21083
21310
|
};
|
|
21084
21311
|
});
|
|
21085
21312
|
}));
|
|
21313
|
+
case 1:
|
|
21314
|
+
case "end":
|
|
21315
|
+
return _context3.stop();
|
|
21086
21316
|
}
|
|
21087
21317
|
}, _callee3);
|
|
21088
21318
|
}));
|
|
@@ -21105,19 +21335,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21105
21335
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
21106
21336
|
}, [debounceTimeout, key]);
|
|
21107
21337
|
var changeInput = /*#__PURE__*/function () {
|
|
21108
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21338
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
21109
21339
|
var res;
|
|
21110
|
-
return
|
|
21111
|
-
while (1) switch (_context.
|
|
21340
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21341
|
+
while (1) switch (_context.prev = _context.next) {
|
|
21112
21342
|
case 0:
|
|
21113
|
-
_context.
|
|
21343
|
+
_context.next = 2;
|
|
21114
21344
|
return debounceFetcher(str);
|
|
21115
|
-
case
|
|
21116
|
-
res = _context.
|
|
21345
|
+
case 2:
|
|
21346
|
+
res = _context.sent;
|
|
21117
21347
|
setOptions(res);
|
|
21118
21348
|
setRescouse(res);
|
|
21119
|
-
case
|
|
21120
|
-
|
|
21349
|
+
case 5:
|
|
21350
|
+
case "end":
|
|
21351
|
+
return _context.stop();
|
|
21121
21352
|
}
|
|
21122
21353
|
}, _callee);
|
|
21123
21354
|
}));
|
|
@@ -21126,15 +21357,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21126
21357
|
};
|
|
21127
21358
|
}();
|
|
21128
21359
|
React$1.useEffect(function () {
|
|
21129
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21360
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
21130
21361
|
var res;
|
|
21131
|
-
return
|
|
21132
|
-
while (1) switch (_context2.
|
|
21362
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21363
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
21133
21364
|
case 0:
|
|
21134
|
-
_context2.
|
|
21365
|
+
_context2.next = 2;
|
|
21135
21366
|
return fetchUserList(undefined, true);
|
|
21136
|
-
case
|
|
21137
|
-
res = _context2.
|
|
21367
|
+
case 2:
|
|
21368
|
+
res = _context2.sent;
|
|
21138
21369
|
res.map(function (item, indexNumber) {
|
|
21139
21370
|
if (item.label === name) {
|
|
21140
21371
|
setIndex(indexNumber);
|
|
@@ -21150,8 +21381,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21150
21381
|
});
|
|
21151
21382
|
setOptions(res);
|
|
21152
21383
|
setRescouse(res);
|
|
21153
|
-
case
|
|
21154
|
-
|
|
21384
|
+
case 6:
|
|
21385
|
+
case "end":
|
|
21386
|
+
return _context2.stop();
|
|
21155
21387
|
}
|
|
21156
21388
|
}, _callee2);
|
|
21157
21389
|
}))();
|
|
@@ -22200,25 +22432,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22200
22432
|
currentOneLevel = _useState8[0],
|
|
22201
22433
|
setCurrentOneLevel = _useState8[1];
|
|
22202
22434
|
var _useState9 = React$1.useState([]),
|
|
22203
|
-
|
|
22204
|
-
SearhData =
|
|
22205
|
-
setSearchMenuData =
|
|
22206
|
-
var
|
|
22207
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
22208
|
-
rightMenuHeight = _useState10[0],
|
|
22209
|
-
setHeight = _useState10[1];
|
|
22210
|
-
var _useState11 = React$1.useState(900),
|
|
22435
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
22436
|
+
SearhData = _useState10[0],
|
|
22437
|
+
setSearchMenuData = _useState10[1];
|
|
22438
|
+
var _useState11 = React$1.useState(600),
|
|
22211
22439
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
var _useState13 = React$1.useState(
|
|
22440
|
+
rightMenuHeight = _useState12[0],
|
|
22441
|
+
setHeight = _useState12[1];
|
|
22442
|
+
var _useState13 = React$1.useState(900),
|
|
22215
22443
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22216
|
-
|
|
22217
|
-
|
|
22444
|
+
drawHeight = _useState14[0],
|
|
22445
|
+
setDrawHeight = _useState14[1];
|
|
22218
22446
|
var _useState15 = React$1.useState(false),
|
|
22219
22447
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22220
|
-
|
|
22221
|
-
|
|
22448
|
+
moreBtnShow = _useState16[0],
|
|
22449
|
+
setMoreBtnShow = _useState16[1];
|
|
22450
|
+
var _useState17 = React$1.useState(false),
|
|
22451
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
22452
|
+
showScroll = _useState18[0],
|
|
22453
|
+
setShowScroll = _useState18[1];
|
|
22222
22454
|
React$1.useEffect(function () {
|
|
22223
22455
|
var _originRoutes$find;
|
|
22224
22456
|
getMenuContentHeight();
|
|
@@ -23829,11 +24061,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23829
24061
|
},
|
|
23830
24062
|
menu: {
|
|
23831
24063
|
request: function () {
|
|
23832
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23833
|
-
return
|
|
23834
|
-
while (1) switch (_context.
|
|
24064
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24065
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24066
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23835
24067
|
case 0:
|
|
23836
|
-
return _context.
|
|
24068
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
24069
|
+
case 1:
|
|
24070
|
+
case "end":
|
|
24071
|
+
return _context.stop();
|
|
23837
24072
|
}
|
|
23838
24073
|
}, _callee);
|
|
23839
24074
|
}));
|
|
@@ -24238,31 +24473,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24238
24473
|
multiTableData = _useState8[0],
|
|
24239
24474
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24240
24475
|
var _useState9 = React$1.useState(10),
|
|
24241
|
-
|
|
24242
|
-
viewCount =
|
|
24243
|
-
setViewCount =
|
|
24476
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24477
|
+
viewCount = _useState10[0],
|
|
24478
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
24244
24479
|
var itemWidth = 100; // 表格每一项宽度
|
|
24245
|
-
var
|
|
24246
|
-
|
|
24247
|
-
realColHeaderWidth =
|
|
24248
|
-
setLeftWidth =
|
|
24480
|
+
var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24481
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24482
|
+
realColHeaderWidth = _useState12[0],
|
|
24483
|
+
setLeftWidth = _useState12[1];
|
|
24249
24484
|
var viewPort = React$1.useRef(null);
|
|
24250
24485
|
var topScrollBar = React$1.useRef(null);
|
|
24251
24486
|
var leftTableRef = React$1.useRef(null);
|
|
24252
24487
|
//起始渲染item
|
|
24253
|
-
var
|
|
24254
|
-
|
|
24255
|
-
startIndex =
|
|
24256
|
-
setStartIndex =
|
|
24488
|
+
var _useState13 = React$1.useState(0),
|
|
24489
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24490
|
+
startIndex = _useState14[0],
|
|
24491
|
+
setStartIndex = _useState14[1];
|
|
24257
24492
|
//结束渲染item
|
|
24258
24493
|
var endIndex = React$1.useMemo(function () {
|
|
24259
24494
|
return startIndex + viewCount;
|
|
24260
24495
|
}, [startIndex, viewCount]);
|
|
24261
24496
|
//表格偏移量
|
|
24262
|
-
var
|
|
24263
|
-
|
|
24264
|
-
offsetWidth =
|
|
24265
|
-
setOffset =
|
|
24497
|
+
var _useState15 = React$1.useState(0),
|
|
24498
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24499
|
+
offsetWidth = _useState16[0],
|
|
24500
|
+
setOffset = _useState16[1];
|
|
24266
24501
|
React$1.useEffect(function () {
|
|
24267
24502
|
setTimeout(function () {
|
|
24268
24503
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31566,11 +31801,11 @@ var valueType = {
|
|
|
31566
31801
|
};
|
|
31567
31802
|
|
|
31568
31803
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31569
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31570
|
-
return
|
|
31571
|
-
while (1) switch (_context.
|
|
31804
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31805
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31806
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31572
31807
|
case 0:
|
|
31573
|
-
_context.
|
|
31808
|
+
_context.next = 2;
|
|
31574
31809
|
return bssula.request({
|
|
31575
31810
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31576
31811
|
converter: function converter(_ref2) {
|
|
@@ -31583,8 +31818,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31583
31818
|
});
|
|
31584
31819
|
}
|
|
31585
31820
|
});
|
|
31586
|
-
case
|
|
31587
|
-
return _context.
|
|
31821
|
+
case 2:
|
|
31822
|
+
return _context.abrupt("return", _context.sent);
|
|
31823
|
+
case 3:
|
|
31824
|
+
case "end":
|
|
31825
|
+
return _context.stop();
|
|
31588
31826
|
}
|
|
31589
31827
|
}, _callee);
|
|
31590
31828
|
}));
|
|
@@ -31631,12 +31869,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31631
31869
|
value: false
|
|
31632
31870
|
}];
|
|
31633
31871
|
var ref = React$1.useRef();
|
|
31634
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31635
|
-
var _ref$current, source
|
|
31636
|
-
return
|
|
31637
|
-
while (1) switch (_context.
|
|
31872
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31873
|
+
var _ref$current, source;
|
|
31874
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31875
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31638
31876
|
case 0:
|
|
31639
|
-
_context.
|
|
31877
|
+
_context.next = 2;
|
|
31640
31878
|
return setIsShowAndType(function (prev) {
|
|
31641
31879
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31642
31880
|
return {
|
|
@@ -31647,39 +31885,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31647
31885
|
}
|
|
31648
31886
|
return prev;
|
|
31649
31887
|
});
|
|
31650
|
-
case
|
|
31888
|
+
case 2:
|
|
31651
31889
|
if (!record.dictionaryCode) {
|
|
31652
|
-
_context.
|
|
31890
|
+
_context.next = 17;
|
|
31653
31891
|
break;
|
|
31654
31892
|
}
|
|
31655
31893
|
if (!(record.choiceType == 20)) {
|
|
31656
|
-
_context.
|
|
31894
|
+
_context.next = 7;
|
|
31657
31895
|
break;
|
|
31658
31896
|
}
|
|
31659
|
-
|
|
31660
|
-
_context.
|
|
31897
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31898
|
+
_context.next = 15;
|
|
31661
31899
|
break;
|
|
31662
|
-
case
|
|
31900
|
+
case 7:
|
|
31663
31901
|
if (!(record.choiceType == 30)) {
|
|
31664
|
-
_context.
|
|
31902
|
+
_context.next = 13;
|
|
31665
31903
|
break;
|
|
31666
31904
|
}
|
|
31667
|
-
_context.
|
|
31905
|
+
_context.next = 10;
|
|
31668
31906
|
return getDynamicDict(record.dictionaryCode);
|
|
31669
|
-
case
|
|
31670
|
-
|
|
31671
|
-
_context.
|
|
31907
|
+
case 10:
|
|
31908
|
+
_context.t1 = _context.sent;
|
|
31909
|
+
_context.next = 14;
|
|
31672
31910
|
break;
|
|
31673
|
-
case
|
|
31674
|
-
|
|
31675
|
-
case
|
|
31676
|
-
|
|
31677
|
-
case
|
|
31678
|
-
source =
|
|
31911
|
+
case 13:
|
|
31912
|
+
_context.t1 = [];
|
|
31913
|
+
case 14:
|
|
31914
|
+
_context.t0 = _context.t1;
|
|
31915
|
+
case 15:
|
|
31916
|
+
source = _context.t0;
|
|
31679
31917
|
// @ts-ignore
|
|
31680
31918
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31681
|
-
case
|
|
31682
|
-
|
|
31919
|
+
case 17:
|
|
31920
|
+
case "end":
|
|
31921
|
+
return _context.stop();
|
|
31683
31922
|
}
|
|
31684
31923
|
}, _callee);
|
|
31685
31924
|
})));
|
|
@@ -31744,10 +31983,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31744
31983
|
source: {
|
|
31745
31984
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31746
31985
|
type: function () {
|
|
31747
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31986
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
31748
31987
|
var form, values, name, relates, source;
|
|
31749
|
-
return
|
|
31750
|
-
while (1) switch (_context2.
|
|
31988
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31989
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31751
31990
|
case 0:
|
|
31752
31991
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31753
31992
|
if (values[0]) {
|
|
@@ -31756,18 +31995,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31756
31995
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31757
31996
|
}
|
|
31758
31997
|
if (!values[1]) {
|
|
31759
|
-
_context2.
|
|
31998
|
+
_context2.next = 9;
|
|
31760
31999
|
break;
|
|
31761
32000
|
}
|
|
31762
|
-
_context2.
|
|
32001
|
+
_context2.next = 5;
|
|
31763
32002
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31764
|
-
case
|
|
31765
|
-
source = _context2.
|
|
32003
|
+
case 5:
|
|
32004
|
+
source = _context2.sent;
|
|
31766
32005
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31767
32006
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31768
32007
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31769
|
-
case
|
|
31770
|
-
|
|
32008
|
+
case 9:
|
|
32009
|
+
case "end":
|
|
32010
|
+
return _context2.stop();
|
|
31771
32011
|
}
|
|
31772
32012
|
}, _callee2);
|
|
31773
32013
|
}));
|
|
@@ -32223,25 +32463,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32223
32463
|
source: {
|
|
32224
32464
|
relates: ['choiceType', 'inputType'],
|
|
32225
32465
|
type: function () {
|
|
32226
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32466
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
32227
32467
|
var values, name, form, source;
|
|
32228
|
-
return
|
|
32229
|
-
while (1) switch (_context3.
|
|
32468
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32469
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
32230
32470
|
case 0:
|
|
32231
|
-
values =
|
|
32471
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
32232
32472
|
if (values[1] === 40) {
|
|
32233
32473
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32234
32474
|
form.setFieldVisible(name, false);
|
|
32235
32475
|
}
|
|
32236
32476
|
if (!(values[0] === 30)) {
|
|
32237
|
-
_context3.
|
|
32477
|
+
_context3.next = 10;
|
|
32238
32478
|
break;
|
|
32239
32479
|
}
|
|
32240
|
-
_context3.
|
|
32480
|
+
_context3.next = 5;
|
|
32241
32481
|
return bssula.request({
|
|
32242
32482
|
url: '/basic/dictDynamicItem/queryList',
|
|
32243
|
-
converter: function converter(
|
|
32244
|
-
var data =
|
|
32483
|
+
converter: function converter(_ref11) {
|
|
32484
|
+
var data = _ref11.data;
|
|
32245
32485
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32246
32486
|
return {
|
|
32247
32487
|
text: d.dictCode,
|
|
@@ -32250,16 +32490,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32250
32490
|
});
|
|
32251
32491
|
}
|
|
32252
32492
|
});
|
|
32253
|
-
case
|
|
32254
|
-
source = _context3.
|
|
32493
|
+
case 5:
|
|
32494
|
+
source = _context3.sent;
|
|
32255
32495
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32256
32496
|
form.setFieldVisible(name, true);
|
|
32257
|
-
_context3.
|
|
32497
|
+
_context3.next = 11;
|
|
32258
32498
|
break;
|
|
32259
|
-
case
|
|
32499
|
+
case 10:
|
|
32260
32500
|
form.setFieldVisible(name, false);
|
|
32261
|
-
case
|
|
32262
|
-
|
|
32501
|
+
case 11:
|
|
32502
|
+
case "end":
|
|
32503
|
+
return _context3.stop();
|
|
32263
32504
|
}
|
|
32264
32505
|
}, _callee3);
|
|
32265
32506
|
}));
|
|
@@ -32274,8 +32515,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32274
32515
|
name: 'enumeration',
|
|
32275
32516
|
label: '维护自定义选项',
|
|
32276
32517
|
field: {
|
|
32277
|
-
type: function type(
|
|
32278
|
-
var form =
|
|
32518
|
+
type: function type(_ref12) {
|
|
32519
|
+
var form = _ref12.form;
|
|
32279
32520
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32280
32521
|
type: 'link',
|
|
32281
32522
|
onClick: function onClick() {
|
|
@@ -32301,10 +32542,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32301
32542
|
dependency: {
|
|
32302
32543
|
source: {
|
|
32303
32544
|
relates: ['choiceType'],
|
|
32304
|
-
type: function type(
|
|
32305
|
-
var values =
|
|
32306
|
-
name =
|
|
32307
|
-
form =
|
|
32545
|
+
type: function type(_ref13) {
|
|
32546
|
+
var values = _ref13.values,
|
|
32547
|
+
name = _ref13.name,
|
|
32548
|
+
form = _ref13.form;
|
|
32308
32549
|
if (values[0] === 10) {
|
|
32309
32550
|
form.setFieldVisible(name, true);
|
|
32310
32551
|
} else {
|
|
@@ -32320,10 +32561,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32320
32561
|
dependency: {
|
|
32321
32562
|
visible: {
|
|
32322
32563
|
relates: ['choiceType'],
|
|
32323
|
-
type: function type(
|
|
32324
|
-
var name =
|
|
32325
|
-
values =
|
|
32326
|
-
form =
|
|
32564
|
+
type: function type(_ref14) {
|
|
32565
|
+
var name = _ref14.name,
|
|
32566
|
+
values = _ref14.values,
|
|
32567
|
+
form = _ref14.form;
|
|
32327
32568
|
if (values[0] == 330) {
|
|
32328
32569
|
form.setFieldVisible(name, true);
|
|
32329
32570
|
} else {
|
|
@@ -32347,8 +32588,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32347
32588
|
params: {
|
|
32348
32589
|
'qp-businessType-eq': record.businessType
|
|
32349
32590
|
},
|
|
32350
|
-
converter: function converter(
|
|
32351
|
-
var data =
|
|
32591
|
+
converter: function converter(_ref15) {
|
|
32592
|
+
var data = _ref15.data;
|
|
32352
32593
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32353
32594
|
return {
|
|
32354
32595
|
text: d.name,
|
|
@@ -32388,8 +32629,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32388
32629
|
'qp-businessType-eq': record.businessType,
|
|
32389
32630
|
'qp-status-eq': 1
|
|
32390
32631
|
},
|
|
32391
|
-
converter: function converter(
|
|
32392
|
-
var data =
|
|
32632
|
+
converter: function converter(_ref16) {
|
|
32633
|
+
var data = _ref16.data;
|
|
32393
32634
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32394
32635
|
var _d$code;
|
|
32395
32636
|
return {
|
|
@@ -32417,8 +32658,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32417
32658
|
remoteSource: {
|
|
32418
32659
|
url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
|
|
32419
32660
|
method: 'get',
|
|
32420
|
-
converter: function converter(
|
|
32421
|
-
var data =
|
|
32661
|
+
converter: function converter(_ref17) {
|
|
32662
|
+
var data = _ref17.data;
|
|
32422
32663
|
if (lineDetail.moduleType == 1) {
|
|
32423
32664
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32424
32665
|
return {
|
|
@@ -32444,16 +32685,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32444
32685
|
width: 900,
|
|
32445
32686
|
maskClosable: false,
|
|
32446
32687
|
onOk: function () {
|
|
32447
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32688
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32448
32689
|
var _ref$current4, _res$editableStatus;
|
|
32449
32690
|
var res, _res$defaultValue;
|
|
32450
|
-
return
|
|
32451
|
-
while (1) switch (_context4.
|
|
32691
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32692
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
32452
32693
|
case 0:
|
|
32453
|
-
_context4.
|
|
32694
|
+
_context4.next = 2;
|
|
32454
32695
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32455
|
-
case
|
|
32456
|
-
res = _context4.
|
|
32696
|
+
case 2:
|
|
32697
|
+
res = _context4.sent;
|
|
32457
32698
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32458
32699
|
res.fieldGroup = record.fieldGroup;
|
|
32459
32700
|
res.businessType = record.businessType;
|
|
@@ -32480,7 +32721,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32480
32721
|
delete res.formula;
|
|
32481
32722
|
delete res.showValue;
|
|
32482
32723
|
if (!(mode === 'create')) {
|
|
32483
|
-
_context4.
|
|
32724
|
+
_context4.next = 18;
|
|
32484
32725
|
break;
|
|
32485
32726
|
}
|
|
32486
32727
|
bssula.request({
|
|
@@ -32492,8 +32733,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32492
32733
|
onParentOk();
|
|
32493
32734
|
}
|
|
32494
32735
|
});
|
|
32495
|
-
return _context4.
|
|
32496
|
-
case
|
|
32736
|
+
return _context4.abrupt("return");
|
|
32737
|
+
case 18:
|
|
32497
32738
|
bssula.request({
|
|
32498
32739
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32499
32740
|
method: 'PATCH',
|
|
@@ -32503,8 +32744,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32503
32744
|
onParentOk();
|
|
32504
32745
|
}
|
|
32505
32746
|
});
|
|
32506
|
-
case
|
|
32507
|
-
|
|
32747
|
+
case 19:
|
|
32748
|
+
case "end":
|
|
32749
|
+
return _context4.stop();
|
|
32508
32750
|
}
|
|
32509
32751
|
}, _callee4);
|
|
32510
32752
|
}));
|
|
@@ -32960,21 +33202,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32960
33202
|
jsonEditorVal = _useState8[0],
|
|
32961
33203
|
setJsonEditorVal = _useState8[1];
|
|
32962
33204
|
var _useState9 = React$1.useState({}),
|
|
32963
|
-
|
|
32964
|
-
moduleParams =
|
|
32965
|
-
setModuleParams =
|
|
32966
|
-
var
|
|
32967
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32968
|
-
activeKey = _useState10[0],
|
|
32969
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32970
|
-
var _useState11 = React$1.useState({}),
|
|
33205
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
33206
|
+
moduleParams = _useState10[0],
|
|
33207
|
+
setModuleParams = _useState10[1];
|
|
33208
|
+
var _useState11 = React$1.useState('main'),
|
|
32971
33209
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32972
|
-
|
|
32973
|
-
|
|
32974
|
-
var _useState13 = React$1.useState(
|
|
33210
|
+
activeKey = _useState12[0],
|
|
33211
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
33212
|
+
var _useState13 = React$1.useState({}),
|
|
32975
33213
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32976
|
-
|
|
32977
|
-
|
|
33214
|
+
tablesConfigParams = _useState14[0],
|
|
33215
|
+
setTablesConfigParams = _useState14[1];
|
|
33216
|
+
var _useState15 = React$1.useState([]),
|
|
33217
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
33218
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
33219
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32978
33220
|
React$1.useEffect(function () {
|
|
32979
33221
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32980
33222
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33005,7 +33247,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
33005
33247
|
});
|
|
33006
33248
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
33007
33249
|
var _ref6 = _toArray(_ref5),
|
|
33008
|
-
resArr =
|
|
33250
|
+
resArr = _ref6.slice(0);
|
|
33009
33251
|
var configParams = {};
|
|
33010
33252
|
detailTablesSetting.map(function (item, index) {
|
|
33011
33253
|
var _resArr$index;
|
|
@@ -33350,11 +33592,11 @@ function getMetaData(_x) {
|
|
|
33350
33592
|
|
|
33351
33593
|
// 获取数据
|
|
33352
33594
|
function _getMetaData() {
|
|
33353
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33354
|
-
return
|
|
33355
|
-
while (1) switch (_context.
|
|
33595
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33596
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33597
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33356
33598
|
case 0:
|
|
33357
|
-
return _context.
|
|
33599
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
33358
33600
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33359
33601
|
params: {
|
|
33360
33602
|
'qp-entityId-eq': id
|
|
@@ -33366,6 +33608,9 @@ function _getMetaData() {
|
|
|
33366
33608
|
reject([]);
|
|
33367
33609
|
});
|
|
33368
33610
|
}));
|
|
33611
|
+
case 1:
|
|
33612
|
+
case "end":
|
|
33613
|
+
return _context.stop();
|
|
33369
33614
|
}
|
|
33370
33615
|
}, _callee);
|
|
33371
33616
|
}));
|
|
@@ -33569,11 +33814,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33569
33814
|
tableState = _useState4[0],
|
|
33570
33815
|
setTableState = _useState4[1];
|
|
33571
33816
|
var handleOpen = /*#__PURE__*/function () {
|
|
33572
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33817
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33573
33818
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33574
33819
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33575
|
-
return
|
|
33576
|
-
while (1) switch (_context.
|
|
33820
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33821
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33577
33822
|
case 0:
|
|
33578
33823
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33579
33824
|
isSearchForm: props.isSearchForm,
|
|
@@ -33581,16 +33826,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33581
33826
|
searchFormData: searchFormData
|
|
33582
33827
|
});
|
|
33583
33828
|
if (requestConfigNew) {
|
|
33584
|
-
_context.
|
|
33829
|
+
_context.next = 3;
|
|
33585
33830
|
break;
|
|
33586
33831
|
}
|
|
33587
|
-
return _context.
|
|
33588
|
-
case
|
|
33832
|
+
return _context.abrupt("return");
|
|
33833
|
+
case 3:
|
|
33589
33834
|
metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
|
|
33590
|
-
_context.
|
|
33835
|
+
_context.next = 6;
|
|
33591
33836
|
return getMetaData(metaDataId);
|
|
33592
|
-
case
|
|
33593
|
-
metaData = _context.
|
|
33837
|
+
case 6:
|
|
33838
|
+
metaData = _context.sent;
|
|
33594
33839
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33595
33840
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33596
33841
|
})) || [];
|
|
@@ -33630,8 +33875,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33630
33875
|
// @ts-ignore
|
|
33631
33876
|
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
|
|
33632
33877
|
}
|
|
33633
|
-
case
|
|
33634
|
-
|
|
33878
|
+
case 14:
|
|
33879
|
+
case "end":
|
|
33880
|
+
return _context.stop();
|
|
33635
33881
|
}
|
|
33636
33882
|
}, _callee);
|
|
33637
33883
|
}));
|
|
@@ -33734,7 +33980,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33734
33980
|
}, [requestConfig, tableState.columns]);
|
|
33735
33981
|
var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
|
|
33736
33982
|
var handleOk = function handleOk(rowData) {
|
|
33737
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33983
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
33738
33984
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33739
33985
|
//多选数据处理
|
|
33740
33986
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33745,9 +33991,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33745
33991
|
var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
|
|
33746
33992
|
var realSelectedRows = selectedRows;
|
|
33747
33993
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33748
|
-
var _queryTableRef$
|
|
33994
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
33749
33995
|
// @ts-ignore
|
|
33750
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33996
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
|
|
33751
33997
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33752
33998
|
return selectedKesys.includes(s[rowKey]);
|
|
33753
33999
|
});
|
|
@@ -33780,10 +34026,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33780
34026
|
});
|
|
33781
34027
|
}
|
|
33782
34028
|
mappings.map(function (item) {
|
|
33783
|
-
var _props$
|
|
33784
|
-
if (((_props$
|
|
33785
|
-
var _props$
|
|
33786
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
34029
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
34030
|
+
if (((_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel]) {
|
|
34031
|
+
var _props$customSelector14, _props$customSelector15;
|
|
34032
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
|
|
33787
34033
|
}
|
|
33788
34034
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33789
34035
|
});
|
|
@@ -33838,10 +34084,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33838
34084
|
}
|
|
33839
34085
|
props.onCancel();
|
|
33840
34086
|
//@ts-ignore
|
|
33841
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34087
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
|
|
33842
34088
|
};
|
|
33843
34089
|
var config = React$1.useMemo(function () {
|
|
33844
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
34090
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33845
34091
|
var returnConfig = {
|
|
33846
34092
|
size: 'small',
|
|
33847
34093
|
needPageHeader: false,
|
|
@@ -33850,7 +34096,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33850
34096
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33851
34097
|
selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
|
|
33852
34098
|
return v.key || v;
|
|
33853
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
34099
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))
|
|
33854
34100
|
} : false,
|
|
33855
34101
|
remoteDataSource: remoteDataSource,
|
|
33856
34102
|
fields: tableState.fields,
|
|
@@ -33858,8 +34104,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33858
34104
|
rowKey: rowKey,
|
|
33859
34105
|
tableProps: !isView && {
|
|
33860
34106
|
rowClassName: function rowClassName(record) {
|
|
33861
|
-
var _props$
|
|
33862
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
34107
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
34108
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33863
34109
|
},
|
|
33864
34110
|
onRow: function onRow(record) {
|
|
33865
34111
|
return {
|
|
@@ -33904,10 +34150,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33904
34150
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33905
34151
|
type: "default",
|
|
33906
34152
|
onClick: function onClick() {
|
|
33907
|
-
var _queryTableRef$
|
|
34153
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33908
34154
|
props.onCancel();
|
|
33909
34155
|
//@ts-ignore
|
|
33910
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34156
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
|
|
33911
34157
|
}
|
|
33912
34158
|
}, "\u53D6\u6D88"))));
|
|
33913
34159
|
});
|
|
@@ -34131,19 +34377,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34131
34377
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34132
34378
|
handSource = _useState2[0],
|
|
34133
34379
|
setHandSource = _useState2[1];
|
|
34134
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34380
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34135
34381
|
var resData, data;
|
|
34136
|
-
return
|
|
34137
|
-
while (1) switch (_context.
|
|
34382
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34383
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34138
34384
|
case 0:
|
|
34139
34385
|
if (!(!source && initRequestSource)) {
|
|
34140
|
-
_context.
|
|
34386
|
+
_context.next = 6;
|
|
34141
34387
|
break;
|
|
34142
34388
|
}
|
|
34143
|
-
_context.
|
|
34389
|
+
_context.next = 3;
|
|
34144
34390
|
return initRequestSource();
|
|
34145
|
-
case
|
|
34146
|
-
resData = _context.
|
|
34391
|
+
case 3:
|
|
34392
|
+
resData = _context.sent;
|
|
34147
34393
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
34148
34394
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
34149
34395
|
label: item.text,
|
|
@@ -34151,8 +34397,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34151
34397
|
});
|
|
34152
34398
|
})) || [];
|
|
34153
34399
|
setHandSource(data);
|
|
34154
|
-
case
|
|
34155
|
-
|
|
34400
|
+
case 6:
|
|
34401
|
+
case "end":
|
|
34402
|
+
return _context.stop();
|
|
34156
34403
|
}
|
|
34157
34404
|
}, _callee);
|
|
34158
34405
|
})), []);
|
|
@@ -34282,17 +34529,20 @@ function getRegularThresholdRange(_x) {
|
|
|
34282
34529
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34283
34530
|
}
|
|
34284
34531
|
function _getRegularThresholdRange() {
|
|
34285
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34286
|
-
return
|
|
34287
|
-
while (1) switch (_context.
|
|
34532
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
34533
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34534
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34288
34535
|
case 0:
|
|
34289
|
-
return _context.
|
|
34536
|
+
return _context.abrupt("return", requestUtil({
|
|
34290
34537
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34291
34538
|
method: 'POST',
|
|
34292
34539
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34293
34540
|
queryIdentify: undefined
|
|
34294
34541
|
})
|
|
34295
34542
|
}));
|
|
34543
|
+
case 1:
|
|
34544
|
+
case "end":
|
|
34545
|
+
return _context.stop();
|
|
34296
34546
|
}
|
|
34297
34547
|
}, _callee);
|
|
34298
34548
|
}));
|
|
@@ -34433,24 +34683,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34433
34683
|
};
|
|
34434
34684
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34435
34685
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34436
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34686
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34437
34687
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34438
|
-
return
|
|
34439
|
-
while (1) switch (_context.
|
|
34688
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34689
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34440
34690
|
case 0:
|
|
34441
34691
|
if (queryIdentify) {
|
|
34442
|
-
_context.
|
|
34692
|
+
_context.next = 2;
|
|
34443
34693
|
break;
|
|
34444
34694
|
}
|
|
34445
|
-
return _context.
|
|
34446
|
-
case
|
|
34695
|
+
return _context.abrupt("return");
|
|
34696
|
+
case 2:
|
|
34447
34697
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34448
34698
|
extraRequestUrl = '';
|
|
34449
34699
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34450
34700
|
if (!queryIdentityInfo.find(function (item) {
|
|
34451
34701
|
return item.identity == propertyCode;
|
|
34452
34702
|
})) {
|
|
34453
|
-
_context.
|
|
34703
|
+
_context.next = 10;
|
|
34454
34704
|
break;
|
|
34455
34705
|
}
|
|
34456
34706
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34464,15 +34714,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34464
34714
|
if (!needQueryList.some(function (item) {
|
|
34465
34715
|
return !querParams[item] || !querParams[item].length;
|
|
34466
34716
|
})) {
|
|
34467
|
-
_context.
|
|
34717
|
+
_context.next = 9;
|
|
34468
34718
|
break;
|
|
34469
34719
|
}
|
|
34470
|
-
return _context.
|
|
34471
|
-
case
|
|
34720
|
+
return _context.abrupt("return");
|
|
34721
|
+
case 9:
|
|
34472
34722
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34473
34723
|
return item.identity == propertyCode;
|
|
34474
34724
|
}).requestUrl || '';
|
|
34475
|
-
case
|
|
34725
|
+
case 10:
|
|
34476
34726
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34477
34727
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34478
34728
|
querParams = {
|
|
@@ -34483,7 +34733,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34483
34733
|
// querParams = { dictCode: queryIdentify }
|
|
34484
34734
|
}
|
|
34485
34735
|
if (!extraRequestUrl) {
|
|
34486
|
-
_context.
|
|
34736
|
+
_context.next = 16;
|
|
34487
34737
|
break;
|
|
34488
34738
|
}
|
|
34489
34739
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34522,42 +34772,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34522
34772
|
return handleData;
|
|
34523
34773
|
}
|
|
34524
34774
|
});
|
|
34525
|
-
_context.
|
|
34775
|
+
_context.next = 29;
|
|
34526
34776
|
break;
|
|
34527
|
-
case
|
|
34777
|
+
case 16:
|
|
34528
34778
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34529
|
-
_context.
|
|
34779
|
+
_context.next = 20;
|
|
34530
34780
|
break;
|
|
34531
34781
|
}
|
|
34532
34782
|
_this.setState({
|
|
34533
34783
|
thresholdList: queryIdentify
|
|
34534
34784
|
});
|
|
34535
|
-
_context.
|
|
34785
|
+
_context.next = 29;
|
|
34536
34786
|
break;
|
|
34537
|
-
case
|
|
34787
|
+
case 20:
|
|
34538
34788
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34539
|
-
_context.
|
|
34789
|
+
_context.next = 24;
|
|
34540
34790
|
break;
|
|
34541
34791
|
}
|
|
34542
34792
|
// TODO待处理
|
|
34543
34793
|
_this.setState({
|
|
34544
34794
|
thresholdList: []
|
|
34545
34795
|
});
|
|
34546
|
-
_context.
|
|
34796
|
+
_context.next = 29;
|
|
34547
34797
|
break;
|
|
34548
|
-
case
|
|
34798
|
+
case 24:
|
|
34549
34799
|
querParams.queryIdentify = queryIdentify;
|
|
34550
|
-
_context.
|
|
34800
|
+
_context.next = 27;
|
|
34551
34801
|
return getRegularThresholdRange(querParams);
|
|
34552
|
-
case
|
|
34553
|
-
res = _context.
|
|
34802
|
+
case 27:
|
|
34803
|
+
res = _context.sent;
|
|
34554
34804
|
if (handleError(res)) {
|
|
34555
34805
|
_this.setState({
|
|
34556
34806
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34557
34807
|
});
|
|
34558
34808
|
}
|
|
34559
|
-
case
|
|
34560
|
-
|
|
34809
|
+
case 29:
|
|
34810
|
+
case "end":
|
|
34811
|
+
return _context.stop();
|
|
34561
34812
|
}
|
|
34562
34813
|
}, _callee);
|
|
34563
34814
|
}));
|
|
@@ -35389,11 +35640,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35389
35640
|
isAll: true,
|
|
35390
35641
|
needNameAndCode: true,
|
|
35391
35642
|
notChangeOnSelect: true,
|
|
35392
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35393
|
-
return
|
|
35394
|
-
while (1) switch (_context2.
|
|
35643
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35644
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35645
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
35395
35646
|
case 0:
|
|
35396
|
-
_context2.
|
|
35647
|
+
_context2.next = 2;
|
|
35397
35648
|
return bssula.request({
|
|
35398
35649
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35399
35650
|
method: 'get',
|
|
@@ -35410,8 +35661,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35410
35661
|
return handleData;
|
|
35411
35662
|
}
|
|
35412
35663
|
});
|
|
35413
|
-
case
|
|
35414
|
-
return _context2.
|
|
35664
|
+
case 2:
|
|
35665
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35666
|
+
case 3:
|
|
35667
|
+
case "end":
|
|
35668
|
+
return _context2.stop();
|
|
35415
35669
|
}
|
|
35416
35670
|
}, _callee2);
|
|
35417
35671
|
})),
|
|
@@ -35435,11 +35689,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35435
35689
|
isAll: true,
|
|
35436
35690
|
needNameAndCode: true,
|
|
35437
35691
|
notChangeOnSelect: true,
|
|
35438
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35439
|
-
return
|
|
35440
|
-
while (1) switch (_context3.
|
|
35692
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35693
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35694
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
35441
35695
|
case 0:
|
|
35442
|
-
_context3.
|
|
35696
|
+
_context3.next = 2;
|
|
35443
35697
|
return bssula.request({
|
|
35444
35698
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35445
35699
|
method: 'get',
|
|
@@ -35456,8 +35710,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35456
35710
|
return handleData;
|
|
35457
35711
|
}
|
|
35458
35712
|
});
|
|
35459
|
-
case
|
|
35460
|
-
return _context3.
|
|
35713
|
+
case 2:
|
|
35714
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35715
|
+
case 3:
|
|
35716
|
+
case "end":
|
|
35717
|
+
return _context3.stop();
|
|
35461
35718
|
}
|
|
35462
35719
|
}, _callee3);
|
|
35463
35720
|
})),
|
|
@@ -35483,11 +35740,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35483
35740
|
isAll: true,
|
|
35484
35741
|
needNameAndCode: true,
|
|
35485
35742
|
notChangeOnSelect: true,
|
|
35486
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35487
|
-
return
|
|
35488
|
-
while (1) switch (_context4.
|
|
35743
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35744
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35745
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
35489
35746
|
case 0:
|
|
35490
|
-
_context4.
|
|
35747
|
+
_context4.next = 2;
|
|
35491
35748
|
return bssula.request({
|
|
35492
35749
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35493
35750
|
method: 'get',
|
|
@@ -35504,8 +35761,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35504
35761
|
return handleData;
|
|
35505
35762
|
}
|
|
35506
35763
|
});
|
|
35507
|
-
case
|
|
35508
|
-
return _context4.
|
|
35764
|
+
case 2:
|
|
35765
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35766
|
+
case 3:
|
|
35767
|
+
case "end":
|
|
35768
|
+
return _context4.stop();
|
|
35509
35769
|
}
|
|
35510
35770
|
}, _callee4);
|
|
35511
35771
|
})),
|
|
@@ -36192,8 +36452,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36192
36452
|
}
|
|
36193
36453
|
}));
|
|
36194
36454
|
} else {
|
|
36195
|
-
var
|
|
36196
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36455
|
+
var _values10;
|
|
36456
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36197
36457
|
return {
|
|
36198
36458
|
key: s,
|
|
36199
36459
|
label: valueNames[vIndex],
|
|
@@ -36481,8 +36741,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36481
36741
|
}
|
|
36482
36742
|
}));
|
|
36483
36743
|
} else {
|
|
36484
|
-
var
|
|
36485
|
-
var
|
|
36744
|
+
var _values11;
|
|
36745
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36486
36746
|
return {
|
|
36487
36747
|
key: s,
|
|
36488
36748
|
label: valueNames[vIndex],
|
|
@@ -36504,7 +36764,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36504
36764
|
} : {}),
|
|
36505
36765
|
disabled: disabled,
|
|
36506
36766
|
labelInValue: true,
|
|
36507
|
-
value:
|
|
36767
|
+
value: _currentValue10,
|
|
36508
36768
|
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36509
36769
|
otherParams: {
|
|
36510
36770
|
// 配送方式只选择标准配送方式
|
|
@@ -36602,8 +36862,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36602
36862
|
}
|
|
36603
36863
|
}));
|
|
36604
36864
|
} else {
|
|
36605
|
-
var
|
|
36606
|
-
var
|
|
36865
|
+
var _values12;
|
|
36866
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36607
36867
|
return {
|
|
36608
36868
|
key: s,
|
|
36609
36869
|
label: valueNames[vIndex],
|
|
@@ -36625,7 +36885,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36625
36885
|
} : {}),
|
|
36626
36886
|
disabled: disabled,
|
|
36627
36887
|
labelInValue: true,
|
|
36628
|
-
value:
|
|
36888
|
+
value: _currentValue11,
|
|
36629
36889
|
requestConfig: {
|
|
36630
36890
|
filterInit: 'qp-code-in'
|
|
36631
36891
|
},
|
|
@@ -36718,8 +36978,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36718
36978
|
}
|
|
36719
36979
|
}));
|
|
36720
36980
|
} else {
|
|
36721
|
-
var
|
|
36722
|
-
var
|
|
36981
|
+
var _values13;
|
|
36982
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
36723
36983
|
return {
|
|
36724
36984
|
key: s,
|
|
36725
36985
|
label: valueNames[vIndex],
|
|
@@ -36741,7 +37001,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36741
37001
|
} : {}),
|
|
36742
37002
|
disabled: disabled,
|
|
36743
37003
|
labelInValue: true,
|
|
36744
|
-
value:
|
|
37004
|
+
value: _currentValue12,
|
|
36745
37005
|
requestConfig: {
|
|
36746
37006
|
filterInit: 'qp-brandCode-in'
|
|
36747
37007
|
},
|
|
@@ -36932,8 +37192,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36932
37192
|
}
|
|
36933
37193
|
}));
|
|
36934
37194
|
} else {
|
|
36935
|
-
var
|
|
36936
|
-
var
|
|
37195
|
+
var _values14;
|
|
37196
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36937
37197
|
return {
|
|
36938
37198
|
key: s,
|
|
36939
37199
|
label: valueNames[vIndex]
|
|
@@ -36961,7 +37221,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36961
37221
|
isSearchForm: true,
|
|
36962
37222
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36963
37223
|
disabled: disabled,
|
|
36964
|
-
value:
|
|
37224
|
+
value: _currentValue13,
|
|
36965
37225
|
onChange: function onChange(value, sourceList) {
|
|
36966
37226
|
if (dataInputBusinessType === 12) {
|
|
36967
37227
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37281,9 +37541,9 @@ var App$1 = function App(_ref) {
|
|
|
37281
37541
|
UpdateState(res);
|
|
37282
37542
|
};
|
|
37283
37543
|
var _useState9 = React$1.useState(false),
|
|
37284
|
-
|
|
37285
|
-
isModalVisible =
|
|
37286
|
-
setIsModalVisible =
|
|
37544
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37545
|
+
isModalVisible = _useState10[0],
|
|
37546
|
+
setIsModalVisible = _useState10[1];
|
|
37287
37547
|
var showModal = function showModal() {
|
|
37288
37548
|
setIsModalVisible(true);
|
|
37289
37549
|
};
|
|
@@ -37764,26 +38024,27 @@ function RenderCompItem(props) {
|
|
|
37764
38024
|
dictData = _useState2[0],
|
|
37765
38025
|
setDictData = _useState2[1];
|
|
37766
38026
|
var getDictData = /*#__PURE__*/function () {
|
|
37767
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
38027
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
37768
38028
|
var _data$map;
|
|
37769
38029
|
var data;
|
|
37770
|
-
return
|
|
37771
|
-
while (1) switch (_context.
|
|
38030
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38031
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37772
38032
|
case 0:
|
|
37773
|
-
_context.
|
|
38033
|
+
_context.next = 2;
|
|
37774
38034
|
return bssula.request({
|
|
37775
38035
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37776
38036
|
});
|
|
37777
|
-
case
|
|
37778
|
-
data = _context.
|
|
38037
|
+
case 2:
|
|
38038
|
+
data = _context.sent;
|
|
37779
38039
|
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
37780
38040
|
return {
|
|
37781
38041
|
text: item.dictItemName,
|
|
37782
38042
|
value: item.dictItemCode
|
|
37783
38043
|
};
|
|
37784
38044
|
}));
|
|
37785
|
-
case
|
|
37786
|
-
|
|
38045
|
+
case 4:
|
|
38046
|
+
case "end":
|
|
38047
|
+
return _context.stop();
|
|
37787
38048
|
}
|
|
37788
38049
|
}, _callee);
|
|
37789
38050
|
}));
|
|
@@ -38024,11 +38285,11 @@ function RenderCompItem(props) {
|
|
|
38024
38285
|
needNameAndCode: true,
|
|
38025
38286
|
notChangeOnSelect: true,
|
|
38026
38287
|
initRequestSource: function () {
|
|
38027
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
38028
|
-
return
|
|
38029
|
-
while (1) switch (_context2.
|
|
38288
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
38289
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
38290
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
38030
38291
|
case 0:
|
|
38031
|
-
_context2.
|
|
38292
|
+
_context2.next = 2;
|
|
38032
38293
|
return bssula.request({
|
|
38033
38294
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
38034
38295
|
method: 'get',
|
|
@@ -38046,8 +38307,11 @@ function RenderCompItem(props) {
|
|
|
38046
38307
|
return handleData;
|
|
38047
38308
|
}
|
|
38048
38309
|
});
|
|
38049
|
-
case
|
|
38050
|
-
return _context2.
|
|
38310
|
+
case 2:
|
|
38311
|
+
return _context2.abrupt("return", _context2.sent);
|
|
38312
|
+
case 3:
|
|
38313
|
+
case "end":
|
|
38314
|
+
return _context2.stop();
|
|
38051
38315
|
}
|
|
38052
38316
|
}, _callee2);
|
|
38053
38317
|
}));
|
|
@@ -40103,13 +40367,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40103
40367
|
ruleTypeData = _useState8[0],
|
|
40104
40368
|
setRuleTypeData = _useState8[1];
|
|
40105
40369
|
var _useState9 = React$1.useState([]),
|
|
40106
|
-
|
|
40107
|
-
ruleReturnConfig =
|
|
40108
|
-
setRuleReturnConfig =
|
|
40109
|
-
var
|
|
40110
|
-
|
|
40111
|
-
templateData =
|
|
40112
|
-
setTemplateData =
|
|
40370
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40371
|
+
ruleReturnConfig = _useState10[0],
|
|
40372
|
+
setRuleReturnConfig = _useState10[1];
|
|
40373
|
+
var _useState11 = React$1.useState({}),
|
|
40374
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
40375
|
+
templateData = _useState12[0],
|
|
40376
|
+
setTemplateData = _useState12[1];
|
|
40113
40377
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
40114
40378
|
bssula.request({
|
|
40115
40379
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40445,25 +40709,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40445
40709
|
regularDataList = _useState8[0],
|
|
40446
40710
|
setRegularDataList = _useState8[1];
|
|
40447
40711
|
var _useState9 = React$1.useState([]),
|
|
40448
|
-
|
|
40449
|
-
baseRuleDetailList =
|
|
40450
|
-
setBaseRuleDetailList =
|
|
40451
|
-
var
|
|
40452
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
40453
|
-
systemVariableList = _useState10[0],
|
|
40454
|
-
setSystemVariableList = _useState10[1];
|
|
40455
|
-
var _useState11 = React$1.useState(false),
|
|
40712
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40713
|
+
baseRuleDetailList = _useState10[0],
|
|
40714
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40715
|
+
var _useState11 = React$1.useState([]),
|
|
40456
40716
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40457
|
-
|
|
40458
|
-
|
|
40717
|
+
systemVariableList = _useState12[0],
|
|
40718
|
+
setSystemVariableList = _useState12[1];
|
|
40459
40719
|
var _useState13 = React$1.useState(false),
|
|
40460
40720
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40461
|
-
|
|
40462
|
-
|
|
40721
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40722
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40463
40723
|
var _useState15 = React$1.useState(false),
|
|
40464
40724
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40465
|
-
|
|
40466
|
-
|
|
40725
|
+
isGetRuleDataRes = _useState16[0],
|
|
40726
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40727
|
+
var _useState17 = React$1.useState(false),
|
|
40728
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40729
|
+
groupOtherPriorityList = _useState18[0],
|
|
40730
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
40467
40731
|
var baseRuleRef = React$1.useRef();
|
|
40468
40732
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40469
40733
|
// 查询规则组下所有规则实例
|