@bit-sun/business-component 4.2.0-alpha.5 → 4.2.0-alpha.6.1
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 +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +852 -982
- package/dist/index.js +853 -981
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/utils.d.ts +41 -0
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +1 -1
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/index.ts +2 -0
- package/src/utils/utils.ts +41 -1
package/dist/index.esm.js
CHANGED
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
193
|
}
|
|
194
194
|
return i;
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
197
197
|
if (null == r) return {};
|
|
198
198
|
var t = {};
|
|
199
199
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (e.
|
|
200
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
201
201
|
t[n] = r[n];
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
@@ -207,306 +207,115 @@ function _possibleConstructorReturn(t, e) {
|
|
|
207
207
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
208
|
return _assertThisInitialized(t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
210
|
+
function _regenerator() {
|
|
211
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
212
|
+
var e,
|
|
213
|
+
t,
|
|
214
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
215
|
+
n = r.iterator || "@@iterator",
|
|
216
|
+
o = r.toStringTag || "@@toStringTag";
|
|
217
|
+
function i(r, n, o, i) {
|
|
218
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
219
|
+
u = Object.create(c.prototype);
|
|
220
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
221
|
+
var i,
|
|
222
|
+
c,
|
|
223
|
+
u,
|
|
224
|
+
f = 0,
|
|
225
|
+
p = o || [],
|
|
226
|
+
y = !1,
|
|
227
|
+
G = {
|
|
228
|
+
p: 0,
|
|
229
|
+
n: 0,
|
|
230
|
+
v: e,
|
|
231
|
+
a: d,
|
|
232
|
+
f: d.bind(e, 4),
|
|
233
|
+
d: function (t, r) {
|
|
234
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
function d(r, n) {
|
|
238
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
239
|
+
var o,
|
|
240
|
+
i = p[t],
|
|
241
|
+
d = G.p,
|
|
242
|
+
l = i[2];
|
|
243
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
244
|
+
}
|
|
245
|
+
if (o || r > 1) return a;
|
|
246
|
+
throw y = !0, n;
|
|
247
|
+
}
|
|
248
|
+
return function (o, p, l) {
|
|
249
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
250
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
251
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
252
|
+
try {
|
|
253
|
+
if (f = 2, i) {
|
|
254
|
+
if (c || (o = "next"), t = i[o]) {
|
|
255
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
256
|
+
if (!t.done) return t;
|
|
257
|
+
u = t.value, c < 2 && (c = 0);
|
|
258
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
259
|
+
i = e;
|
|
260
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
261
|
+
} catch (t) {
|
|
262
|
+
i = e, c = 1, u = t;
|
|
263
|
+
} finally {
|
|
264
|
+
f = 1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
value: t,
|
|
269
|
+
done: y
|
|
270
|
+
};
|
|
258
271
|
};
|
|
259
|
-
}
|
|
272
|
+
}(r, o, i), !0), u;
|
|
260
273
|
}
|
|
261
|
-
|
|
262
|
-
var h = "suspendedStart",
|
|
263
|
-
l = "suspendedYield",
|
|
264
|
-
f = "executing",
|
|
265
|
-
s = "completed",
|
|
266
|
-
y = {};
|
|
274
|
+
var a = {};
|
|
267
275
|
function Generator() {}
|
|
268
276
|
function GeneratorFunction() {}
|
|
269
277
|
function GeneratorFunctionPrototype() {}
|
|
270
|
-
|
|
271
|
-
|
|
278
|
+
t = Object.getPrototypeOf;
|
|
279
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
280
|
+
return this;
|
|
281
|
+
}), t),
|
|
282
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
283
|
+
function f(e) {
|
|
284
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
285
|
+
}
|
|
286
|
+
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 () {
|
|
272
287
|
return this;
|
|
273
|
-
})
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
277
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
278
|
-
function defineIteratorMethods(t) {
|
|
279
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
280
|
-
define(t, e, function (t) {
|
|
281
|
-
return this._invoke(e, t);
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function AsyncIterator(t, e) {
|
|
286
|
-
function invoke(r, o, i, a) {
|
|
287
|
-
var c = tryCatch(t[r], t, o);
|
|
288
|
-
if ("throw" !== c.type) {
|
|
289
|
-
var u = c.arg,
|
|
290
|
-
h = u.value;
|
|
291
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
292
|
-
invoke("next", t, i, a);
|
|
293
|
-
}, function (t) {
|
|
294
|
-
invoke("throw", t, i, a);
|
|
295
|
-
}) : e.resolve(h).then(function (t) {
|
|
296
|
-
u.value = t, i(u);
|
|
297
|
-
}, function (t) {
|
|
298
|
-
return invoke("throw", t, i, a);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
a(c.arg);
|
|
302
|
-
}
|
|
303
|
-
var r;
|
|
304
|
-
o(this, "_invoke", {
|
|
305
|
-
value: function (t, n) {
|
|
306
|
-
function callInvokeWithMethodAndArg() {
|
|
307
|
-
return new e(function (e, r) {
|
|
308
|
-
invoke(t, n, e, r);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function makeInvokeMethod(e, r, n) {
|
|
316
|
-
var o = h;
|
|
317
|
-
return function (i, a) {
|
|
318
|
-
if (o === f) throw Error("Generator is already running");
|
|
319
|
-
if (o === s) {
|
|
320
|
-
if ("throw" === i) throw a;
|
|
321
|
-
return {
|
|
322
|
-
value: t,
|
|
323
|
-
done: !0
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
for (n.method = i, n.arg = a;;) {
|
|
327
|
-
var c = n.delegate;
|
|
328
|
-
if (c) {
|
|
329
|
-
var u = maybeInvokeDelegate(c, n);
|
|
330
|
-
if (u) {
|
|
331
|
-
if (u === y) continue;
|
|
332
|
-
return u;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
336
|
-
if (o === h) throw o = s, n.arg;
|
|
337
|
-
n.dispatchException(n.arg);
|
|
338
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
339
|
-
o = f;
|
|
340
|
-
var p = tryCatch(e, r, n);
|
|
341
|
-
if ("normal" === p.type) {
|
|
342
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
343
|
-
return {
|
|
344
|
-
value: p.arg,
|
|
345
|
-
done: n.done
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function maybeInvokeDelegate(e, r) {
|
|
353
|
-
var n = r.method,
|
|
354
|
-
o = e.iterator[n];
|
|
355
|
-
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;
|
|
356
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
357
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
358
|
-
var a = i.arg;
|
|
359
|
-
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);
|
|
360
|
-
}
|
|
361
|
-
function pushTryEntry(t) {
|
|
362
|
-
var e = {
|
|
363
|
-
tryLoc: t[0]
|
|
364
|
-
};
|
|
365
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
366
|
-
}
|
|
367
|
-
function resetTryEntry(t) {
|
|
368
|
-
var e = t.completion || {};
|
|
369
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
370
|
-
}
|
|
371
|
-
function Context(t) {
|
|
372
|
-
this.tryEntries = [{
|
|
373
|
-
tryLoc: "root"
|
|
374
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
375
|
-
}
|
|
376
|
-
function values(e) {
|
|
377
|
-
if (e || "" === e) {
|
|
378
|
-
var r = e[a];
|
|
379
|
-
if (r) return r.call(e);
|
|
380
|
-
if ("function" == typeof e.next) return e;
|
|
381
|
-
if (!isNaN(e.length)) {
|
|
382
|
-
var o = -1,
|
|
383
|
-
i = function next() {
|
|
384
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
385
|
-
return next.value = t, next.done = !0, next;
|
|
386
|
-
};
|
|
387
|
-
return i.next = i;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
391
|
-
}
|
|
392
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
393
|
-
value: GeneratorFunctionPrototype,
|
|
394
|
-
configurable: !0
|
|
395
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
396
|
-
value: GeneratorFunction,
|
|
397
|
-
configurable: !0
|
|
398
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
399
|
-
var e = "function" == typeof t && t.constructor;
|
|
400
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
401
|
-
}, e.mark = function (t) {
|
|
402
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
403
|
-
}, e.awrap = function (t) {
|
|
288
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
289
|
+
return "[object Generator]";
|
|
290
|
+
}), (_regenerator = function () {
|
|
404
291
|
return {
|
|
405
|
-
|
|
292
|
+
w: i,
|
|
293
|
+
m: f
|
|
406
294
|
};
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
return next.done = !0, next;
|
|
429
|
-
};
|
|
430
|
-
}, e.values = values, Context.prototype = {
|
|
431
|
-
constructor: Context,
|
|
432
|
-
reset: function (e) {
|
|
433
|
-
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);
|
|
434
|
-
},
|
|
435
|
-
stop: function () {
|
|
436
|
-
this.done = !0;
|
|
437
|
-
var t = this.tryEntries[0].completion;
|
|
438
|
-
if ("throw" === t.type) throw t.arg;
|
|
439
|
-
return this.rval;
|
|
440
|
-
},
|
|
441
|
-
dispatchException: function (e) {
|
|
442
|
-
if (this.done) throw e;
|
|
443
|
-
var r = this;
|
|
444
|
-
function handle(n, o) {
|
|
445
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
446
|
-
}
|
|
447
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
448
|
-
var i = this.tryEntries[o],
|
|
449
|
-
a = i.completion;
|
|
450
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
451
|
-
if (i.tryLoc <= this.prev) {
|
|
452
|
-
var c = n.call(i, "catchLoc"),
|
|
453
|
-
u = n.call(i, "finallyLoc");
|
|
454
|
-
if (c && u) {
|
|
455
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
456
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
457
|
-
} else if (c) {
|
|
458
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
459
|
-
} else {
|
|
460
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
461
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
abrupt: function (t, e) {
|
|
467
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
468
|
-
var o = this.tryEntries[r];
|
|
469
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
470
|
-
var i = o;
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
475
|
-
var a = i ? i.completion : {};
|
|
476
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
477
|
-
},
|
|
478
|
-
complete: function (t, e) {
|
|
479
|
-
if ("throw" === t.type) throw t.arg;
|
|
480
|
-
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;
|
|
481
|
-
},
|
|
482
|
-
finish: function (t) {
|
|
483
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
484
|
-
var r = this.tryEntries[e];
|
|
485
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
catch: function (t) {
|
|
489
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
490
|
-
var r = this.tryEntries[e];
|
|
491
|
-
if (r.tryLoc === t) {
|
|
492
|
-
var n = r.completion;
|
|
493
|
-
if ("throw" === n.type) {
|
|
494
|
-
var o = n.arg;
|
|
495
|
-
resetTryEntry(r);
|
|
496
|
-
}
|
|
497
|
-
return o;
|
|
498
|
-
}
|
|
295
|
+
})();
|
|
296
|
+
}
|
|
297
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
298
|
+
var i = Object.defineProperty;
|
|
299
|
+
try {
|
|
300
|
+
i({}, "", {});
|
|
301
|
+
} catch (e) {
|
|
302
|
+
i = 0;
|
|
303
|
+
}
|
|
304
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
305
|
+
if (r) i ? i(e, r, {
|
|
306
|
+
value: n,
|
|
307
|
+
enumerable: !t,
|
|
308
|
+
configurable: !t,
|
|
309
|
+
writable: !t
|
|
310
|
+
}) : e[r] = n;else {
|
|
311
|
+
function o(r, n) {
|
|
312
|
+
_regeneratorDefine(e, r, function (e) {
|
|
313
|
+
return this._invoke(r, n, e);
|
|
314
|
+
});
|
|
499
315
|
}
|
|
500
|
-
|
|
501
|
-
},
|
|
502
|
-
delegateYield: function (e, r, n) {
|
|
503
|
-
return this.delegate = {
|
|
504
|
-
iterator: values(e),
|
|
505
|
-
resultName: r,
|
|
506
|
-
nextLoc: n
|
|
507
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
316
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
508
317
|
}
|
|
509
|
-
}, e;
|
|
318
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
510
319
|
}
|
|
511
320
|
function _setPrototypeOf(t, e) {
|
|
512
321
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1454,6 +1263,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1454
1263
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1455
1264
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1456
1265
|
};
|
|
1266
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1267
|
+
return type === 'form' ? {
|
|
1268
|
+
container: {
|
|
1269
|
+
type: 'card',
|
|
1270
|
+
props: {
|
|
1271
|
+
title: title,
|
|
1272
|
+
id: Math.random(),
|
|
1273
|
+
level: 1,
|
|
1274
|
+
name: name
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
itemLayout: {
|
|
1278
|
+
span: 8,
|
|
1279
|
+
labelCol: {
|
|
1280
|
+
span: 8
|
|
1281
|
+
},
|
|
1282
|
+
wrapperCol: {
|
|
1283
|
+
span: 18
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
} : {
|
|
1287
|
+
container: {
|
|
1288
|
+
type: 'card',
|
|
1289
|
+
props: {
|
|
1290
|
+
title: title,
|
|
1291
|
+
id: Math.random(),
|
|
1292
|
+
level: 1,
|
|
1293
|
+
bordered: null,
|
|
1294
|
+
isWhiteCard: true,
|
|
1295
|
+
name: name
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
itemLayout: {
|
|
1299
|
+
wrapperCol: {
|
|
1300
|
+
span: 0
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1457
1305
|
|
|
1458
1306
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1459
1307
|
var authFunc = function authFunc(code) {
|
|
@@ -1540,22 +1388,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1540
1388
|
// sheepMap是表头字段中英文映射
|
|
1541
1389
|
// sheetCount:表的数量,默认一张
|
|
1542
1390
|
var resolveFile = /*#__PURE__*/function () {
|
|
1543
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1391
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1544
1392
|
var config,
|
|
1545
1393
|
data,
|
|
1546
1394
|
_args = arguments;
|
|
1547
|
-
return
|
|
1548
|
-
while (1) switch (_context.
|
|
1395
|
+
return _regenerator().w(function (_context) {
|
|
1396
|
+
while (1) switch (_context.n) {
|
|
1549
1397
|
case 0:
|
|
1550
1398
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1551
1399
|
sheetMap: [],
|
|
1552
1400
|
sheetCount: 1
|
|
1553
1401
|
};
|
|
1554
|
-
_context.
|
|
1402
|
+
_context.n = 1;
|
|
1555
1403
|
return analyseExcelToByte(file);
|
|
1556
|
-
case
|
|
1557
|
-
data = _context.
|
|
1558
|
-
return _context.
|
|
1404
|
+
case 1:
|
|
1405
|
+
data = _context.v;
|
|
1406
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1559
1407
|
var workbook = read(data, {
|
|
1560
1408
|
type: 'binary'
|
|
1561
1409
|
});
|
|
@@ -1567,9 +1415,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1567
1415
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1568
1416
|
resolve(outdata);
|
|
1569
1417
|
}));
|
|
1570
|
-
case 5:
|
|
1571
|
-
case "end":
|
|
1572
|
-
return _context.stop();
|
|
1573
1418
|
}
|
|
1574
1419
|
}, _callee);
|
|
1575
1420
|
}));
|
|
@@ -1579,41 +1424,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1579
1424
|
}();
|
|
1580
1425
|
//读取文件
|
|
1581
1426
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1582
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1427
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1583
1428
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1584
|
-
return
|
|
1585
|
-
while (1) switch (_context2.
|
|
1429
|
+
return _regenerator().w(function (_context2) {
|
|
1430
|
+
while (1) switch (_context2.n) {
|
|
1586
1431
|
case 0:
|
|
1587
1432
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1588
1433
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1589
|
-
_context2.
|
|
1434
|
+
_context2.n = 3;
|
|
1590
1435
|
break;
|
|
1591
1436
|
}
|
|
1592
1437
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1593
|
-
_context2.
|
|
1438
|
+
_context2.n = 1;
|
|
1594
1439
|
return resolveFile(nowFile.originFileObj, {
|
|
1595
1440
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1596
1441
|
sheetCount: 1
|
|
1597
1442
|
});
|
|
1598
|
-
case
|
|
1599
|
-
data2 = _context2.
|
|
1443
|
+
case 1:
|
|
1444
|
+
data2 = _context2.v;
|
|
1600
1445
|
data = data2[0];
|
|
1601
1446
|
if (data.length) {
|
|
1602
|
-
_context2.
|
|
1447
|
+
_context2.n = 2;
|
|
1603
1448
|
break;
|
|
1604
1449
|
}
|
|
1605
1450
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1606
|
-
return _context2.
|
|
1607
|
-
case
|
|
1451
|
+
return _context2.a(2);
|
|
1452
|
+
case 2:
|
|
1608
1453
|
if (callback) callback(data);
|
|
1609
1454
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1610
|
-
return _context2.
|
|
1611
|
-
case
|
|
1455
|
+
return _context2.a(2, data);
|
|
1456
|
+
case 3:
|
|
1612
1457
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1613
|
-
return _context2.
|
|
1614
|
-
case
|
|
1615
|
-
|
|
1616
|
-
return _context2.stop();
|
|
1458
|
+
return _context2.a(2);
|
|
1459
|
+
case 4:
|
|
1460
|
+
return _context2.a(2);
|
|
1617
1461
|
}
|
|
1618
1462
|
}, _callee2);
|
|
1619
1463
|
}));
|
|
@@ -2565,17 +2409,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2565
2409
|
return request$1(url, parms).then(handleResponseData);
|
|
2566
2410
|
};
|
|
2567
2411
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2568
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2569
|
-
return
|
|
2570
|
-
while (1) switch (_context.
|
|
2412
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2413
|
+
return _regenerator().w(function (_context) {
|
|
2414
|
+
while (1) switch (_context.n) {
|
|
2571
2415
|
case 0:
|
|
2572
|
-
return _context.
|
|
2416
|
+
return _context.a(2, Promise.resolve({
|
|
2573
2417
|
data: response,
|
|
2574
2418
|
status: response.status
|
|
2575
2419
|
}));
|
|
2576
|
-
case 1:
|
|
2577
|
-
case "end":
|
|
2578
|
-
return _context.stop();
|
|
2579
2420
|
}
|
|
2580
2421
|
}, _callee);
|
|
2581
2422
|
}));
|
|
@@ -4718,27 +4559,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4718
4559
|
popvalue = _useState8[0],
|
|
4719
4560
|
setPopValue = _useState8[1];
|
|
4720
4561
|
var _useState9 = useState([]),
|
|
4721
|
-
|
|
4722
|
-
source =
|
|
4723
|
-
setSource =
|
|
4562
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4563
|
+
source = _useState0[0],
|
|
4564
|
+
setSource = _useState0[1];
|
|
4724
4565
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4725
4566
|
getData();
|
|
4726
4567
|
}, {
|
|
4727
4568
|
wait: 1000
|
|
4728
4569
|
}),
|
|
4729
4570
|
run = _useDebounceFn.run;
|
|
4730
|
-
var
|
|
4571
|
+
var _useState1 = useState(false),
|
|
4572
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4573
|
+
fetching = _useState10[0],
|
|
4574
|
+
setFetching = _useState10[1];
|
|
4575
|
+
var _useState11 = useState(''),
|
|
4731
4576
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
var _useState13 = useState(
|
|
4577
|
+
searchValue = _useState12[0],
|
|
4578
|
+
setSearchValue = _useState12[1];
|
|
4579
|
+
var _useState13 = useState(resultSourceKey),
|
|
4735
4580
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
var _useState15 = useState(resultSourceKey),
|
|
4739
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4740
|
-
uniqueValue = _useState16[0],
|
|
4741
|
-
setUniqueValue = _useState16[1];
|
|
4581
|
+
uniqueValue = _useState14[0],
|
|
4582
|
+
setUniqueValue = _useState14[1];
|
|
4742
4583
|
useEffect(function () {
|
|
4743
4584
|
setPopValue(value);
|
|
4744
4585
|
onValueChange(value);
|
|
@@ -5155,21 +4996,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5155
4996
|
notCommonProperty = _useState8[0],
|
|
5156
4997
|
setNotCommonProperty = _useState8[1];
|
|
5157
4998
|
var _useState9 = useState(false),
|
|
5158
|
-
|
|
5159
|
-
visible =
|
|
5160
|
-
setVisible =
|
|
5161
|
-
var
|
|
4999
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5000
|
+
visible = _useState0[0],
|
|
5001
|
+
setVisible = _useState0[1];
|
|
5002
|
+
var _useState1 = useState(false),
|
|
5003
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5004
|
+
showNotCommon = _useState10[0],
|
|
5005
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5006
|
+
var _useState11 = useState([]),
|
|
5162
5007
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
var _useState13 = useState(
|
|
5008
|
+
classifyOptionList = _useState12[0],
|
|
5009
|
+
setClassifyOptionList = _useState12[1];
|
|
5010
|
+
var _useState13 = useState('1'),
|
|
5166
5011
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
var _useState15 = useState('1'),
|
|
5170
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5171
|
-
listKey = _useState16[0],
|
|
5172
|
-
setListKey = _useState16[1];
|
|
5012
|
+
listKey = _useState14[0],
|
|
5013
|
+
setListKey = _useState14[1];
|
|
5173
5014
|
useEffect(function () {
|
|
5174
5015
|
requestUtil({
|
|
5175
5016
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5548,29 +5389,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5548
5389
|
scrollPage = _useState8[0],
|
|
5549
5390
|
setScrollPage = _useState8[1];
|
|
5550
5391
|
var _useState9 = useState(0),
|
|
5551
|
-
|
|
5552
|
-
itemsTotal =
|
|
5553
|
-
setItemsTotal =
|
|
5554
|
-
var
|
|
5392
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5393
|
+
itemsTotal = _useState0[0],
|
|
5394
|
+
setItemsTotal = _useState0[1];
|
|
5395
|
+
var _useState1 = useState(false),
|
|
5396
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5397
|
+
fetching = _useState10[0],
|
|
5398
|
+
setFetching = _useState10[1];
|
|
5399
|
+
var _useState11 = useState(''),
|
|
5555
5400
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
var _useState13 = useState(
|
|
5401
|
+
searchValue = _useState12[0],
|
|
5402
|
+
setSearchValue = _useState12[1];
|
|
5403
|
+
var _useState13 = useState(false),
|
|
5559
5404
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
var _useState15 = useState(
|
|
5405
|
+
isModalVisible = _useState14[0],
|
|
5406
|
+
setIsModalVisible = _useState14[1];
|
|
5407
|
+
var _useState15 = useState(initVal),
|
|
5563
5408
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
var _useState17 = useState(
|
|
5409
|
+
popvalue = _useState16[0],
|
|
5410
|
+
setPopValue = _useState16[1];
|
|
5411
|
+
var _useState17 = useState(resultSourceKey),
|
|
5567
5412
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
var _useState19 = useState(resultSourceKey),
|
|
5571
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5572
|
-
uniqueValue = _useState20[0],
|
|
5573
|
-
setUniqueValue = _useState20[1];
|
|
5413
|
+
uniqueValue = _useState18[0],
|
|
5414
|
+
setUniqueValue = _useState18[1];
|
|
5574
5415
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5575
5416
|
// 优化搜索参数 支持传多个
|
|
5576
5417
|
var searchParams = {};
|
|
@@ -5599,58 +5440,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5599
5440
|
var _Form$useForm = Form.useForm(),
|
|
5600
5441
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5601
5442
|
form = _Form$useForm2[0];
|
|
5443
|
+
var _useState19 = useState(true),
|
|
5444
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5445
|
+
collapsed = _useState20[0],
|
|
5446
|
+
setCollapsed = _useState20[1];
|
|
5602
5447
|
var _useState21 = useState(true),
|
|
5603
5448
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
var _useState23 = useState(
|
|
5449
|
+
caretLeftFlag = _useState22[0],
|
|
5450
|
+
setCaretLeftFlag = _useState22[1];
|
|
5451
|
+
var _useState23 = useState([]),
|
|
5607
5452
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
var _useState25 = useState(
|
|
5453
|
+
tableData = _useState24[0],
|
|
5454
|
+
setTableData = _useState24[1];
|
|
5455
|
+
var _useState25 = useState(tableInitPagination),
|
|
5611
5456
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
var _useState27 = useState(
|
|
5457
|
+
tablePagination = _useState26[0],
|
|
5458
|
+
setTablePagination = _useState26[1];
|
|
5459
|
+
var _useState27 = useState([]),
|
|
5615
5460
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5616
|
-
|
|
5617
|
-
|
|
5461
|
+
selectedRowKeys = _useState28[0],
|
|
5462
|
+
setSelectedRowKeys = _useState28[1];
|
|
5618
5463
|
var _useState29 = useState([]),
|
|
5619
5464
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
var _useState31 = useState(
|
|
5465
|
+
selectedRows = _useState30[0],
|
|
5466
|
+
setSelectedRows = _useState30[1];
|
|
5467
|
+
var _useState31 = useState(false),
|
|
5623
5468
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5624
|
-
|
|
5625
|
-
|
|
5469
|
+
checkedAll = _useState32[0],
|
|
5470
|
+
setCheckedAll = _useState32[1];
|
|
5626
5471
|
var _useState33 = useState(false),
|
|
5627
5472
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
var _useState35 = useState(
|
|
5473
|
+
indeterminate = _useState34[0],
|
|
5474
|
+
setIndeterminate = _useState34[1];
|
|
5475
|
+
var _useState35 = useState({}),
|
|
5631
5476
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
var _useState37 = useState(
|
|
5477
|
+
tableFormParams = _useState36[0],
|
|
5478
|
+
setTableFormParams = _useState36[1];
|
|
5479
|
+
var _useState37 = useState(false),
|
|
5635
5480
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
var _useState39 = useState(
|
|
5481
|
+
tooltipVisible = _useState38[0],
|
|
5482
|
+
setTooltipVisible = _useState38[1];
|
|
5483
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5639
5484
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
var _useState41 = useState(
|
|
5485
|
+
tableShowColumns = _useState40[0],
|
|
5486
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5487
|
+
var _useState41 = useState(false),
|
|
5643
5488
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5644
|
-
|
|
5645
|
-
|
|
5489
|
+
confirmLoading = _useState42[0],
|
|
5490
|
+
setConfirmLoading = _useState42[1];
|
|
5646
5491
|
var _useState43 = useState(false),
|
|
5647
5492
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
var _useState45 = useState(false),
|
|
5651
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5652
|
-
modalSearched = _useState46[0],
|
|
5653
|
-
setModalSearched = _useState46[1];
|
|
5493
|
+
modalSearched = _useState44[0],
|
|
5494
|
+
setModalSearched = _useState44[1];
|
|
5654
5495
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5655
5496
|
setItems(list);
|
|
5656
5497
|
setItemsTotal(total);
|
|
@@ -6120,7 +5961,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6120
5961
|
})) || [];
|
|
6121
5962
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6122
5963
|
return searchList.map(function (i, index) {
|
|
6123
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
5964
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6124
5965
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6125
5966
|
span: ColSpan,
|
|
6126
5967
|
key: i
|
|
@@ -6218,7 +6059,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6218
6059
|
disabled: setDisabled(i.name)
|
|
6219
6060
|
}))));
|
|
6220
6061
|
}
|
|
6221
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6062
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
|
|
6222
6063
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6223
6064
|
span: ColSpan,
|
|
6224
6065
|
key: i.name
|
|
@@ -6232,7 +6073,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6232
6073
|
}
|
|
6233
6074
|
})));
|
|
6234
6075
|
}
|
|
6235
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6076
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6236
6077
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6237
6078
|
span: ColSpan,
|
|
6238
6079
|
key: i.name
|
|
@@ -6242,8 +6083,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6242
6083
|
key: i.name
|
|
6243
6084
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6244
6085
|
}
|
|
6245
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6246
|
-
var _i$
|
|
6086
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6087
|
+
var _i$field11;
|
|
6247
6088
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6248
6089
|
span: ColSpan,
|
|
6249
6090
|
key: i.name
|
|
@@ -6256,9 +6097,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6256
6097
|
width: '100%'
|
|
6257
6098
|
},
|
|
6258
6099
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6259
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6100
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6260
6101
|
}
|
|
6261
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6102
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6262
6103
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6263
6104
|
span: ColSpan,
|
|
6264
6105
|
key: i.name
|
|
@@ -6287,7 +6128,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6287
6128
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6288
6129
|
allowClear: true,
|
|
6289
6130
|
maxLength: 100
|
|
6290
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6131
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6291
6132
|
disabled: setDisabled(i.name)
|
|
6292
6133
|
}))));
|
|
6293
6134
|
});
|
|
@@ -7607,135 +7448,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7607
7448
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7608
7449
|
form = _Form$useForm2[0];
|
|
7609
7450
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7610
|
-
|
|
7611
|
-
tableSearchForm =
|
|
7612
|
-
setTableSearchForm =
|
|
7613
|
-
var
|
|
7451
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7452
|
+
tableSearchForm = _useState0[0],
|
|
7453
|
+
setTableSearchForm = _useState0[1];
|
|
7454
|
+
var _useState1 = useState(true),
|
|
7455
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7456
|
+
caretLeftFlag = _useState10[0],
|
|
7457
|
+
setCaretLeftFlag = _useState10[1];
|
|
7458
|
+
var _useState11 = useState([]),
|
|
7614
7459
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
var _useState13 = useState(
|
|
7618
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7619
|
-
tableData = _useState14[0],
|
|
7620
|
-
setTableData = _useState14[1];
|
|
7621
|
-
var _useState15 = useState(_objectSpread2({
|
|
7460
|
+
tableData = _useState12[0],
|
|
7461
|
+
setTableData = _useState12[1];
|
|
7462
|
+
var _useState13 = useState(_objectSpread2({
|
|
7622
7463
|
total: 0,
|
|
7623
7464
|
size: "small",
|
|
7624
7465
|
current: 1,
|
|
7625
7466
|
pageSize: tableInitPageSize
|
|
7626
7467
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7468
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7469
|
+
tablePagination = _useState14[0],
|
|
7470
|
+
setTablePagination = _useState14[1];
|
|
7471
|
+
var _useState15 = useState([]),
|
|
7627
7472
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
var _useState17 = useState(
|
|
7473
|
+
selectedRowKeys = _useState16[0],
|
|
7474
|
+
setSelectedRowKeys = _useState16[1];
|
|
7475
|
+
var _useState17 = useState({}),
|
|
7631
7476
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
var _useState19 = useState(
|
|
7477
|
+
tableFormParams = _useState18[0],
|
|
7478
|
+
setTableFormParams = _useState18[1];
|
|
7479
|
+
var _useState19 = useState(false),
|
|
7635
7480
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7636
|
-
|
|
7637
|
-
|
|
7481
|
+
confirmLoading = _useState20[0],
|
|
7482
|
+
setConfirmLoading = _useState20[1];
|
|
7638
7483
|
var _useState21 = useState(false),
|
|
7639
7484
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
var _useState23 = useState(
|
|
7485
|
+
confirmContinueLoading = _useState22[0],
|
|
7486
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7487
|
+
var _useState23 = useState([]),
|
|
7643
7488
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7644
|
-
|
|
7645
|
-
|
|
7489
|
+
selectColumns = _useState24[0],
|
|
7490
|
+
setSelectColumns = _useState24[1];
|
|
7646
7491
|
var _useState25 = useState([]),
|
|
7647
7492
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7648
|
-
|
|
7649
|
-
|
|
7493
|
+
showColumns = _useState26[0],
|
|
7494
|
+
setShowColumns = _useState26[1];
|
|
7650
7495
|
var _useState27 = useState([]),
|
|
7651
7496
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7652
|
-
|
|
7653
|
-
|
|
7497
|
+
tableColumns = _useState28[0],
|
|
7498
|
+
setTableColumns = _useState28[1];
|
|
7654
7499
|
var _useState29 = useState([]),
|
|
7655
7500
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
var _useState31 = useState([]),
|
|
7659
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7660
|
-
showToChooseColumns = _useState32[0],
|
|
7661
|
-
setShowToChooseColumns = _useState32[1];
|
|
7501
|
+
showToChooseColumns = _useState30[0],
|
|
7502
|
+
setShowToChooseColumns = _useState30[1];
|
|
7662
7503
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7663
7504
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7664
7505
|
// FIXME: 特殊业务逻辑
|
|
7665
7506
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7666
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7667
|
-
var result;
|
|
7668
|
-
return
|
|
7669
|
-
while (1) switch (_context.
|
|
7507
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7508
|
+
var result, _t;
|
|
7509
|
+
return _regenerator().w(function (_context) {
|
|
7510
|
+
while (1) switch (_context.n) {
|
|
7670
7511
|
case 0:
|
|
7671
7512
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7672
7513
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7673
7514
|
}))) {
|
|
7674
|
-
_context.
|
|
7515
|
+
_context.n = 1;
|
|
7675
7516
|
break;
|
|
7676
7517
|
}
|
|
7677
7518
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7678
|
-
return _context.
|
|
7679
|
-
case
|
|
7519
|
+
return _context.a(2, false);
|
|
7520
|
+
case 1:
|
|
7680
7521
|
if (!(bType == 'spu')) {
|
|
7681
|
-
_context.
|
|
7522
|
+
_context.n = 9;
|
|
7682
7523
|
break;
|
|
7683
7524
|
}
|
|
7684
7525
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7685
7526
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7686
7527
|
}))) {
|
|
7687
|
-
_context.
|
|
7528
|
+
_context.n = 2;
|
|
7688
7529
|
break;
|
|
7689
7530
|
}
|
|
7690
7531
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7691
|
-
return _context.
|
|
7692
|
-
case
|
|
7532
|
+
return _context.a(2, false);
|
|
7533
|
+
case 2:
|
|
7693
7534
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7694
|
-
_context.
|
|
7535
|
+
_context.n = 3;
|
|
7695
7536
|
break;
|
|
7696
7537
|
}
|
|
7697
7538
|
message$1.warning('请先选择颜色!');
|
|
7698
|
-
return _context.
|
|
7699
|
-
case
|
|
7539
|
+
return _context.a(2, false);
|
|
7540
|
+
case 3:
|
|
7700
7541
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7701
7542
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7702
7543
|
}))) {
|
|
7703
|
-
_context.
|
|
7544
|
+
_context.n = 4;
|
|
7704
7545
|
break;
|
|
7705
7546
|
}
|
|
7706
7547
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7707
|
-
return _context.
|
|
7708
|
-
case
|
|
7548
|
+
return _context.a(2, false);
|
|
7549
|
+
case 4:
|
|
7709
7550
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7710
|
-
_context.
|
|
7551
|
+
_context.n = 9;
|
|
7711
7552
|
break;
|
|
7712
7553
|
}
|
|
7713
7554
|
result = true;
|
|
7714
|
-
_context.
|
|
7715
|
-
_context.
|
|
7555
|
+
_context.p = 5;
|
|
7556
|
+
_context.n = 6;
|
|
7716
7557
|
return checkSpuMatchCode({
|
|
7717
7558
|
skcCode: recordItem[recordKey],
|
|
7718
7559
|
matchingCode: changeValue,
|
|
7719
7560
|
ext1: recordItem.colorName
|
|
7720
7561
|
});
|
|
7721
|
-
case
|
|
7722
|
-
result = _context.
|
|
7562
|
+
case 6:
|
|
7563
|
+
result = _context.v;
|
|
7723
7564
|
result = true;
|
|
7724
|
-
_context.
|
|
7565
|
+
_context.n = 8;
|
|
7725
7566
|
break;
|
|
7726
|
-
case
|
|
7727
|
-
_context.
|
|
7728
|
-
|
|
7729
|
-
result = typeof
|
|
7730
|
-
case
|
|
7731
|
-
return _context.
|
|
7732
|
-
case
|
|
7733
|
-
return _context.
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
return _context.stop();
|
|
7737
|
-
}
|
|
7738
|
-
}, _callee, null, [[15, 22]]);
|
|
7567
|
+
case 7:
|
|
7568
|
+
_context.p = 7;
|
|
7569
|
+
_t = _context.v;
|
|
7570
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7571
|
+
case 8:
|
|
7572
|
+
return _context.a(2, result);
|
|
7573
|
+
case 9:
|
|
7574
|
+
return _context.a(2, true);
|
|
7575
|
+
}
|
|
7576
|
+
}, _callee, null, [[5, 7]]);
|
|
7739
7577
|
}));
|
|
7740
7578
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7741
7579
|
return _ref2.apply(this, arguments);
|
|
@@ -7923,19 +7761,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
7761
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7924
7762
|
value: text || null,
|
|
7925
7763
|
onChange: function () {
|
|
7926
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7927
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7928
|
-
return
|
|
7929
|
-
while (1) switch (_context2.
|
|
7764
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
|
|
7765
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7766
|
+
return _regenerator().w(function (_context2) {
|
|
7767
|
+
while (1) switch (_context2.n) {
|
|
7930
7768
|
case 0:
|
|
7931
7769
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7932
7770
|
return d[selectKey] == value;
|
|
7933
7771
|
})) || {};
|
|
7934
7772
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7935
|
-
_context2.
|
|
7773
|
+
_context2.n = 2;
|
|
7936
7774
|
break;
|
|
7937
7775
|
}
|
|
7938
|
-
_context2.
|
|
7776
|
+
_context2.n = 1;
|
|
7939
7777
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
7940
7778
|
record: record,
|
|
7941
7779
|
index: index,
|
|
@@ -7945,10 +7783,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7945
7783
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7946
7784
|
editRecord: editRecord
|
|
7947
7785
|
});
|
|
7948
|
-
case
|
|
7949
|
-
_context2.
|
|
7786
|
+
case 1:
|
|
7787
|
+
_context2.n = 10;
|
|
7950
7788
|
break;
|
|
7951
|
-
case
|
|
7789
|
+
case 2:
|
|
7952
7790
|
// 更新当前行数据函数
|
|
7953
7791
|
changeValue = function changeValue(v, dSSItem) {
|
|
7954
7792
|
var _item$dataSourceSelec;
|
|
@@ -7961,12 +7799,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7961
7799
|
}
|
|
7962
7800
|
}; // 处理校验,默认不校验
|
|
7963
7801
|
isCheckPass = true;
|
|
7964
|
-
_context2.
|
|
7802
|
+
_context2.p = 3;
|
|
7965
7803
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7966
|
-
_context2.
|
|
7804
|
+
_context2.n = 5;
|
|
7967
7805
|
break;
|
|
7968
7806
|
}
|
|
7969
|
-
_context2.
|
|
7807
|
+
_context2.n = 4;
|
|
7970
7808
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7971
7809
|
record: record,
|
|
7972
7810
|
index: index,
|
|
@@ -7975,23 +7813,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7975
7813
|
changeValue: value,
|
|
7976
7814
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7977
7815
|
});
|
|
7978
|
-
case
|
|
7979
|
-
isCheckPass = _context2.
|
|
7980
|
-
_context2.
|
|
7816
|
+
case 4:
|
|
7817
|
+
isCheckPass = _context2.v;
|
|
7818
|
+
_context2.n = 7;
|
|
7981
7819
|
break;
|
|
7982
|
-
case
|
|
7983
|
-
_context2.
|
|
7820
|
+
case 5:
|
|
7821
|
+
_context2.n = 6;
|
|
7984
7822
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7985
|
-
case
|
|
7986
|
-
isConformToTheRules = _context2.
|
|
7823
|
+
case 6:
|
|
7824
|
+
isConformToTheRules = _context2.v;
|
|
7987
7825
|
isCheckPass = !isConformToTheRules;
|
|
7988
|
-
case
|
|
7989
|
-
_context2.
|
|
7826
|
+
case 7:
|
|
7827
|
+
_context2.n = 9;
|
|
7990
7828
|
break;
|
|
7991
|
-
case
|
|
7992
|
-
_context2.
|
|
7993
|
-
|
|
7994
|
-
case
|
|
7829
|
+
case 8:
|
|
7830
|
+
_context2.p = 8;
|
|
7831
|
+
_t2 = _context2.v;
|
|
7832
|
+
case 9:
|
|
7995
7833
|
if (isCheckPass) {
|
|
7996
7834
|
changeValue(value, dataSourceSelectItem);
|
|
7997
7835
|
} else {
|
|
@@ -7999,11 +7837,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7999
7837
|
}
|
|
8000
7838
|
// 更新已选表格函数
|
|
8001
7839
|
editRecord(record);
|
|
8002
|
-
case
|
|
8003
|
-
|
|
8004
|
-
return _context2.stop();
|
|
7840
|
+
case 10:
|
|
7841
|
+
return _context2.a(2);
|
|
8005
7842
|
}
|
|
8006
|
-
}, _callee2, null, [[
|
|
7843
|
+
}, _callee2, null, [[3, 8]]);
|
|
8007
7844
|
}));
|
|
8008
7845
|
function onChange(_x7) {
|
|
8009
7846
|
return _onChange.apply(this, arguments);
|
|
@@ -9394,29 +9231,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9394
9231
|
dataIndex: 'propertyNameAndValue'
|
|
9395
9232
|
}];
|
|
9396
9233
|
var _useState9 = useState(false),
|
|
9397
|
-
|
|
9398
|
-
isModalVisible =
|
|
9399
|
-
setIsModalVisible =
|
|
9400
|
-
var
|
|
9234
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9235
|
+
isModalVisible = _useState0[0],
|
|
9236
|
+
setIsModalVisible = _useState0[1];
|
|
9237
|
+
var _useState1 = useState([{
|
|
9401
9238
|
hovered: false
|
|
9402
9239
|
}]),
|
|
9403
|
-
|
|
9404
|
-
data =
|
|
9405
|
-
setData =
|
|
9240
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9241
|
+
data = _useState10[0],
|
|
9242
|
+
setData = _useState10[1];
|
|
9406
9243
|
var tableRef = useRef(null);
|
|
9407
9244
|
var codeSelected = tableCode;
|
|
9408
|
-
var
|
|
9245
|
+
var _useState11 = useState(false),
|
|
9246
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9247
|
+
loading = _useState12[0],
|
|
9248
|
+
setLoading = _useState12[1];
|
|
9249
|
+
var _useState13 = useState([]),
|
|
9409
9250
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9410
|
-
|
|
9411
|
-
|
|
9251
|
+
selectColumns = _useState14[0],
|
|
9252
|
+
setSelectColumns = _useState14[1];
|
|
9412
9253
|
var _useState15 = useState([]),
|
|
9413
9254
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
var _useState17 = useState([]),
|
|
9417
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9418
|
-
showColumns = _useState18[0],
|
|
9419
|
-
setShowColumns = _useState18[1];
|
|
9255
|
+
showColumns = _useState16[0],
|
|
9256
|
+
setShowColumns = _useState16[1];
|
|
9420
9257
|
useEffect(function () {
|
|
9421
9258
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9422
9259
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9532,42 +9369,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9532
9369
|
});
|
|
9533
9370
|
};
|
|
9534
9371
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9535
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9372
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9536
9373
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9537
|
-
return
|
|
9538
|
-
while (1) switch (_context.
|
|
9374
|
+
return _regenerator().w(function (_context) {
|
|
9375
|
+
while (1) switch (_context.n) {
|
|
9539
9376
|
case 0:
|
|
9540
9377
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9541
|
-
_context.
|
|
9378
|
+
_context.n = 1;
|
|
9542
9379
|
break;
|
|
9543
9380
|
}
|
|
9544
9381
|
message$1.warning('至少录入一条数据');
|
|
9545
|
-
return _context.
|
|
9546
|
-
case
|
|
9382
|
+
return _context.a(2);
|
|
9383
|
+
case 1:
|
|
9547
9384
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9548
9385
|
return d.skuCode && d.name;
|
|
9549
9386
|
})) {
|
|
9550
|
-
_context.
|
|
9387
|
+
_context.n = 2;
|
|
9551
9388
|
break;
|
|
9552
9389
|
}
|
|
9553
9390
|
message$1.warning('录入商品不存在');
|
|
9554
|
-
return _context.
|
|
9555
|
-
case
|
|
9391
|
+
return _context.a(2);
|
|
9392
|
+
case 2:
|
|
9556
9393
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9557
9394
|
return d.count;
|
|
9558
9395
|
})) {
|
|
9559
|
-
_context.
|
|
9396
|
+
_context.n = 3;
|
|
9560
9397
|
break;
|
|
9561
9398
|
}
|
|
9562
9399
|
message$1.warning('请填写商品数量!');
|
|
9563
|
-
return _context.
|
|
9564
|
-
case
|
|
9565
|
-
_context.
|
|
9400
|
+
return _context.a(2);
|
|
9401
|
+
case 3:
|
|
9402
|
+
_context.n = 4;
|
|
9566
9403
|
return isSkuCanEntry(data);
|
|
9567
|
-
case
|
|
9568
|
-
canEntryObject = _context.
|
|
9404
|
+
case 4:
|
|
9405
|
+
canEntryObject = _context.v;
|
|
9569
9406
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9570
|
-
_context.
|
|
9407
|
+
_context.n = 5;
|
|
9571
9408
|
break;
|
|
9572
9409
|
}
|
|
9573
9410
|
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) {
|
|
@@ -9577,8 +9414,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9577
9414
|
content: messageInfo,
|
|
9578
9415
|
duration: 6
|
|
9579
9416
|
});
|
|
9580
|
-
return _context.
|
|
9581
|
-
case
|
|
9417
|
+
return _context.a(2);
|
|
9418
|
+
case 5:
|
|
9582
9419
|
setLoading(true);
|
|
9583
9420
|
onSaveCallback(data).then(function (res) {
|
|
9584
9421
|
{
|
|
@@ -9596,9 +9433,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9596
9433
|
message$1.error(Error);
|
|
9597
9434
|
setLoading(false);
|
|
9598
9435
|
});
|
|
9599
|
-
case
|
|
9600
|
-
|
|
9601
|
-
return _context.stop();
|
|
9436
|
+
case 6:
|
|
9437
|
+
return _context.a(2);
|
|
9602
9438
|
}
|
|
9603
9439
|
}, _callee);
|
|
9604
9440
|
}));
|
|
@@ -11772,7 +11608,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11772
11608
|
}
|
|
11773
11609
|
}
|
|
11774
11610
|
}];
|
|
11775
|
-
var
|
|
11611
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11776
11612
|
querySelectHeadersList: querySelectHeadersList,
|
|
11777
11613
|
extralHeaders: extralHeaders
|
|
11778
11614
|
});
|
|
@@ -11780,21 +11616,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11780
11616
|
pageSize: 5000,
|
|
11781
11617
|
currentPage: 1,
|
|
11782
11618
|
'qp-companyType-eq': '30'
|
|
11783
|
-
}, getQueryHeadersItem(
|
|
11619
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11784
11620
|
pageSize: 5000,
|
|
11785
11621
|
currentPage: 1,
|
|
11786
11622
|
'qp-companyType-eq': '20'
|
|
11787
|
-
}, getQueryHeadersItem(
|
|
11623
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11788
11624
|
// pageSize: 5000,
|
|
11789
11625
|
// currentPage: 1,
|
|
11790
11626
|
'qp-status-eq': '1'
|
|
11791
|
-
}, getQueryHeadersItem(
|
|
11627
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11792
11628
|
pageSize: 5000,
|
|
11793
11629
|
currentPage: 1
|
|
11794
|
-
}, getQueryHeadersItem(
|
|
11630
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11795
11631
|
pageSize: 5000,
|
|
11796
11632
|
currentPage: 1
|
|
11797
|
-
}, getQueryHeadersItem(
|
|
11633
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11798
11634
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11799
11635
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11800
11636
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11964,7 +11800,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11964
11800
|
},
|
|
11965
11801
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11966
11802
|
}];
|
|
11967
|
-
var
|
|
11803
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
11968
11804
|
querySelectHeadersList: querySelectHeadersList,
|
|
11969
11805
|
extralHeaders: extralHeaders
|
|
11970
11806
|
});
|
|
@@ -11972,13 +11808,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11972
11808
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11973
11809
|
'qp-realOrg-eq': true,
|
|
11974
11810
|
'qp-status-eq': 10
|
|
11975
|
-
}, getQueryHeadersItem(
|
|
11811
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11976
11812
|
'qp-status-eq': 10,
|
|
11977
11813
|
'qp-isMain-eq': 1,
|
|
11978
11814
|
'qp-type-in': '1,2'
|
|
11979
|
-
}, getQueryHeadersItem(
|
|
11815
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11980
11816
|
'qp-status-eq': 1
|
|
11981
|
-
}, getQueryHeadersItem(
|
|
11817
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
|
|
11982
11818
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11983
11819
|
return data['parentCode'] === '0';
|
|
11984
11820
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -11986,7 +11822,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11986
11822
|
return data['parent'] === '0';
|
|
11987
11823
|
}; // 所属营销区域 树节点不能点判断
|
|
11988
11824
|
formatSource(x, 0, 3, tableSearchForm);
|
|
11989
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm, ['
|
|
11825
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11990
11826
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11991
11827
|
});
|
|
11992
11828
|
modalTableProps = _objectSpread2({
|
|
@@ -12216,7 +12052,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12216
12052
|
name: 'qp-officeTelephone-like',
|
|
12217
12053
|
label: '手机号'
|
|
12218
12054
|
}];
|
|
12219
|
-
var
|
|
12055
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12220
12056
|
querySelectHeadersList: querySelectHeadersList,
|
|
12221
12057
|
extralHeaders: extralHeaders
|
|
12222
12058
|
});
|
|
@@ -12224,7 +12060,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12224
12060
|
pageSize: 5000,
|
|
12225
12061
|
currentPage: 1,
|
|
12226
12062
|
'qp-companyType-eq': 20
|
|
12227
|
-
}, getQueryHeadersItem(
|
|
12063
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
|
|
12228
12064
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12229
12065
|
});
|
|
12230
12066
|
modalTableProps = _objectSpread2({
|
|
@@ -12333,13 +12169,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12333
12169
|
name: 'qp-officeTelephone-like',
|
|
12334
12170
|
label: '手机号'
|
|
12335
12171
|
}]);
|
|
12336
|
-
var
|
|
12172
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12337
12173
|
querySelectHeadersList: querySelectHeadersList,
|
|
12338
12174
|
extralHeaders: extralHeaders
|
|
12339
12175
|
});
|
|
12340
12176
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12341
12177
|
'orgViewCode': 'administrative-organization-view'
|
|
12342
|
-
}, getQueryHeadersItem(
|
|
12178
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
|
|
12343
12179
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12344
12180
|
});
|
|
12345
12181
|
modalTableProps = _objectSpread2({
|
|
@@ -12486,17 +12322,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12486
12322
|
name: 'qp-remark-like',
|
|
12487
12323
|
label: '备注'
|
|
12488
12324
|
}];
|
|
12489
|
-
var
|
|
12325
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12490
12326
|
querySelectHeadersList: querySelectHeadersList,
|
|
12491
12327
|
extralHeaders: extralHeaders
|
|
12492
12328
|
});
|
|
12493
12329
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12494
12330
|
pageSize: 5000,
|
|
12495
12331
|
currentPage: 1
|
|
12496
|
-
}, getQueryHeadersItem(
|
|
12332
|
+
}, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12497
12333
|
pageSize: 5000,
|
|
12498
12334
|
currentPage: 1
|
|
12499
|
-
}, getQueryHeadersItem(
|
|
12335
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12500
12336
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12501
12337
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12502
12338
|
});
|
|
@@ -12666,14 +12502,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12666
12502
|
}
|
|
12667
12503
|
}
|
|
12668
12504
|
}];
|
|
12669
|
-
var
|
|
12505
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12670
12506
|
querySelectHeadersList: querySelectHeadersList,
|
|
12671
12507
|
extralHeaders: extralHeaders
|
|
12672
12508
|
});
|
|
12673
12509
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12674
12510
|
pageSize: 5000,
|
|
12675
12511
|
currentPage: 1
|
|
12676
|
-
}, getQueryHeadersItem(
|
|
12512
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12677
12513
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12678
12514
|
});
|
|
12679
12515
|
modalTableProps = _objectSpread2({
|
|
@@ -12770,7 +12606,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12770
12606
|
}
|
|
12771
12607
|
}
|
|
12772
12608
|
}];
|
|
12773
|
-
var
|
|
12609
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12774
12610
|
querySelectHeadersList: querySelectHeadersList,
|
|
12775
12611
|
extralHeaders: extralHeaders
|
|
12776
12612
|
});
|
|
@@ -12778,7 +12614,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12778
12614
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12779
12615
|
'qp-realOrg-eq': true,
|
|
12780
12616
|
'qp-status-eq': 10
|
|
12781
|
-
}, getQueryHeadersItem(
|
|
12617
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12782
12618
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12783
12619
|
});
|
|
12784
12620
|
modalTableProps = _objectSpread2({
|
|
@@ -12884,13 +12720,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12884
12720
|
},
|
|
12885
12721
|
initialSource: nodeType
|
|
12886
12722
|
}];
|
|
12887
|
-
var
|
|
12723
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12888
12724
|
querySelectHeadersList: querySelectHeadersList,
|
|
12889
12725
|
extralHeaders: extralHeaders
|
|
12890
12726
|
});
|
|
12891
12727
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12892
12728
|
'qp-status-eq': 10
|
|
12893
|
-
}, getQueryHeadersItem(
|
|
12729
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12894
12730
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12895
12731
|
});
|
|
12896
12732
|
modalTableProps = _objectSpread2({
|
|
@@ -13216,13 +13052,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13216
13052
|
},
|
|
13217
13053
|
initialSource: nodeType
|
|
13218
13054
|
}];
|
|
13219
|
-
var
|
|
13055
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13220
13056
|
querySelectHeadersList: querySelectHeadersList,
|
|
13221
13057
|
extralHeaders: extralHeaders
|
|
13222
13058
|
});
|
|
13223
13059
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13224
13060
|
'qp-status-eq': 10
|
|
13225
|
-
}, getQueryHeadersItem(
|
|
13061
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13226
13062
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13227
13063
|
});
|
|
13228
13064
|
modalTableProps = _objectSpread2({
|
|
@@ -14167,9 +14003,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14167
14003
|
value = _useState8[0],
|
|
14168
14004
|
setValue = _useState8[1];
|
|
14169
14005
|
var _useState9 = useState([]),
|
|
14170
|
-
|
|
14171
|
-
propertyList =
|
|
14172
|
-
setPropertyList =
|
|
14006
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14007
|
+
propertyList = _useState0[0],
|
|
14008
|
+
setPropertyList = _useState0[1];
|
|
14173
14009
|
useEffect(function () {
|
|
14174
14010
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14175
14011
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14693,46 +14529,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14693
14529
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14694
14530
|
headers: headers
|
|
14695
14531
|
}).then(/*#__PURE__*/function () {
|
|
14696
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14532
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14697
14533
|
var _ctx$form;
|
|
14698
14534
|
var resData, coverData, data, dataList;
|
|
14699
|
-
return
|
|
14700
|
-
while (1) switch (_context.
|
|
14535
|
+
return _regenerator().w(function (_context) {
|
|
14536
|
+
while (1) switch (_context.n) {
|
|
14701
14537
|
case 0:
|
|
14702
14538
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14703
14539
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14704
|
-
_context.
|
|
14540
|
+
_context.n = 4;
|
|
14705
14541
|
break;
|
|
14706
14542
|
}
|
|
14707
14543
|
data = resData.data;
|
|
14708
14544
|
if (!remoteSource.converter) {
|
|
14709
|
-
_context.
|
|
14545
|
+
_context.n = 2;
|
|
14710
14546
|
break;
|
|
14711
14547
|
}
|
|
14712
|
-
_context.
|
|
14548
|
+
_context.n = 1;
|
|
14713
14549
|
return remoteSource.converter({
|
|
14714
14550
|
data: [data]
|
|
14715
14551
|
});
|
|
14716
|
-
case
|
|
14717
|
-
coverData = _context.
|
|
14718
|
-
_context.
|
|
14552
|
+
case 1:
|
|
14553
|
+
coverData = _context.v;
|
|
14554
|
+
_context.n = 3;
|
|
14719
14555
|
break;
|
|
14720
|
-
case
|
|
14556
|
+
case 2:
|
|
14721
14557
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14722
14558
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14723
14559
|
return _mapSearchTree(ites);
|
|
14724
14560
|
}) || [];
|
|
14725
|
-
case
|
|
14726
|
-
_context.
|
|
14561
|
+
case 3:
|
|
14562
|
+
_context.n = 5;
|
|
14727
14563
|
break;
|
|
14728
|
-
case
|
|
14564
|
+
case 4:
|
|
14729
14565
|
coverData = [];
|
|
14730
|
-
case
|
|
14566
|
+
case 5:
|
|
14731
14567
|
setTreeData(coverData);
|
|
14732
14568
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14733
|
-
case
|
|
14734
|
-
|
|
14735
|
-
return _context.stop();
|
|
14569
|
+
case 6:
|
|
14570
|
+
return _context.a(2);
|
|
14736
14571
|
}
|
|
14737
14572
|
}, _callee);
|
|
14738
14573
|
}));
|
|
@@ -19034,38 +18869,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19034
18869
|
};
|
|
19035
18870
|
var refs = useRef(null);
|
|
19036
18871
|
var _useState9 = useState(''),
|
|
19037
|
-
|
|
19038
|
-
pagePath =
|
|
19039
|
-
setPagePath =
|
|
18872
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
18873
|
+
pagePath = _useState0[0],
|
|
18874
|
+
setPagePath = _useState0[1];
|
|
19040
18875
|
var _useLocation = useLocation(),
|
|
19041
18876
|
pathname = _useLocation.pathname,
|
|
19042
18877
|
_useLocation$state = _useLocation.state,
|
|
19043
18878
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19044
|
-
var
|
|
19045
|
-
|
|
19046
|
-
isFullScreen =
|
|
19047
|
-
setIsFnllScreen =
|
|
18879
|
+
var _useState1 = useState(false),
|
|
18880
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
18881
|
+
isFullScreen = _useState10[0],
|
|
18882
|
+
setIsFnllScreen = _useState10[1];
|
|
19048
18883
|
// @ts-nocheck
|
|
19049
18884
|
var value = props;
|
|
19050
18885
|
var _props$fields = props.fields,
|
|
19051
18886
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19052
|
-
var
|
|
19053
|
-
|
|
19054
|
-
showColumn =
|
|
19055
|
-
setShowColumns =
|
|
18887
|
+
var _useState11 = useState([]),
|
|
18888
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
18889
|
+
showColumn = _useState12[0],
|
|
18890
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19056
18891
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19057
|
-
var
|
|
18892
|
+
var _useState13 = useState(originSearchFields),
|
|
18893
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
18894
|
+
showSearchFields = _useState14[0],
|
|
18895
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
18896
|
+
var _useState15 = useState([]),
|
|
19058
18897
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
var _useState17 = useState(
|
|
18898
|
+
showExportColumn = _useState16[0],
|
|
18899
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
18900
|
+
var _useState17 = useState(''),
|
|
19062
18901
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
var _useState19 = useState(''),
|
|
19066
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19067
|
-
height = _useState20[0],
|
|
19068
|
-
setHeight = _useState20[1];
|
|
18902
|
+
height = _useState18[0],
|
|
18903
|
+
setHeight = _useState18[1];
|
|
19069
18904
|
var sortTableRef = useRef(null);
|
|
19070
18905
|
var searchTableRef = useRef(null);
|
|
19071
18906
|
var exportTableRef = useRef(null);
|
|
@@ -20113,22 +19948,19 @@ function outLogin(_x) {
|
|
|
20113
19948
|
return _outLogin.apply(this, arguments);
|
|
20114
19949
|
}
|
|
20115
19950
|
function _outLogin() {
|
|
20116
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
19951
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20117
19952
|
var res;
|
|
20118
|
-
return
|
|
20119
|
-
while (1) switch (_context.
|
|
19953
|
+
return _regenerator().w(function (_context) {
|
|
19954
|
+
while (1) switch (_context.n) {
|
|
20120
19955
|
case 0:
|
|
20121
|
-
_context.
|
|
19956
|
+
_context.n = 1;
|
|
20122
19957
|
return requestUtil({
|
|
20123
19958
|
url: '/user/web/loginOut',
|
|
20124
19959
|
method: 'GET'
|
|
20125
19960
|
});
|
|
20126
|
-
case
|
|
20127
|
-
res = _context.
|
|
20128
|
-
return _context.
|
|
20129
|
-
case 4:
|
|
20130
|
-
case "end":
|
|
20131
|
-
return _context.stop();
|
|
19961
|
+
case 1:
|
|
19962
|
+
res = _context.v;
|
|
19963
|
+
return _context.a(2, res);
|
|
20132
19964
|
}
|
|
20133
19965
|
}, _callee);
|
|
20134
19966
|
}));
|
|
@@ -20255,20 +20087,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20255
20087
|
});
|
|
20256
20088
|
};
|
|
20257
20089
|
var loginOut = /*#__PURE__*/function () {
|
|
20258
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20090
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20259
20091
|
var sessionId;
|
|
20260
|
-
return
|
|
20261
|
-
while (1) switch (_context.
|
|
20092
|
+
return _regenerator().w(function (_context) {
|
|
20093
|
+
while (1) switch (_context.n) {
|
|
20262
20094
|
case 0:
|
|
20263
|
-
_context.
|
|
20095
|
+
_context.n = 1;
|
|
20264
20096
|
return getSessionId();
|
|
20265
|
-
case
|
|
20266
|
-
sessionId = _context.
|
|
20267
|
-
_context.
|
|
20097
|
+
case 1:
|
|
20098
|
+
sessionId = _context.v;
|
|
20099
|
+
_context.n = 2;
|
|
20268
20100
|
return outLogin({
|
|
20269
20101
|
sessionId: sessionId
|
|
20270
20102
|
});
|
|
20271
|
-
case
|
|
20103
|
+
case 2:
|
|
20272
20104
|
// @ts-ignore
|
|
20273
20105
|
if (BUILD_TYPE) {
|
|
20274
20106
|
message$1.success('退出登录成功');
|
|
@@ -20278,9 +20110,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20278
20110
|
} else {
|
|
20279
20111
|
setLoginOutPath();
|
|
20280
20112
|
}
|
|
20281
|
-
case
|
|
20282
|
-
|
|
20283
|
-
return _context.stop();
|
|
20113
|
+
case 3:
|
|
20114
|
+
return _context.a(2);
|
|
20284
20115
|
}
|
|
20285
20116
|
}, _callee);
|
|
20286
20117
|
}));
|
|
@@ -20367,18 +20198,15 @@ function getStoreByName(_x) {
|
|
|
20367
20198
|
return _getStoreByName.apply(this, arguments);
|
|
20368
20199
|
}
|
|
20369
20200
|
function _getStoreByName() {
|
|
20370
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20371
|
-
return
|
|
20372
|
-
while (1) switch (_context.
|
|
20201
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20202
|
+
return _regenerator().w(function (_context) {
|
|
20203
|
+
while (1) switch (_context.n) {
|
|
20373
20204
|
case 0:
|
|
20374
|
-
return _context.
|
|
20205
|
+
return _context.a(2, requestUtil({
|
|
20375
20206
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20376
20207
|
method: 'GET',
|
|
20377
20208
|
params: _objectSpread2({}, params)
|
|
20378
20209
|
}));
|
|
20379
|
-
case 1:
|
|
20380
|
-
case "end":
|
|
20381
|
-
return _context.stop();
|
|
20382
20210
|
}
|
|
20383
20211
|
}, _callee);
|
|
20384
20212
|
}));
|
|
@@ -20413,33 +20241,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20413
20241
|
openSelect = _useState8[0],
|
|
20414
20242
|
setOpenSelect = _useState8[1];
|
|
20415
20243
|
var _useState9 = useState([]),
|
|
20416
|
-
|
|
20417
|
-
options =
|
|
20418
|
-
setOptions =
|
|
20419
|
-
var
|
|
20244
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20245
|
+
options = _useState0[0],
|
|
20246
|
+
setOptions = _useState0[1];
|
|
20247
|
+
var _useState1 = useState([]),
|
|
20248
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20249
|
+
rescouse = _useState10[0],
|
|
20250
|
+
setRescouse = _useState10[1];
|
|
20251
|
+
var _useState11 = useState(''),
|
|
20420
20252
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
var _useState13 = useState(
|
|
20424
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20425
|
-
searchValue = _useState14[0],
|
|
20426
|
-
setSearchValue = _useState14[1];
|
|
20427
|
-
var _useState15 = useState([{
|
|
20253
|
+
searchValue = _useState12[0],
|
|
20254
|
+
setSearchValue = _useState12[1];
|
|
20255
|
+
var _useState13 = useState([{
|
|
20428
20256
|
label: name,
|
|
20429
20257
|
value: code
|
|
20430
20258
|
}]),
|
|
20431
|
-
|
|
20432
|
-
store =
|
|
20433
|
-
setStore =
|
|
20259
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20260
|
+
store = _useState14[0],
|
|
20261
|
+
setStore = _useState14[1];
|
|
20434
20262
|
function fetchUserList(_x, _x2) {
|
|
20435
20263
|
return _fetchUserList.apply(this, arguments);
|
|
20436
20264
|
}
|
|
20437
20265
|
function _fetchUserList() {
|
|
20438
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20439
|
-
return
|
|
20440
|
-
while (1) switch (_context3.
|
|
20266
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20267
|
+
return _regenerator().w(function (_context3) {
|
|
20268
|
+
while (1) switch (_context3.n) {
|
|
20441
20269
|
case 0:
|
|
20442
|
-
return _context3.
|
|
20270
|
+
return _context3.a(2, getStoreByName({
|
|
20443
20271
|
orgName: storeName ? storeName : undefined,
|
|
20444
20272
|
platCompanyCode: init ? undefined : key,
|
|
20445
20273
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20458,9 +20286,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20458
20286
|
};
|
|
20459
20287
|
});
|
|
20460
20288
|
}));
|
|
20461
|
-
case 1:
|
|
20462
|
-
case "end":
|
|
20463
|
-
return _context3.stop();
|
|
20464
20289
|
}
|
|
20465
20290
|
}, _callee3);
|
|
20466
20291
|
}));
|
|
@@ -20483,20 +20308,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20483
20308
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20484
20309
|
}, [debounceTimeout, key]);
|
|
20485
20310
|
var changeInput = /*#__PURE__*/function () {
|
|
20486
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20311
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20487
20312
|
var res;
|
|
20488
|
-
return
|
|
20489
|
-
while (1) switch (_context.
|
|
20313
|
+
return _regenerator().w(function (_context) {
|
|
20314
|
+
while (1) switch (_context.n) {
|
|
20490
20315
|
case 0:
|
|
20491
|
-
_context.
|
|
20316
|
+
_context.n = 1;
|
|
20492
20317
|
return debounceFetcher(str);
|
|
20493
|
-
case
|
|
20494
|
-
res = _context.
|
|
20318
|
+
case 1:
|
|
20319
|
+
res = _context.v;
|
|
20495
20320
|
setOptions(res);
|
|
20496
20321
|
setRescouse(res);
|
|
20497
|
-
case
|
|
20498
|
-
|
|
20499
|
-
return _context.stop();
|
|
20322
|
+
case 2:
|
|
20323
|
+
return _context.a(2);
|
|
20500
20324
|
}
|
|
20501
20325
|
}, _callee);
|
|
20502
20326
|
}));
|
|
@@ -20505,15 +20329,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20505
20329
|
};
|
|
20506
20330
|
}();
|
|
20507
20331
|
useEffect(function () {
|
|
20508
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20332
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20509
20333
|
var res;
|
|
20510
|
-
return
|
|
20511
|
-
while (1) switch (_context2.
|
|
20334
|
+
return _regenerator().w(function (_context2) {
|
|
20335
|
+
while (1) switch (_context2.n) {
|
|
20512
20336
|
case 0:
|
|
20513
|
-
_context2.
|
|
20337
|
+
_context2.n = 1;
|
|
20514
20338
|
return fetchUserList(undefined, true);
|
|
20515
|
-
case
|
|
20516
|
-
res = _context2.
|
|
20339
|
+
case 1:
|
|
20340
|
+
res = _context2.v;
|
|
20517
20341
|
res.map(function (item, indexNumber) {
|
|
20518
20342
|
if (item.label === name) {
|
|
20519
20343
|
setIndex(indexNumber);
|
|
@@ -20529,9 +20353,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20529
20353
|
});
|
|
20530
20354
|
setOptions(res);
|
|
20531
20355
|
setRescouse(res);
|
|
20532
|
-
case
|
|
20533
|
-
|
|
20534
|
-
return _context2.stop();
|
|
20356
|
+
case 2:
|
|
20357
|
+
return _context2.a(2);
|
|
20535
20358
|
}
|
|
20536
20359
|
}, _callee2);
|
|
20537
20360
|
}))();
|
|
@@ -21580,25 +21403,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21580
21403
|
currentOneLevel = _useState8[0],
|
|
21581
21404
|
setCurrentOneLevel = _useState8[1];
|
|
21582
21405
|
var _useState9 = useState([]),
|
|
21583
|
-
|
|
21584
|
-
SearhData =
|
|
21585
|
-
setSearchMenuData =
|
|
21586
|
-
var
|
|
21406
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21407
|
+
SearhData = _useState0[0],
|
|
21408
|
+
setSearchMenuData = _useState0[1];
|
|
21409
|
+
var _useState1 = useState(600),
|
|
21410
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21411
|
+
rightMenuHeight = _useState10[0],
|
|
21412
|
+
setHeight = _useState10[1];
|
|
21413
|
+
var _useState11 = useState(900),
|
|
21587
21414
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
var _useState13 = useState(
|
|
21415
|
+
drawHeight = _useState12[0],
|
|
21416
|
+
setDrawHeight = _useState12[1];
|
|
21417
|
+
var _useState13 = useState(false),
|
|
21591
21418
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21592
|
-
|
|
21593
|
-
|
|
21419
|
+
moreBtnShow = _useState14[0],
|
|
21420
|
+
setMoreBtnShow = _useState14[1];
|
|
21594
21421
|
var _useState15 = useState(false),
|
|
21595
21422
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
var _useState17 = useState(false),
|
|
21599
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21600
|
-
showScroll = _useState18[0],
|
|
21601
|
-
setShowScroll = _useState18[1];
|
|
21423
|
+
showScroll = _useState16[0],
|
|
21424
|
+
setShowScroll = _useState16[1];
|
|
21602
21425
|
useEffect(function () {
|
|
21603
21426
|
var _originRoutes$find;
|
|
21604
21427
|
getMenuContentHeight();
|
|
@@ -23209,14 +23032,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23209
23032
|
},
|
|
23210
23033
|
menu: {
|
|
23211
23034
|
request: function () {
|
|
23212
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23213
|
-
return
|
|
23214
|
-
while (1) switch (_context.
|
|
23035
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23036
|
+
return _regenerator().w(function (_context) {
|
|
23037
|
+
while (1) switch (_context.n) {
|
|
23215
23038
|
case 0:
|
|
23216
|
-
return _context.
|
|
23217
|
-
case 1:
|
|
23218
|
-
case "end":
|
|
23219
|
-
return _context.stop();
|
|
23039
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23220
23040
|
}
|
|
23221
23041
|
}, _callee);
|
|
23222
23042
|
}));
|
|
@@ -23621,31 +23441,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23621
23441
|
multiTableData = _useState8[0],
|
|
23622
23442
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23623
23443
|
var _useState9 = useState(10),
|
|
23624
|
-
|
|
23625
|
-
viewCount =
|
|
23626
|
-
setViewCount =
|
|
23444
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23445
|
+
viewCount = _useState0[0],
|
|
23446
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23627
23447
|
var itemWidth = 100; // 表格每一项宽度
|
|
23628
|
-
var
|
|
23629
|
-
|
|
23630
|
-
realColHeaderWidth =
|
|
23631
|
-
setLeftWidth =
|
|
23448
|
+
var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23449
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23450
|
+
realColHeaderWidth = _useState10[0],
|
|
23451
|
+
setLeftWidth = _useState10[1];
|
|
23632
23452
|
var viewPort = useRef(null);
|
|
23633
23453
|
var topScrollBar = useRef(null);
|
|
23634
23454
|
var leftTableRef = useRef(null);
|
|
23635
23455
|
//起始渲染item
|
|
23636
|
-
var
|
|
23637
|
-
|
|
23638
|
-
startIndex =
|
|
23639
|
-
setStartIndex =
|
|
23456
|
+
var _useState11 = useState(0),
|
|
23457
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23458
|
+
startIndex = _useState12[0],
|
|
23459
|
+
setStartIndex = _useState12[1];
|
|
23640
23460
|
//结束渲染item
|
|
23641
23461
|
var endIndex = useMemo(function () {
|
|
23642
23462
|
return startIndex + viewCount;
|
|
23643
23463
|
}, [startIndex, viewCount]);
|
|
23644
23464
|
//表格偏移量
|
|
23645
|
-
var
|
|
23646
|
-
|
|
23647
|
-
offsetWidth =
|
|
23648
|
-
setOffset =
|
|
23465
|
+
var _useState13 = useState(0),
|
|
23466
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23467
|
+
offsetWidth = _useState14[0],
|
|
23468
|
+
setOffset = _useState14[1];
|
|
23649
23469
|
useEffect(function () {
|
|
23650
23470
|
setTimeout(function () {
|
|
23651
23471
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30949,11 +30769,11 @@ var valueType = {
|
|
|
30949
30769
|
};
|
|
30950
30770
|
|
|
30951
30771
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30952
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30953
|
-
return
|
|
30954
|
-
while (1) switch (_context.
|
|
30772
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
30773
|
+
return _regenerator().w(function (_context) {
|
|
30774
|
+
while (1) switch (_context.n) {
|
|
30955
30775
|
case 0:
|
|
30956
|
-
_context.
|
|
30776
|
+
_context.n = 1;
|
|
30957
30777
|
return request$2({
|
|
30958
30778
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30959
30779
|
converter: function converter(_ref2) {
|
|
@@ -30966,11 +30786,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30966
30786
|
});
|
|
30967
30787
|
}
|
|
30968
30788
|
});
|
|
30969
|
-
case
|
|
30970
|
-
return _context.
|
|
30971
|
-
case 3:
|
|
30972
|
-
case "end":
|
|
30973
|
-
return _context.stop();
|
|
30789
|
+
case 1:
|
|
30790
|
+
return _context.a(2, _context.v);
|
|
30974
30791
|
}
|
|
30975
30792
|
}, _callee);
|
|
30976
30793
|
}));
|
|
@@ -31017,12 +30834,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31017
30834
|
value: false
|
|
31018
30835
|
}];
|
|
31019
30836
|
var ref = useRef();
|
|
31020
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31021
|
-
var _ref$current, source;
|
|
31022
|
-
return
|
|
31023
|
-
while (1) switch (_context.
|
|
30837
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
30838
|
+
var _ref$current, source, _t, _t2;
|
|
30839
|
+
return _regenerator().w(function (_context) {
|
|
30840
|
+
while (1) switch (_context.n) {
|
|
31024
30841
|
case 0:
|
|
31025
|
-
_context.
|
|
30842
|
+
_context.n = 1;
|
|
31026
30843
|
return setIsShowAndType(function (prev) {
|
|
31027
30844
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31028
30845
|
return {
|
|
@@ -31033,40 +30850,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31033
30850
|
}
|
|
31034
30851
|
return prev;
|
|
31035
30852
|
});
|
|
31036
|
-
case
|
|
30853
|
+
case 1:
|
|
31037
30854
|
if (!record.dictionaryCode) {
|
|
31038
|
-
_context.
|
|
30855
|
+
_context.n = 7;
|
|
31039
30856
|
break;
|
|
31040
30857
|
}
|
|
31041
30858
|
if (!(record.choiceType == 20)) {
|
|
31042
|
-
_context.
|
|
30859
|
+
_context.n = 2;
|
|
31043
30860
|
break;
|
|
31044
30861
|
}
|
|
31045
|
-
|
|
31046
|
-
_context.
|
|
30862
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
30863
|
+
_context.n = 6;
|
|
31047
30864
|
break;
|
|
31048
|
-
case
|
|
30865
|
+
case 2:
|
|
31049
30866
|
if (!(record.choiceType == 30)) {
|
|
31050
|
-
_context.
|
|
30867
|
+
_context.n = 4;
|
|
31051
30868
|
break;
|
|
31052
30869
|
}
|
|
31053
|
-
_context.
|
|
30870
|
+
_context.n = 3;
|
|
31054
30871
|
return getDynamicDict(record.dictionaryCode);
|
|
31055
|
-
case
|
|
31056
|
-
|
|
31057
|
-
_context.
|
|
30872
|
+
case 3:
|
|
30873
|
+
_t2 = _context.v;
|
|
30874
|
+
_context.n = 5;
|
|
31058
30875
|
break;
|
|
31059
|
-
case
|
|
31060
|
-
|
|
31061
|
-
case
|
|
31062
|
-
|
|
31063
|
-
case
|
|
31064
|
-
source =
|
|
30876
|
+
case 4:
|
|
30877
|
+
_t2 = [];
|
|
30878
|
+
case 5:
|
|
30879
|
+
_t = _t2;
|
|
30880
|
+
case 6:
|
|
30881
|
+
source = _t;
|
|
31065
30882
|
// @ts-ignore
|
|
31066
30883
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31067
|
-
case
|
|
31068
|
-
|
|
31069
|
-
return _context.stop();
|
|
30884
|
+
case 7:
|
|
30885
|
+
return _context.a(2);
|
|
31070
30886
|
}
|
|
31071
30887
|
}, _callee);
|
|
31072
30888
|
})));
|
|
@@ -31131,10 +30947,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31131
30947
|
source: {
|
|
31132
30948
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31133
30949
|
type: function () {
|
|
31134
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
30950
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31135
30951
|
var form, values, name, relates, source;
|
|
31136
|
-
return
|
|
31137
|
-
while (1) switch (_context2.
|
|
30952
|
+
return _regenerator().w(function (_context2) {
|
|
30953
|
+
while (1) switch (_context2.n) {
|
|
31138
30954
|
case 0:
|
|
31139
30955
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31140
30956
|
if (values[0]) {
|
|
@@ -31143,19 +30959,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31143
30959
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31144
30960
|
}
|
|
31145
30961
|
if (!values[1]) {
|
|
31146
|
-
_context2.
|
|
30962
|
+
_context2.n = 2;
|
|
31147
30963
|
break;
|
|
31148
30964
|
}
|
|
31149
|
-
_context2.
|
|
30965
|
+
_context2.n = 1;
|
|
31150
30966
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31151
|
-
case
|
|
31152
|
-
source = _context2.
|
|
30967
|
+
case 1:
|
|
30968
|
+
source = _context2.v;
|
|
31153
30969
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31154
30970
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31155
30971
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31156
|
-
case
|
|
31157
|
-
|
|
31158
|
-
return _context2.stop();
|
|
30972
|
+
case 2:
|
|
30973
|
+
return _context2.a(2);
|
|
31159
30974
|
}
|
|
31160
30975
|
}, _callee2);
|
|
31161
30976
|
}));
|
|
@@ -31611,25 +31426,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31611
31426
|
source: {
|
|
31612
31427
|
relates: ['choiceType', 'inputType'],
|
|
31613
31428
|
type: function () {
|
|
31614
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31429
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31615
31430
|
var values, name, form, source;
|
|
31616
|
-
return
|
|
31617
|
-
while (1) switch (_context3.
|
|
31431
|
+
return _regenerator().w(function (_context3) {
|
|
31432
|
+
while (1) switch (_context3.n) {
|
|
31618
31433
|
case 0:
|
|
31619
|
-
values =
|
|
31434
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31620
31435
|
if (values[1] === 40) {
|
|
31621
31436
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31622
31437
|
form.setFieldVisible(name, false);
|
|
31623
31438
|
}
|
|
31624
31439
|
if (!(values[0] === 30)) {
|
|
31625
|
-
_context3.
|
|
31440
|
+
_context3.n = 2;
|
|
31626
31441
|
break;
|
|
31627
31442
|
}
|
|
31628
|
-
_context3.
|
|
31443
|
+
_context3.n = 1;
|
|
31629
31444
|
return request$2({
|
|
31630
31445
|
url: '/basic/dictDynamicItem/queryList',
|
|
31631
|
-
converter: function converter(
|
|
31632
|
-
var data =
|
|
31446
|
+
converter: function converter(_ref1) {
|
|
31447
|
+
var data = _ref1.data;
|
|
31633
31448
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31634
31449
|
return {
|
|
31635
31450
|
text: d.dictCode,
|
|
@@ -31638,17 +31453,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31638
31453
|
});
|
|
31639
31454
|
}
|
|
31640
31455
|
});
|
|
31641
|
-
case
|
|
31642
|
-
source = _context3.
|
|
31456
|
+
case 1:
|
|
31457
|
+
source = _context3.v;
|
|
31643
31458
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31644
31459
|
form.setFieldVisible(name, true);
|
|
31645
|
-
_context3.
|
|
31460
|
+
_context3.n = 3;
|
|
31646
31461
|
break;
|
|
31647
|
-
case
|
|
31462
|
+
case 2:
|
|
31648
31463
|
form.setFieldVisible(name, false);
|
|
31649
|
-
case
|
|
31650
|
-
|
|
31651
|
-
return _context3.stop();
|
|
31464
|
+
case 3:
|
|
31465
|
+
return _context3.a(2);
|
|
31652
31466
|
}
|
|
31653
31467
|
}, _callee3);
|
|
31654
31468
|
}));
|
|
@@ -31663,8 +31477,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31663
31477
|
name: 'enumeration',
|
|
31664
31478
|
label: '维护自定义选项',
|
|
31665
31479
|
field: {
|
|
31666
|
-
type: function type(
|
|
31667
|
-
var form =
|
|
31480
|
+
type: function type(_ref10) {
|
|
31481
|
+
var form = _ref10.form;
|
|
31668
31482
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31669
31483
|
type: 'link',
|
|
31670
31484
|
onClick: function onClick() {
|
|
@@ -31690,10 +31504,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31690
31504
|
dependency: {
|
|
31691
31505
|
source: {
|
|
31692
31506
|
relates: ['choiceType'],
|
|
31693
|
-
type: function type(
|
|
31694
|
-
var values =
|
|
31695
|
-
name =
|
|
31696
|
-
form =
|
|
31507
|
+
type: function type(_ref11) {
|
|
31508
|
+
var values = _ref11.values,
|
|
31509
|
+
name = _ref11.name,
|
|
31510
|
+
form = _ref11.form;
|
|
31697
31511
|
if (values[0] === 10) {
|
|
31698
31512
|
form.setFieldVisible(name, true);
|
|
31699
31513
|
} else {
|
|
@@ -31709,10 +31523,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31709
31523
|
dependency: {
|
|
31710
31524
|
visible: {
|
|
31711
31525
|
relates: ['choiceType'],
|
|
31712
|
-
type: function type(
|
|
31713
|
-
var name =
|
|
31714
|
-
values =
|
|
31715
|
-
form =
|
|
31526
|
+
type: function type(_ref12) {
|
|
31527
|
+
var name = _ref12.name,
|
|
31528
|
+
values = _ref12.values,
|
|
31529
|
+
form = _ref12.form;
|
|
31716
31530
|
if (values[0] == 330) {
|
|
31717
31531
|
form.setFieldVisible(name, true);
|
|
31718
31532
|
} else {
|
|
@@ -31736,8 +31550,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31736
31550
|
params: {
|
|
31737
31551
|
'qp-businessType-eq': record.businessType
|
|
31738
31552
|
},
|
|
31739
|
-
converter: function converter(
|
|
31740
|
-
var data =
|
|
31553
|
+
converter: function converter(_ref13) {
|
|
31554
|
+
var data = _ref13.data;
|
|
31741
31555
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31742
31556
|
return {
|
|
31743
31557
|
text: d.name,
|
|
@@ -31777,8 +31591,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31777
31591
|
'qp-businessType-eq': record.businessType,
|
|
31778
31592
|
'qp-status-eq': 1
|
|
31779
31593
|
},
|
|
31780
|
-
converter: function converter(
|
|
31781
|
-
var data =
|
|
31594
|
+
converter: function converter(_ref14) {
|
|
31595
|
+
var data = _ref14.data;
|
|
31782
31596
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31783
31597
|
var _d$code;
|
|
31784
31598
|
return {
|
|
@@ -31806,8 +31620,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31806
31620
|
remoteSource: {
|
|
31807
31621
|
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),
|
|
31808
31622
|
method: 'get',
|
|
31809
|
-
converter: function converter(
|
|
31810
|
-
var data =
|
|
31623
|
+
converter: function converter(_ref15) {
|
|
31624
|
+
var data = _ref15.data;
|
|
31811
31625
|
if (lineDetail.moduleType == 1) {
|
|
31812
31626
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31813
31627
|
return {
|
|
@@ -31833,16 +31647,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31833
31647
|
width: 900,
|
|
31834
31648
|
maskClosable: false,
|
|
31835
31649
|
onOk: function () {
|
|
31836
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
31650
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
31837
31651
|
var _ref$current4, _res$editableStatus;
|
|
31838
31652
|
var res, _res$defaultValue;
|
|
31839
|
-
return
|
|
31840
|
-
while (1) switch (_context4.
|
|
31653
|
+
return _regenerator().w(function (_context4) {
|
|
31654
|
+
while (1) switch (_context4.n) {
|
|
31841
31655
|
case 0:
|
|
31842
|
-
_context4.
|
|
31656
|
+
_context4.n = 1;
|
|
31843
31657
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31844
|
-
case
|
|
31845
|
-
res = _context4.
|
|
31658
|
+
case 1:
|
|
31659
|
+
res = _context4.v;
|
|
31846
31660
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31847
31661
|
res.fieldGroup = record.fieldGroup;
|
|
31848
31662
|
res.businessType = record.businessType;
|
|
@@ -31869,7 +31683,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31869
31683
|
delete res.formula;
|
|
31870
31684
|
delete res.showValue;
|
|
31871
31685
|
if (!(mode === 'create')) {
|
|
31872
|
-
_context4.
|
|
31686
|
+
_context4.n = 2;
|
|
31873
31687
|
break;
|
|
31874
31688
|
}
|
|
31875
31689
|
request$2({
|
|
@@ -31881,8 +31695,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31881
31695
|
onParentOk();
|
|
31882
31696
|
}
|
|
31883
31697
|
});
|
|
31884
|
-
return _context4.
|
|
31885
|
-
case
|
|
31698
|
+
return _context4.a(2);
|
|
31699
|
+
case 2:
|
|
31886
31700
|
request$2({
|
|
31887
31701
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31888
31702
|
method: 'PATCH',
|
|
@@ -31892,9 +31706,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31892
31706
|
onParentOk();
|
|
31893
31707
|
}
|
|
31894
31708
|
});
|
|
31895
|
-
case
|
|
31896
|
-
|
|
31897
|
-
return _context4.stop();
|
|
31709
|
+
case 3:
|
|
31710
|
+
return _context4.a(2);
|
|
31898
31711
|
}
|
|
31899
31712
|
}, _callee4);
|
|
31900
31713
|
}));
|
|
@@ -32350,21 +32163,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32350
32163
|
jsonEditorVal = _useState8[0],
|
|
32351
32164
|
setJsonEditorVal = _useState8[1];
|
|
32352
32165
|
var _useState9 = useState({}),
|
|
32353
|
-
|
|
32354
|
-
moduleParams =
|
|
32355
|
-
setModuleParams =
|
|
32356
|
-
var
|
|
32166
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32167
|
+
moduleParams = _useState0[0],
|
|
32168
|
+
setModuleParams = _useState0[1];
|
|
32169
|
+
var _useState1 = useState('main'),
|
|
32170
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32171
|
+
activeKey = _useState10[0],
|
|
32172
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32173
|
+
var _useState11 = useState({}),
|
|
32357
32174
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32358
|
-
|
|
32359
|
-
|
|
32360
|
-
var _useState13 = useState(
|
|
32175
|
+
tablesConfigParams = _useState12[0],
|
|
32176
|
+
setTablesConfigParams = _useState12[1];
|
|
32177
|
+
var _useState13 = useState([]),
|
|
32361
32178
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
var _useState15 = useState([]),
|
|
32365
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32366
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32367
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32179
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32180
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32368
32181
|
useEffect(function () {
|
|
32369
32182
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32370
32183
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32740,11 +32553,11 @@ function getMetaData(_x) {
|
|
|
32740
32553
|
|
|
32741
32554
|
// 获取数据
|
|
32742
32555
|
function _getMetaData() {
|
|
32743
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32744
|
-
return
|
|
32745
|
-
while (1) switch (_context.
|
|
32556
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32557
|
+
return _regenerator().w(function (_context) {
|
|
32558
|
+
while (1) switch (_context.n) {
|
|
32746
32559
|
case 0:
|
|
32747
|
-
return _context.
|
|
32560
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32748
32561
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32749
32562
|
params: {
|
|
32750
32563
|
'qp-entityId-eq': id
|
|
@@ -32756,9 +32569,6 @@ function _getMetaData() {
|
|
|
32756
32569
|
reject([]);
|
|
32757
32570
|
});
|
|
32758
32571
|
}));
|
|
32759
|
-
case 1:
|
|
32760
|
-
case "end":
|
|
32761
|
-
return _context.stop();
|
|
32762
32572
|
}
|
|
32763
32573
|
}, _callee);
|
|
32764
32574
|
}));
|
|
@@ -32962,11 +32772,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32962
32772
|
tableState = _useState4[0],
|
|
32963
32773
|
setTableState = _useState4[1];
|
|
32964
32774
|
var handleOpen = /*#__PURE__*/function () {
|
|
32965
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
32775
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32966
32776
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32967
32777
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32968
|
-
return
|
|
32969
|
-
while (1) switch (_context.
|
|
32778
|
+
return _regenerator().w(function (_context) {
|
|
32779
|
+
while (1) switch (_context.n) {
|
|
32970
32780
|
case 0:
|
|
32971
32781
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32972
32782
|
isSearchForm: props.isSearchForm,
|
|
@@ -32974,16 +32784,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32974
32784
|
searchFormData: searchFormData
|
|
32975
32785
|
});
|
|
32976
32786
|
if (requestConfigNew) {
|
|
32977
|
-
_context.
|
|
32787
|
+
_context.n = 1;
|
|
32978
32788
|
break;
|
|
32979
32789
|
}
|
|
32980
|
-
return _context.
|
|
32981
|
-
case
|
|
32790
|
+
return _context.a(2);
|
|
32791
|
+
case 1:
|
|
32982
32792
|
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;
|
|
32983
|
-
_context.
|
|
32793
|
+
_context.n = 2;
|
|
32984
32794
|
return getMetaData(metaDataId);
|
|
32985
|
-
case
|
|
32986
|
-
metaData = _context.
|
|
32795
|
+
case 2:
|
|
32796
|
+
metaData = _context.v;
|
|
32987
32797
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32988
32798
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32989
32799
|
})) || [];
|
|
@@ -33023,9 +32833,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33023
32833
|
// @ts-ignore
|
|
33024
32834
|
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);
|
|
33025
32835
|
}
|
|
33026
|
-
case
|
|
33027
|
-
|
|
33028
|
-
return _context.stop();
|
|
32836
|
+
case 3:
|
|
32837
|
+
return _context.a(2);
|
|
33029
32838
|
}
|
|
33030
32839
|
}, _callee);
|
|
33031
32840
|
}));
|
|
@@ -33128,7 +32937,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33128
32937
|
}, [requestConfig, tableState.columns]);
|
|
33129
32938
|
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';
|
|
33130
32939
|
var handleOk = function handleOk(rowData) {
|
|
33131
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
32940
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33132
32941
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33133
32942
|
//多选数据处理
|
|
33134
32943
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33139,9 +32948,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33139
32948
|
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()) || [];
|
|
33140
32949
|
var realSelectedRows = selectedRows;
|
|
33141
32950
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33142
|
-
var _queryTableRef$
|
|
32951
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33143
32952
|
// @ts-ignore
|
|
33144
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
32953
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
|
|
33145
32954
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33146
32955
|
return selectedKesys.includes(s[rowKey]);
|
|
33147
32956
|
});
|
|
@@ -33174,10 +32983,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33174
32983
|
});
|
|
33175
32984
|
}
|
|
33176
32985
|
mappings.map(function (item) {
|
|
33177
|
-
var _props$
|
|
33178
|
-
if (((_props$
|
|
33179
|
-
var _props$
|
|
33180
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
32986
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
32987
|
+
if (((_props$customSelector0 = props.customSelectorConfig) === null || _props$customSelector0 === void 0 ? void 0 : (_props$customSelector1 = _props$customSelector0.extraData) === null || _props$customSelector1 === void 0 ? void 0 : _props$customSelector1.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel]) {
|
|
32988
|
+
var _props$customSelector12, _props$customSelector13;
|
|
32989
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
|
|
33181
32990
|
}
|
|
33182
32991
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33183
32992
|
});
|
|
@@ -33232,10 +33041,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33232
33041
|
}
|
|
33233
33042
|
props.onCancel();
|
|
33234
33043
|
//@ts-ignore
|
|
33235
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33044
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
|
|
33236
33045
|
};
|
|
33237
33046
|
var config = useMemo(function () {
|
|
33238
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33047
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33239
33048
|
var returnConfig = {
|
|
33240
33049
|
size: 'small',
|
|
33241
33050
|
needPageHeader: false,
|
|
@@ -33244,7 +33053,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33244
33053
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33245
33054
|
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) {
|
|
33246
33055
|
return v.key || v;
|
|
33247
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33056
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
|
|
33248
33057
|
} : false,
|
|
33249
33058
|
remoteDataSource: remoteDataSource,
|
|
33250
33059
|
fields: tableState.fields,
|
|
@@ -33252,8 +33061,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33252
33061
|
rowKey: rowKey,
|
|
33253
33062
|
tableProps: !isView && {
|
|
33254
33063
|
rowClassName: function rowClassName(record) {
|
|
33255
|
-
var _props$
|
|
33256
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33064
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33065
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33257
33066
|
},
|
|
33258
33067
|
onRow: function onRow(record) {
|
|
33259
33068
|
return {
|
|
@@ -33298,10 +33107,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33298
33107
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33299
33108
|
type: "default",
|
|
33300
33109
|
onClick: function onClick() {
|
|
33301
|
-
var _queryTableRef$
|
|
33110
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33302
33111
|
props.onCancel();
|
|
33303
33112
|
//@ts-ignore
|
|
33304
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33113
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
|
|
33305
33114
|
}
|
|
33306
33115
|
}, "\u53D6\u6D88"))));
|
|
33307
33116
|
});
|
|
@@ -33525,19 +33334,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33525
33334
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33526
33335
|
handSource = _useState2[0],
|
|
33527
33336
|
setHandSource = _useState2[1];
|
|
33528
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33337
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33529
33338
|
var resData, data;
|
|
33530
|
-
return
|
|
33531
|
-
while (1) switch (_context.
|
|
33339
|
+
return _regenerator().w(function (_context) {
|
|
33340
|
+
while (1) switch (_context.n) {
|
|
33532
33341
|
case 0:
|
|
33533
33342
|
if (!(!source && initRequestSource)) {
|
|
33534
|
-
_context.
|
|
33343
|
+
_context.n = 2;
|
|
33535
33344
|
break;
|
|
33536
33345
|
}
|
|
33537
|
-
_context.
|
|
33346
|
+
_context.n = 1;
|
|
33538
33347
|
return initRequestSource();
|
|
33539
|
-
case
|
|
33540
|
-
resData = _context.
|
|
33348
|
+
case 1:
|
|
33349
|
+
resData = _context.v;
|
|
33541
33350
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33542
33351
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33543
33352
|
label: item.text,
|
|
@@ -33545,9 +33354,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33545
33354
|
});
|
|
33546
33355
|
})) || [];
|
|
33547
33356
|
setHandSource(data);
|
|
33548
|
-
case
|
|
33549
|
-
|
|
33550
|
-
return _context.stop();
|
|
33357
|
+
case 2:
|
|
33358
|
+
return _context.a(2);
|
|
33551
33359
|
}
|
|
33552
33360
|
}, _callee);
|
|
33553
33361
|
})), []);
|
|
@@ -33677,20 +33485,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33677
33485
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33678
33486
|
}
|
|
33679
33487
|
function _getRegularThresholdRange() {
|
|
33680
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33681
|
-
return
|
|
33682
|
-
while (1) switch (_context.
|
|
33488
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33489
|
+
return _regenerator().w(function (_context) {
|
|
33490
|
+
while (1) switch (_context.n) {
|
|
33683
33491
|
case 0:
|
|
33684
|
-
return _context.
|
|
33492
|
+
return _context.a(2, requestUtil({
|
|
33685
33493
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33686
33494
|
method: 'POST',
|
|
33687
33495
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33688
33496
|
queryIdentify: undefined
|
|
33689
33497
|
})
|
|
33690
33498
|
}));
|
|
33691
|
-
case 1:
|
|
33692
|
-
case "end":
|
|
33693
|
-
return _context.stop();
|
|
33694
33499
|
}
|
|
33695
33500
|
}, _callee);
|
|
33696
33501
|
}));
|
|
@@ -33831,24 +33636,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33831
33636
|
};
|
|
33832
33637
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33833
33638
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33834
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33639
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33835
33640
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33836
|
-
return
|
|
33837
|
-
while (1) switch (_context.
|
|
33641
|
+
return _regenerator().w(function (_context) {
|
|
33642
|
+
while (1) switch (_context.n) {
|
|
33838
33643
|
case 0:
|
|
33839
33644
|
if (queryIdentify) {
|
|
33840
|
-
_context.
|
|
33645
|
+
_context.n = 1;
|
|
33841
33646
|
break;
|
|
33842
33647
|
}
|
|
33843
|
-
return _context.
|
|
33844
|
-
case
|
|
33648
|
+
return _context.a(2);
|
|
33649
|
+
case 1:
|
|
33845
33650
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33846
33651
|
extraRequestUrl = '';
|
|
33847
33652
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33848
33653
|
if (!queryIdentityInfo.find(function (item) {
|
|
33849
33654
|
return item.identity == propertyCode;
|
|
33850
33655
|
})) {
|
|
33851
|
-
_context.
|
|
33656
|
+
_context.n = 3;
|
|
33852
33657
|
break;
|
|
33853
33658
|
}
|
|
33854
33659
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33862,15 +33667,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33862
33667
|
if (!needQueryList.some(function (item) {
|
|
33863
33668
|
return !querParams[item] || !querParams[item].length;
|
|
33864
33669
|
})) {
|
|
33865
|
-
_context.
|
|
33670
|
+
_context.n = 2;
|
|
33866
33671
|
break;
|
|
33867
33672
|
}
|
|
33868
|
-
return _context.
|
|
33869
|
-
case
|
|
33673
|
+
return _context.a(2);
|
|
33674
|
+
case 2:
|
|
33870
33675
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33871
33676
|
return item.identity == propertyCode;
|
|
33872
33677
|
}).requestUrl || '';
|
|
33873
|
-
case
|
|
33678
|
+
case 3:
|
|
33874
33679
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33875
33680
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33876
33681
|
querParams = {
|
|
@@ -33881,7 +33686,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33881
33686
|
// querParams = { dictCode: queryIdentify }
|
|
33882
33687
|
}
|
|
33883
33688
|
if (!extraRequestUrl) {
|
|
33884
|
-
_context.
|
|
33689
|
+
_context.n = 4;
|
|
33885
33690
|
break;
|
|
33886
33691
|
}
|
|
33887
33692
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33920,43 +33725,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33920
33725
|
return handleData;
|
|
33921
33726
|
}
|
|
33922
33727
|
});
|
|
33923
|
-
_context.
|
|
33728
|
+
_context.n = 8;
|
|
33924
33729
|
break;
|
|
33925
|
-
case
|
|
33730
|
+
case 4:
|
|
33926
33731
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33927
|
-
_context.
|
|
33732
|
+
_context.n = 5;
|
|
33928
33733
|
break;
|
|
33929
33734
|
}
|
|
33930
33735
|
_this.setState({
|
|
33931
33736
|
thresholdList: queryIdentify
|
|
33932
33737
|
});
|
|
33933
|
-
_context.
|
|
33738
|
+
_context.n = 8;
|
|
33934
33739
|
break;
|
|
33935
|
-
case
|
|
33740
|
+
case 5:
|
|
33936
33741
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33937
|
-
_context.
|
|
33742
|
+
_context.n = 6;
|
|
33938
33743
|
break;
|
|
33939
33744
|
}
|
|
33940
33745
|
// TODO待处理
|
|
33941
33746
|
_this.setState({
|
|
33942
33747
|
thresholdList: []
|
|
33943
33748
|
});
|
|
33944
|
-
_context.
|
|
33749
|
+
_context.n = 8;
|
|
33945
33750
|
break;
|
|
33946
|
-
case
|
|
33751
|
+
case 6:
|
|
33947
33752
|
querParams.queryIdentify = queryIdentify;
|
|
33948
|
-
_context.
|
|
33753
|
+
_context.n = 7;
|
|
33949
33754
|
return getRegularThresholdRange(querParams);
|
|
33950
|
-
case
|
|
33951
|
-
res = _context.
|
|
33755
|
+
case 7:
|
|
33756
|
+
res = _context.v;
|
|
33952
33757
|
if (handleError(res)) {
|
|
33953
33758
|
_this.setState({
|
|
33954
33759
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33955
33760
|
});
|
|
33956
33761
|
}
|
|
33957
|
-
case
|
|
33958
|
-
|
|
33959
|
-
return _context.stop();
|
|
33762
|
+
case 8:
|
|
33763
|
+
return _context.a(2);
|
|
33960
33764
|
}
|
|
33961
33765
|
}, _callee);
|
|
33962
33766
|
}));
|
|
@@ -34788,11 +34592,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34788
34592
|
isAll: true,
|
|
34789
34593
|
needNameAndCode: true,
|
|
34790
34594
|
notChangeOnSelect: true,
|
|
34791
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34792
|
-
return
|
|
34793
|
-
while (1) switch (_context2.
|
|
34595
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
34596
|
+
return _regenerator().w(function (_context2) {
|
|
34597
|
+
while (1) switch (_context2.n) {
|
|
34794
34598
|
case 0:
|
|
34795
|
-
_context2.
|
|
34599
|
+
_context2.n = 1;
|
|
34796
34600
|
return request$2({
|
|
34797
34601
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34798
34602
|
method: 'get',
|
|
@@ -34809,11 +34613,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34809
34613
|
return handleData;
|
|
34810
34614
|
}
|
|
34811
34615
|
});
|
|
34812
|
-
case
|
|
34813
|
-
return _context2.
|
|
34814
|
-
case 3:
|
|
34815
|
-
case "end":
|
|
34816
|
-
return _context2.stop();
|
|
34616
|
+
case 1:
|
|
34617
|
+
return _context2.a(2, _context2.v);
|
|
34817
34618
|
}
|
|
34818
34619
|
}, _callee2);
|
|
34819
34620
|
})),
|
|
@@ -34837,11 +34638,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34837
34638
|
isAll: true,
|
|
34838
34639
|
needNameAndCode: true,
|
|
34839
34640
|
notChangeOnSelect: true,
|
|
34840
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34841
|
-
return
|
|
34842
|
-
while (1) switch (_context3.
|
|
34641
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
34642
|
+
return _regenerator().w(function (_context3) {
|
|
34643
|
+
while (1) switch (_context3.n) {
|
|
34843
34644
|
case 0:
|
|
34844
|
-
_context3.
|
|
34645
|
+
_context3.n = 1;
|
|
34845
34646
|
return request$2({
|
|
34846
34647
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34847
34648
|
method: 'get',
|
|
@@ -34858,11 +34659,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34858
34659
|
return handleData;
|
|
34859
34660
|
}
|
|
34860
34661
|
});
|
|
34861
|
-
case
|
|
34862
|
-
return _context3.
|
|
34863
|
-
case 3:
|
|
34864
|
-
case "end":
|
|
34865
|
-
return _context3.stop();
|
|
34662
|
+
case 1:
|
|
34663
|
+
return _context3.a(2, _context3.v);
|
|
34866
34664
|
}
|
|
34867
34665
|
}, _callee3);
|
|
34868
34666
|
})),
|
|
@@ -34888,11 +34686,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34888
34686
|
isAll: true,
|
|
34889
34687
|
needNameAndCode: true,
|
|
34890
34688
|
notChangeOnSelect: true,
|
|
34891
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34892
|
-
return
|
|
34893
|
-
while (1) switch (_context4.
|
|
34689
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
34690
|
+
return _regenerator().w(function (_context4) {
|
|
34691
|
+
while (1) switch (_context4.n) {
|
|
34894
34692
|
case 0:
|
|
34895
|
-
_context4.
|
|
34693
|
+
_context4.n = 1;
|
|
34896
34694
|
return request$2({
|
|
34897
34695
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34898
34696
|
method: 'get',
|
|
@@ -34909,11 +34707,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34909
34707
|
return handleData;
|
|
34910
34708
|
}
|
|
34911
34709
|
});
|
|
34912
|
-
case
|
|
34913
|
-
return _context4.
|
|
34914
|
-
case 3:
|
|
34915
|
-
case "end":
|
|
34916
|
-
return _context4.stop();
|
|
34710
|
+
case 1:
|
|
34711
|
+
return _context4.a(2, _context4.v);
|
|
34917
34712
|
}
|
|
34918
34713
|
}, _callee4);
|
|
34919
34714
|
})),
|
|
@@ -35600,8 +35395,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35600
35395
|
}
|
|
35601
35396
|
}));
|
|
35602
35397
|
} else {
|
|
35603
|
-
var
|
|
35604
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35398
|
+
var _values0;
|
|
35399
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35605
35400
|
return {
|
|
35606
35401
|
key: s,
|
|
35607
35402
|
label: valueNames[vIndex],
|
|
@@ -35879,8 +35674,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35879
35674
|
}
|
|
35880
35675
|
}));
|
|
35881
35676
|
} else {
|
|
35882
|
-
var
|
|
35883
|
-
var
|
|
35677
|
+
var _values1;
|
|
35678
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
35884
35679
|
return {
|
|
35885
35680
|
key: s,
|
|
35886
35681
|
label: valueNames[vIndex],
|
|
@@ -35902,7 +35697,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35902
35697
|
} : {}),
|
|
35903
35698
|
disabled: disabled,
|
|
35904
35699
|
labelInValue: true,
|
|
35905
|
-
value:
|
|
35700
|
+
value: _currentValue0,
|
|
35906
35701
|
requestConfig: {
|
|
35907
35702
|
filterInit: 'qp-code-in'
|
|
35908
35703
|
},
|
|
@@ -35995,8 +35790,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35995
35790
|
}
|
|
35996
35791
|
}));
|
|
35997
35792
|
} else {
|
|
35998
|
-
var
|
|
35999
|
-
var
|
|
35793
|
+
var _values10;
|
|
35794
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36000
35795
|
return {
|
|
36001
35796
|
key: s,
|
|
36002
35797
|
label: valueNames[vIndex],
|
|
@@ -36018,7 +35813,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36018
35813
|
} : {}),
|
|
36019
35814
|
disabled: disabled,
|
|
36020
35815
|
labelInValue: true,
|
|
36021
|
-
value:
|
|
35816
|
+
value: _currentValue1,
|
|
36022
35817
|
requestConfig: {
|
|
36023
35818
|
filterInit: 'qp-code-in'
|
|
36024
35819
|
},
|
|
@@ -36111,8 +35906,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36111
35906
|
}
|
|
36112
35907
|
}));
|
|
36113
35908
|
} else {
|
|
36114
|
-
var
|
|
36115
|
-
var
|
|
35909
|
+
var _values11;
|
|
35910
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36116
35911
|
return {
|
|
36117
35912
|
key: s,
|
|
36118
35913
|
label: valueNames[vIndex],
|
|
@@ -36134,7 +35929,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36134
35929
|
} : {}),
|
|
36135
35930
|
disabled: disabled,
|
|
36136
35931
|
labelInValue: true,
|
|
36137
|
-
value:
|
|
35932
|
+
value: _currentValue10,
|
|
36138
35933
|
requestConfig: {
|
|
36139
35934
|
filterInit: 'qp-brandCode-in'
|
|
36140
35935
|
},
|
|
@@ -36325,8 +36120,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36325
36120
|
}
|
|
36326
36121
|
}));
|
|
36327
36122
|
} else {
|
|
36328
|
-
var
|
|
36329
|
-
var
|
|
36123
|
+
var _values12;
|
|
36124
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36330
36125
|
return {
|
|
36331
36126
|
key: s,
|
|
36332
36127
|
label: valueNames[vIndex]
|
|
@@ -36354,7 +36149,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36354
36149
|
isSearchForm: true,
|
|
36355
36150
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36356
36151
|
disabled: disabled,
|
|
36357
|
-
value:
|
|
36152
|
+
value: _currentValue11,
|
|
36358
36153
|
onChange: function onChange(value, sourceList) {
|
|
36359
36154
|
if (dataInputBusinessType === 12) {
|
|
36360
36155
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36674,9 +36469,9 @@ var App$1 = function App(_ref) {
|
|
|
36674
36469
|
UpdateState(res);
|
|
36675
36470
|
};
|
|
36676
36471
|
var _useState9 = useState(false),
|
|
36677
|
-
|
|
36678
|
-
isModalVisible =
|
|
36679
|
-
setIsModalVisible =
|
|
36472
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36473
|
+
isModalVisible = _useState0[0],
|
|
36474
|
+
setIsModalVisible = _useState0[1];
|
|
36680
36475
|
var showModal = function showModal() {
|
|
36681
36476
|
setIsModalVisible(true);
|
|
36682
36477
|
};
|
|
@@ -37157,27 +36952,26 @@ function RenderCompItem(props) {
|
|
|
37157
36952
|
dictData = _useState2[0],
|
|
37158
36953
|
setDictData = _useState2[1];
|
|
37159
36954
|
var getDictData = /*#__PURE__*/function () {
|
|
37160
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
36955
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37161
36956
|
var _data$map;
|
|
37162
36957
|
var data;
|
|
37163
|
-
return
|
|
37164
|
-
while (1) switch (_context.
|
|
36958
|
+
return _regenerator().w(function (_context) {
|
|
36959
|
+
while (1) switch (_context.n) {
|
|
37165
36960
|
case 0:
|
|
37166
|
-
_context.
|
|
36961
|
+
_context.n = 1;
|
|
37167
36962
|
return request$2({
|
|
37168
36963
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37169
36964
|
});
|
|
37170
|
-
case
|
|
37171
|
-
data = _context.
|
|
36965
|
+
case 1:
|
|
36966
|
+
data = _context.v;
|
|
37172
36967
|
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) {
|
|
37173
36968
|
return {
|
|
37174
36969
|
text: item.dictItemName,
|
|
37175
36970
|
value: item.dictItemCode
|
|
37176
36971
|
};
|
|
37177
36972
|
}));
|
|
37178
|
-
case
|
|
37179
|
-
|
|
37180
|
-
return _context.stop();
|
|
36973
|
+
case 2:
|
|
36974
|
+
return _context.a(2);
|
|
37181
36975
|
}
|
|
37182
36976
|
}, _callee);
|
|
37183
36977
|
}));
|
|
@@ -37418,11 +37212,11 @@ function RenderCompItem(props) {
|
|
|
37418
37212
|
needNameAndCode: true,
|
|
37419
37213
|
notChangeOnSelect: true,
|
|
37420
37214
|
initRequestSource: function () {
|
|
37421
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37422
|
-
return
|
|
37423
|
-
while (1) switch (_context2.
|
|
37215
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37216
|
+
return _regenerator().w(function (_context2) {
|
|
37217
|
+
while (1) switch (_context2.n) {
|
|
37424
37218
|
case 0:
|
|
37425
|
-
_context2.
|
|
37219
|
+
_context2.n = 1;
|
|
37426
37220
|
return request$2({
|
|
37427
37221
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37428
37222
|
method: 'get',
|
|
@@ -37440,11 +37234,8 @@ function RenderCompItem(props) {
|
|
|
37440
37234
|
return handleData;
|
|
37441
37235
|
}
|
|
37442
37236
|
});
|
|
37443
|
-
case
|
|
37444
|
-
return _context2.
|
|
37445
|
-
case 3:
|
|
37446
|
-
case "end":
|
|
37447
|
-
return _context2.stop();
|
|
37237
|
+
case 1:
|
|
37238
|
+
return _context2.a(2, _context2.v);
|
|
37448
37239
|
}
|
|
37449
37240
|
}, _callee2);
|
|
37450
37241
|
}));
|
|
@@ -39494,13 +39285,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39494
39285
|
ruleTypeData = _useState8[0],
|
|
39495
39286
|
setRuleTypeData = _useState8[1];
|
|
39496
39287
|
var _useState9 = useState([]),
|
|
39497
|
-
|
|
39498
|
-
ruleReturnConfig =
|
|
39499
|
-
setRuleReturnConfig =
|
|
39500
|
-
var
|
|
39501
|
-
|
|
39502
|
-
templateData =
|
|
39503
|
-
setTemplateData =
|
|
39288
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39289
|
+
ruleReturnConfig = _useState0[0],
|
|
39290
|
+
setRuleReturnConfig = _useState0[1];
|
|
39291
|
+
var _useState1 = useState({}),
|
|
39292
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39293
|
+
templateData = _useState10[0],
|
|
39294
|
+
setTemplateData = _useState10[1];
|
|
39504
39295
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39505
39296
|
request$2({
|
|
39506
39297
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39836,25 +39627,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39836
39627
|
regularDataList = _useState8[0],
|
|
39837
39628
|
setRegularDataList = _useState8[1];
|
|
39838
39629
|
var _useState9 = useState([]),
|
|
39839
|
-
|
|
39840
|
-
baseRuleDetailList =
|
|
39841
|
-
setBaseRuleDetailList =
|
|
39842
|
-
var
|
|
39630
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39631
|
+
baseRuleDetailList = _useState0[0],
|
|
39632
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
39633
|
+
var _useState1 = useState([]),
|
|
39634
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39635
|
+
systemVariableList = _useState10[0],
|
|
39636
|
+
setSystemVariableList = _useState10[1];
|
|
39637
|
+
var _useState11 = useState(false),
|
|
39843
39638
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39844
|
-
|
|
39845
|
-
|
|
39639
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
39640
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39846
39641
|
var _useState13 = useState(false),
|
|
39847
39642
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39848
|
-
|
|
39849
|
-
|
|
39643
|
+
isGetRuleDataRes = _useState14[0],
|
|
39644
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
39850
39645
|
var _useState15 = useState(false),
|
|
39851
39646
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39852
|
-
|
|
39853
|
-
|
|
39854
|
-
var _useState17 = useState(false),
|
|
39855
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
39856
|
-
groupOtherPriorityList = _useState18[0],
|
|
39857
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
39647
|
+
groupOtherPriorityList = _useState16[0],
|
|
39648
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
39858
39649
|
var baseRuleRef = useRef();
|
|
39859
39650
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39860
39651
|
// 查询规则组下所有规则实例
|
|
@@ -40178,4 +39969,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40178
39969
|
}, children));
|
|
40179
39970
|
};
|
|
40180
39971
|
|
|
40181
|
-
|
|
39972
|
+
//操作日志
|
|
39973
|
+
var SystemLog = function SystemLog(_ref) {
|
|
39974
|
+
var modeType = _ref.modeType,
|
|
39975
|
+
code = _ref.code,
|
|
39976
|
+
containerName = _ref.containerName,
|
|
39977
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
39978
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
39979
|
+
_ref$extraParams = _ref.extraParams,
|
|
39980
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
39981
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
39982
|
+
initialVisible: modeType != 'create',
|
|
39983
|
+
fields: [{
|
|
39984
|
+
name: 'table',
|
|
39985
|
+
label: false,
|
|
39986
|
+
itemLayout: {
|
|
39987
|
+
span: 24,
|
|
39988
|
+
labelCol: {
|
|
39989
|
+
span: 0
|
|
39990
|
+
},
|
|
39991
|
+
wrapperCol: {
|
|
39992
|
+
span: 24
|
|
39993
|
+
}
|
|
39994
|
+
},
|
|
39995
|
+
field: function field(ctx) {
|
|
39996
|
+
return code && /*#__PURE__*/React$1.createElement(Table$1, {
|
|
39997
|
+
remoteDataSource: {
|
|
39998
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
39999
|
+
convertParams: function convertParams(_ref2) {
|
|
40000
|
+
var params = _ref2.params;
|
|
40001
|
+
return _objectSpread2({
|
|
40002
|
+
pageSize: params.pageSize,
|
|
40003
|
+
currentPage: params.current
|
|
40004
|
+
}, extraParams);
|
|
40005
|
+
},
|
|
40006
|
+
converter: function converter(_ref3) {
|
|
40007
|
+
var data = _ref3.data;
|
|
40008
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40009
|
+
}
|
|
40010
|
+
},
|
|
40011
|
+
columns: [{
|
|
40012
|
+
title: '操作人',
|
|
40013
|
+
dataIndex: 'handlerName'
|
|
40014
|
+
}, {
|
|
40015
|
+
title: '操作名称',
|
|
40016
|
+
dataIndex: 'handlerType'
|
|
40017
|
+
}, {
|
|
40018
|
+
title: '操作时间',
|
|
40019
|
+
dataIndex: 'handlerTime',
|
|
40020
|
+
render: function render(_ref4) {
|
|
40021
|
+
var text = _ref4.text;
|
|
40022
|
+
return handleCommonTimeRender$1(text);
|
|
40023
|
+
}
|
|
40024
|
+
}, {
|
|
40025
|
+
title: '操作内容',
|
|
40026
|
+
dataIndex: 'logcontent'
|
|
40027
|
+
}],
|
|
40028
|
+
style: {
|
|
40029
|
+
width: '100%',
|
|
40030
|
+
marginTop: '-16px',
|
|
40031
|
+
padding: '0px'
|
|
40032
|
+
},
|
|
40033
|
+
rowKey: "id",
|
|
40034
|
+
scroll: {
|
|
40035
|
+
x: 'max-content'
|
|
40036
|
+
},
|
|
40037
|
+
pagination: {
|
|
40038
|
+
showTotal: function showTotal(total) {
|
|
40039
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40040
|
+
},
|
|
40041
|
+
showQuickJumper: true,
|
|
40042
|
+
hideOnSinglePage: true
|
|
40043
|
+
},
|
|
40044
|
+
ref: renderLogRef
|
|
40045
|
+
});
|
|
40046
|
+
}
|
|
40047
|
+
}]
|
|
40048
|
+
});
|
|
40049
|
+
};
|
|
40050
|
+
|
|
40051
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|