@bit-sun/business-component 4.2.0-alpha.5 → 4.2.0-alpha.6-test
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/.fatherrc.ts +24 -1
- package/README.md +75 -12
- 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/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.esm.js +733 -981
- package/dist/index.js +733 -981
- package/dist/index.umd.js +131990 -0
- package/dist/index.umd.min.js +28 -0
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +2 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +1 -1
- package/test-umd.html +40 -0
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) {
|
|
@@ -1540,22 +1349,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1540
1349
|
// sheepMap是表头字段中英文映射
|
|
1541
1350
|
// sheetCount:表的数量,默认一张
|
|
1542
1351
|
var resolveFile = /*#__PURE__*/function () {
|
|
1543
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1352
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1544
1353
|
var config,
|
|
1545
1354
|
data,
|
|
1546
1355
|
_args = arguments;
|
|
1547
|
-
return
|
|
1548
|
-
while (1) switch (_context.
|
|
1356
|
+
return _regenerator().w(function (_context) {
|
|
1357
|
+
while (1) switch (_context.n) {
|
|
1549
1358
|
case 0:
|
|
1550
1359
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1551
1360
|
sheetMap: [],
|
|
1552
1361
|
sheetCount: 1
|
|
1553
1362
|
};
|
|
1554
|
-
_context.
|
|
1363
|
+
_context.n = 1;
|
|
1555
1364
|
return analyseExcelToByte(file);
|
|
1556
|
-
case
|
|
1557
|
-
data = _context.
|
|
1558
|
-
return _context.
|
|
1365
|
+
case 1:
|
|
1366
|
+
data = _context.v;
|
|
1367
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1559
1368
|
var workbook = read(data, {
|
|
1560
1369
|
type: 'binary'
|
|
1561
1370
|
});
|
|
@@ -1567,9 +1376,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1567
1376
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1568
1377
|
resolve(outdata);
|
|
1569
1378
|
}));
|
|
1570
|
-
case 5:
|
|
1571
|
-
case "end":
|
|
1572
|
-
return _context.stop();
|
|
1573
1379
|
}
|
|
1574
1380
|
}, _callee);
|
|
1575
1381
|
}));
|
|
@@ -1579,41 +1385,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1579
1385
|
}();
|
|
1580
1386
|
//读取文件
|
|
1581
1387
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1582
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1388
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1583
1389
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1584
|
-
return
|
|
1585
|
-
while (1) switch (_context2.
|
|
1390
|
+
return _regenerator().w(function (_context2) {
|
|
1391
|
+
while (1) switch (_context2.n) {
|
|
1586
1392
|
case 0:
|
|
1587
1393
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1588
1394
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1589
|
-
_context2.
|
|
1395
|
+
_context2.n = 3;
|
|
1590
1396
|
break;
|
|
1591
1397
|
}
|
|
1592
1398
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1593
|
-
_context2.
|
|
1399
|
+
_context2.n = 1;
|
|
1594
1400
|
return resolveFile(nowFile.originFileObj, {
|
|
1595
1401
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1596
1402
|
sheetCount: 1
|
|
1597
1403
|
});
|
|
1598
|
-
case
|
|
1599
|
-
data2 = _context2.
|
|
1404
|
+
case 1:
|
|
1405
|
+
data2 = _context2.v;
|
|
1600
1406
|
data = data2[0];
|
|
1601
1407
|
if (data.length) {
|
|
1602
|
-
_context2.
|
|
1408
|
+
_context2.n = 2;
|
|
1603
1409
|
break;
|
|
1604
1410
|
}
|
|
1605
1411
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1606
|
-
return _context2.
|
|
1607
|
-
case
|
|
1412
|
+
return _context2.a(2);
|
|
1413
|
+
case 2:
|
|
1608
1414
|
if (callback) callback(data);
|
|
1609
1415
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1610
|
-
return _context2.
|
|
1611
|
-
case
|
|
1416
|
+
return _context2.a(2, data);
|
|
1417
|
+
case 3:
|
|
1612
1418
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1613
|
-
return _context2.
|
|
1614
|
-
case
|
|
1615
|
-
|
|
1616
|
-
return _context2.stop();
|
|
1419
|
+
return _context2.a(2);
|
|
1420
|
+
case 4:
|
|
1421
|
+
return _context2.a(2);
|
|
1617
1422
|
}
|
|
1618
1423
|
}, _callee2);
|
|
1619
1424
|
}));
|
|
@@ -2565,17 +2370,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2565
2370
|
return request$1(url, parms).then(handleResponseData);
|
|
2566
2371
|
};
|
|
2567
2372
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2568
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2569
|
-
return
|
|
2570
|
-
while (1) switch (_context.
|
|
2373
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2374
|
+
return _regenerator().w(function (_context) {
|
|
2375
|
+
while (1) switch (_context.n) {
|
|
2571
2376
|
case 0:
|
|
2572
|
-
return _context.
|
|
2377
|
+
return _context.a(2, Promise.resolve({
|
|
2573
2378
|
data: response,
|
|
2574
2379
|
status: response.status
|
|
2575
2380
|
}));
|
|
2576
|
-
case 1:
|
|
2577
|
-
case "end":
|
|
2578
|
-
return _context.stop();
|
|
2579
2381
|
}
|
|
2580
2382
|
}, _callee);
|
|
2581
2383
|
}));
|
|
@@ -4718,27 +4520,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4718
4520
|
popvalue = _useState8[0],
|
|
4719
4521
|
setPopValue = _useState8[1];
|
|
4720
4522
|
var _useState9 = useState([]),
|
|
4721
|
-
|
|
4722
|
-
source =
|
|
4723
|
-
setSource =
|
|
4523
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4524
|
+
source = _useState0[0],
|
|
4525
|
+
setSource = _useState0[1];
|
|
4724
4526
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4725
4527
|
getData();
|
|
4726
4528
|
}, {
|
|
4727
4529
|
wait: 1000
|
|
4728
4530
|
}),
|
|
4729
4531
|
run = _useDebounceFn.run;
|
|
4730
|
-
var
|
|
4532
|
+
var _useState1 = useState(false),
|
|
4533
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4534
|
+
fetching = _useState10[0],
|
|
4535
|
+
setFetching = _useState10[1];
|
|
4536
|
+
var _useState11 = useState(''),
|
|
4731
4537
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
var _useState13 = useState(
|
|
4538
|
+
searchValue = _useState12[0],
|
|
4539
|
+
setSearchValue = _useState12[1];
|
|
4540
|
+
var _useState13 = useState(resultSourceKey),
|
|
4735
4541
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
var _useState15 = useState(resultSourceKey),
|
|
4739
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4740
|
-
uniqueValue = _useState16[0],
|
|
4741
|
-
setUniqueValue = _useState16[1];
|
|
4542
|
+
uniqueValue = _useState14[0],
|
|
4543
|
+
setUniqueValue = _useState14[1];
|
|
4742
4544
|
useEffect(function () {
|
|
4743
4545
|
setPopValue(value);
|
|
4744
4546
|
onValueChange(value);
|
|
@@ -5155,21 +4957,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5155
4957
|
notCommonProperty = _useState8[0],
|
|
5156
4958
|
setNotCommonProperty = _useState8[1];
|
|
5157
4959
|
var _useState9 = useState(false),
|
|
5158
|
-
|
|
5159
|
-
visible =
|
|
5160
|
-
setVisible =
|
|
5161
|
-
var
|
|
4960
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4961
|
+
visible = _useState0[0],
|
|
4962
|
+
setVisible = _useState0[1];
|
|
4963
|
+
var _useState1 = useState(false),
|
|
4964
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4965
|
+
showNotCommon = _useState10[0],
|
|
4966
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
4967
|
+
var _useState11 = useState([]),
|
|
5162
4968
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
var _useState13 = useState(
|
|
4969
|
+
classifyOptionList = _useState12[0],
|
|
4970
|
+
setClassifyOptionList = _useState12[1];
|
|
4971
|
+
var _useState13 = useState('1'),
|
|
5166
4972
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
var _useState15 = useState('1'),
|
|
5170
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5171
|
-
listKey = _useState16[0],
|
|
5172
|
-
setListKey = _useState16[1];
|
|
4973
|
+
listKey = _useState14[0],
|
|
4974
|
+
setListKey = _useState14[1];
|
|
5173
4975
|
useEffect(function () {
|
|
5174
4976
|
requestUtil({
|
|
5175
4977
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5548,29 +5350,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5548
5350
|
scrollPage = _useState8[0],
|
|
5549
5351
|
setScrollPage = _useState8[1];
|
|
5550
5352
|
var _useState9 = useState(0),
|
|
5551
|
-
|
|
5552
|
-
itemsTotal =
|
|
5553
|
-
setItemsTotal =
|
|
5554
|
-
var
|
|
5353
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5354
|
+
itemsTotal = _useState0[0],
|
|
5355
|
+
setItemsTotal = _useState0[1];
|
|
5356
|
+
var _useState1 = useState(false),
|
|
5357
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5358
|
+
fetching = _useState10[0],
|
|
5359
|
+
setFetching = _useState10[1];
|
|
5360
|
+
var _useState11 = useState(''),
|
|
5555
5361
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
var _useState13 = useState(
|
|
5362
|
+
searchValue = _useState12[0],
|
|
5363
|
+
setSearchValue = _useState12[1];
|
|
5364
|
+
var _useState13 = useState(false),
|
|
5559
5365
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
var _useState15 = useState(
|
|
5366
|
+
isModalVisible = _useState14[0],
|
|
5367
|
+
setIsModalVisible = _useState14[1];
|
|
5368
|
+
var _useState15 = useState(initVal),
|
|
5563
5369
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
var _useState17 = useState(
|
|
5370
|
+
popvalue = _useState16[0],
|
|
5371
|
+
setPopValue = _useState16[1];
|
|
5372
|
+
var _useState17 = useState(resultSourceKey),
|
|
5567
5373
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
var _useState19 = useState(resultSourceKey),
|
|
5571
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5572
|
-
uniqueValue = _useState20[0],
|
|
5573
|
-
setUniqueValue = _useState20[1];
|
|
5374
|
+
uniqueValue = _useState18[0],
|
|
5375
|
+
setUniqueValue = _useState18[1];
|
|
5574
5376
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5575
5377
|
// 优化搜索参数 支持传多个
|
|
5576
5378
|
var searchParams = {};
|
|
@@ -5599,58 +5401,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5599
5401
|
var _Form$useForm = Form.useForm(),
|
|
5600
5402
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5601
5403
|
form = _Form$useForm2[0];
|
|
5404
|
+
var _useState19 = useState(true),
|
|
5405
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5406
|
+
collapsed = _useState20[0],
|
|
5407
|
+
setCollapsed = _useState20[1];
|
|
5602
5408
|
var _useState21 = useState(true),
|
|
5603
5409
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
var _useState23 = useState(
|
|
5410
|
+
caretLeftFlag = _useState22[0],
|
|
5411
|
+
setCaretLeftFlag = _useState22[1];
|
|
5412
|
+
var _useState23 = useState([]),
|
|
5607
5413
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
var _useState25 = useState(
|
|
5414
|
+
tableData = _useState24[0],
|
|
5415
|
+
setTableData = _useState24[1];
|
|
5416
|
+
var _useState25 = useState(tableInitPagination),
|
|
5611
5417
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
var _useState27 = useState(
|
|
5418
|
+
tablePagination = _useState26[0],
|
|
5419
|
+
setTablePagination = _useState26[1];
|
|
5420
|
+
var _useState27 = useState([]),
|
|
5615
5421
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5616
|
-
|
|
5617
|
-
|
|
5422
|
+
selectedRowKeys = _useState28[0],
|
|
5423
|
+
setSelectedRowKeys = _useState28[1];
|
|
5618
5424
|
var _useState29 = useState([]),
|
|
5619
5425
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
var _useState31 = useState(
|
|
5426
|
+
selectedRows = _useState30[0],
|
|
5427
|
+
setSelectedRows = _useState30[1];
|
|
5428
|
+
var _useState31 = useState(false),
|
|
5623
5429
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5624
|
-
|
|
5625
|
-
|
|
5430
|
+
checkedAll = _useState32[0],
|
|
5431
|
+
setCheckedAll = _useState32[1];
|
|
5626
5432
|
var _useState33 = useState(false),
|
|
5627
5433
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
var _useState35 = useState(
|
|
5434
|
+
indeterminate = _useState34[0],
|
|
5435
|
+
setIndeterminate = _useState34[1];
|
|
5436
|
+
var _useState35 = useState({}),
|
|
5631
5437
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
var _useState37 = useState(
|
|
5438
|
+
tableFormParams = _useState36[0],
|
|
5439
|
+
setTableFormParams = _useState36[1];
|
|
5440
|
+
var _useState37 = useState(false),
|
|
5635
5441
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
var _useState39 = useState(
|
|
5442
|
+
tooltipVisible = _useState38[0],
|
|
5443
|
+
setTooltipVisible = _useState38[1];
|
|
5444
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5639
5445
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
var _useState41 = useState(
|
|
5446
|
+
tableShowColumns = _useState40[0],
|
|
5447
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5448
|
+
var _useState41 = useState(false),
|
|
5643
5449
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5644
|
-
|
|
5645
|
-
|
|
5450
|
+
confirmLoading = _useState42[0],
|
|
5451
|
+
setConfirmLoading = _useState42[1];
|
|
5646
5452
|
var _useState43 = useState(false),
|
|
5647
5453
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
var _useState45 = useState(false),
|
|
5651
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5652
|
-
modalSearched = _useState46[0],
|
|
5653
|
-
setModalSearched = _useState46[1];
|
|
5454
|
+
modalSearched = _useState44[0],
|
|
5455
|
+
setModalSearched = _useState44[1];
|
|
5654
5456
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5655
5457
|
setItems(list);
|
|
5656
5458
|
setItemsTotal(total);
|
|
@@ -6120,7 +5922,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6120
5922
|
})) || [];
|
|
6121
5923
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6122
5924
|
return searchList.map(function (i, index) {
|
|
6123
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
5925
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6124
5926
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6125
5927
|
span: ColSpan,
|
|
6126
5928
|
key: i
|
|
@@ -6218,7 +6020,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6218
6020
|
disabled: setDisabled(i.name)
|
|
6219
6021
|
}))));
|
|
6220
6022
|
}
|
|
6221
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6023
|
+
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
6024
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6223
6025
|
span: ColSpan,
|
|
6224
6026
|
key: i.name
|
|
@@ -6232,7 +6034,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6232
6034
|
}
|
|
6233
6035
|
})));
|
|
6234
6036
|
}
|
|
6235
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6037
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6236
6038
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6237
6039
|
span: ColSpan,
|
|
6238
6040
|
key: i.name
|
|
@@ -6242,8 +6044,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6242
6044
|
key: i.name
|
|
6243
6045
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6244
6046
|
}
|
|
6245
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6246
|
-
var _i$
|
|
6047
|
+
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') {
|
|
6048
|
+
var _i$field11;
|
|
6247
6049
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6248
6050
|
span: ColSpan,
|
|
6249
6051
|
key: i.name
|
|
@@ -6256,9 +6058,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6256
6058
|
width: '100%'
|
|
6257
6059
|
},
|
|
6258
6060
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6259
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6061
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6260
6062
|
}
|
|
6261
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6063
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6262
6064
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6263
6065
|
span: ColSpan,
|
|
6264
6066
|
key: i.name
|
|
@@ -6287,7 +6089,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6287
6089
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6288
6090
|
allowClear: true,
|
|
6289
6091
|
maxLength: 100
|
|
6290
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6092
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6291
6093
|
disabled: setDisabled(i.name)
|
|
6292
6094
|
}))));
|
|
6293
6095
|
});
|
|
@@ -7607,135 +7409,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7607
7409
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7608
7410
|
form = _Form$useForm2[0];
|
|
7609
7411
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7610
|
-
|
|
7611
|
-
tableSearchForm =
|
|
7612
|
-
setTableSearchForm =
|
|
7613
|
-
var
|
|
7412
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7413
|
+
tableSearchForm = _useState0[0],
|
|
7414
|
+
setTableSearchForm = _useState0[1];
|
|
7415
|
+
var _useState1 = useState(true),
|
|
7416
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7417
|
+
caretLeftFlag = _useState10[0],
|
|
7418
|
+
setCaretLeftFlag = _useState10[1];
|
|
7419
|
+
var _useState11 = useState([]),
|
|
7614
7420
|
_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({
|
|
7421
|
+
tableData = _useState12[0],
|
|
7422
|
+
setTableData = _useState12[1];
|
|
7423
|
+
var _useState13 = useState(_objectSpread2({
|
|
7622
7424
|
total: 0,
|
|
7623
7425
|
size: "small",
|
|
7624
7426
|
current: 1,
|
|
7625
7427
|
pageSize: tableInitPageSize
|
|
7626
7428
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7429
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7430
|
+
tablePagination = _useState14[0],
|
|
7431
|
+
setTablePagination = _useState14[1];
|
|
7432
|
+
var _useState15 = useState([]),
|
|
7627
7433
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
var _useState17 = useState(
|
|
7434
|
+
selectedRowKeys = _useState16[0],
|
|
7435
|
+
setSelectedRowKeys = _useState16[1];
|
|
7436
|
+
var _useState17 = useState({}),
|
|
7631
7437
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
var _useState19 = useState(
|
|
7438
|
+
tableFormParams = _useState18[0],
|
|
7439
|
+
setTableFormParams = _useState18[1];
|
|
7440
|
+
var _useState19 = useState(false),
|
|
7635
7441
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7636
|
-
|
|
7637
|
-
|
|
7442
|
+
confirmLoading = _useState20[0],
|
|
7443
|
+
setConfirmLoading = _useState20[1];
|
|
7638
7444
|
var _useState21 = useState(false),
|
|
7639
7445
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
var _useState23 = useState(
|
|
7446
|
+
confirmContinueLoading = _useState22[0],
|
|
7447
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7448
|
+
var _useState23 = useState([]),
|
|
7643
7449
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7644
|
-
|
|
7645
|
-
|
|
7450
|
+
selectColumns = _useState24[0],
|
|
7451
|
+
setSelectColumns = _useState24[1];
|
|
7646
7452
|
var _useState25 = useState([]),
|
|
7647
7453
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7648
|
-
|
|
7649
|
-
|
|
7454
|
+
showColumns = _useState26[0],
|
|
7455
|
+
setShowColumns = _useState26[1];
|
|
7650
7456
|
var _useState27 = useState([]),
|
|
7651
7457
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7652
|
-
|
|
7653
|
-
|
|
7458
|
+
tableColumns = _useState28[0],
|
|
7459
|
+
setTableColumns = _useState28[1];
|
|
7654
7460
|
var _useState29 = useState([]),
|
|
7655
7461
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
var _useState31 = useState([]),
|
|
7659
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7660
|
-
showToChooseColumns = _useState32[0],
|
|
7661
|
-
setShowToChooseColumns = _useState32[1];
|
|
7462
|
+
showToChooseColumns = _useState30[0],
|
|
7463
|
+
setShowToChooseColumns = _useState30[1];
|
|
7662
7464
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7663
7465
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7664
7466
|
// FIXME: 特殊业务逻辑
|
|
7665
7467
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7666
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7667
|
-
var result;
|
|
7668
|
-
return
|
|
7669
|
-
while (1) switch (_context.
|
|
7468
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7469
|
+
var result, _t;
|
|
7470
|
+
return _regenerator().w(function (_context) {
|
|
7471
|
+
while (1) switch (_context.n) {
|
|
7670
7472
|
case 0:
|
|
7671
7473
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7672
7474
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7673
7475
|
}))) {
|
|
7674
|
-
_context.
|
|
7476
|
+
_context.n = 1;
|
|
7675
7477
|
break;
|
|
7676
7478
|
}
|
|
7677
7479
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7678
|
-
return _context.
|
|
7679
|
-
case
|
|
7480
|
+
return _context.a(2, false);
|
|
7481
|
+
case 1:
|
|
7680
7482
|
if (!(bType == 'spu')) {
|
|
7681
|
-
_context.
|
|
7483
|
+
_context.n = 9;
|
|
7682
7484
|
break;
|
|
7683
7485
|
}
|
|
7684
7486
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7685
7487
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7686
7488
|
}))) {
|
|
7687
|
-
_context.
|
|
7489
|
+
_context.n = 2;
|
|
7688
7490
|
break;
|
|
7689
7491
|
}
|
|
7690
7492
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7691
|
-
return _context.
|
|
7692
|
-
case
|
|
7493
|
+
return _context.a(2, false);
|
|
7494
|
+
case 2:
|
|
7693
7495
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7694
|
-
_context.
|
|
7496
|
+
_context.n = 3;
|
|
7695
7497
|
break;
|
|
7696
7498
|
}
|
|
7697
7499
|
message$1.warning('请先选择颜色!');
|
|
7698
|
-
return _context.
|
|
7699
|
-
case
|
|
7500
|
+
return _context.a(2, false);
|
|
7501
|
+
case 3:
|
|
7700
7502
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7701
7503
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7702
7504
|
}))) {
|
|
7703
|
-
_context.
|
|
7505
|
+
_context.n = 4;
|
|
7704
7506
|
break;
|
|
7705
7507
|
}
|
|
7706
7508
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7707
|
-
return _context.
|
|
7708
|
-
case
|
|
7509
|
+
return _context.a(2, false);
|
|
7510
|
+
case 4:
|
|
7709
7511
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7710
|
-
_context.
|
|
7512
|
+
_context.n = 9;
|
|
7711
7513
|
break;
|
|
7712
7514
|
}
|
|
7713
7515
|
result = true;
|
|
7714
|
-
_context.
|
|
7715
|
-
_context.
|
|
7516
|
+
_context.p = 5;
|
|
7517
|
+
_context.n = 6;
|
|
7716
7518
|
return checkSpuMatchCode({
|
|
7717
7519
|
skcCode: recordItem[recordKey],
|
|
7718
7520
|
matchingCode: changeValue,
|
|
7719
7521
|
ext1: recordItem.colorName
|
|
7720
7522
|
});
|
|
7721
|
-
case
|
|
7722
|
-
result = _context.
|
|
7523
|
+
case 6:
|
|
7524
|
+
result = _context.v;
|
|
7723
7525
|
result = true;
|
|
7724
|
-
_context.
|
|
7526
|
+
_context.n = 8;
|
|
7725
7527
|
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]]);
|
|
7528
|
+
case 7:
|
|
7529
|
+
_context.p = 7;
|
|
7530
|
+
_t = _context.v;
|
|
7531
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7532
|
+
case 8:
|
|
7533
|
+
return _context.a(2, result);
|
|
7534
|
+
case 9:
|
|
7535
|
+
return _context.a(2, true);
|
|
7536
|
+
}
|
|
7537
|
+
}, _callee, null, [[5, 7]]);
|
|
7739
7538
|
}));
|
|
7740
7539
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7741
7540
|
return _ref2.apply(this, arguments);
|
|
@@ -7923,19 +7722,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
7722
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7924
7723
|
value: text || null,
|
|
7925
7724
|
onChange: function () {
|
|
7926
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7927
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7928
|
-
return
|
|
7929
|
-
while (1) switch (_context2.
|
|
7725
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
|
|
7726
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7727
|
+
return _regenerator().w(function (_context2) {
|
|
7728
|
+
while (1) switch (_context2.n) {
|
|
7930
7729
|
case 0:
|
|
7931
7730
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7932
7731
|
return d[selectKey] == value;
|
|
7933
7732
|
})) || {};
|
|
7934
7733
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7935
|
-
_context2.
|
|
7734
|
+
_context2.n = 2;
|
|
7936
7735
|
break;
|
|
7937
7736
|
}
|
|
7938
|
-
_context2.
|
|
7737
|
+
_context2.n = 1;
|
|
7939
7738
|
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
7739
|
record: record,
|
|
7941
7740
|
index: index,
|
|
@@ -7945,10 +7744,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7945
7744
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7946
7745
|
editRecord: editRecord
|
|
7947
7746
|
});
|
|
7948
|
-
case
|
|
7949
|
-
_context2.
|
|
7747
|
+
case 1:
|
|
7748
|
+
_context2.n = 10;
|
|
7950
7749
|
break;
|
|
7951
|
-
case
|
|
7750
|
+
case 2:
|
|
7952
7751
|
// 更新当前行数据函数
|
|
7953
7752
|
changeValue = function changeValue(v, dSSItem) {
|
|
7954
7753
|
var _item$dataSourceSelec;
|
|
@@ -7961,12 +7760,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7961
7760
|
}
|
|
7962
7761
|
}; // 处理校验,默认不校验
|
|
7963
7762
|
isCheckPass = true;
|
|
7964
|
-
_context2.
|
|
7763
|
+
_context2.p = 3;
|
|
7965
7764
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7966
|
-
_context2.
|
|
7765
|
+
_context2.n = 5;
|
|
7967
7766
|
break;
|
|
7968
7767
|
}
|
|
7969
|
-
_context2.
|
|
7768
|
+
_context2.n = 4;
|
|
7970
7769
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7971
7770
|
record: record,
|
|
7972
7771
|
index: index,
|
|
@@ -7975,23 +7774,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7975
7774
|
changeValue: value,
|
|
7976
7775
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7977
7776
|
});
|
|
7978
|
-
case
|
|
7979
|
-
isCheckPass = _context2.
|
|
7980
|
-
_context2.
|
|
7777
|
+
case 4:
|
|
7778
|
+
isCheckPass = _context2.v;
|
|
7779
|
+
_context2.n = 7;
|
|
7981
7780
|
break;
|
|
7982
|
-
case
|
|
7983
|
-
_context2.
|
|
7781
|
+
case 5:
|
|
7782
|
+
_context2.n = 6;
|
|
7984
7783
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7985
|
-
case
|
|
7986
|
-
isConformToTheRules = _context2.
|
|
7784
|
+
case 6:
|
|
7785
|
+
isConformToTheRules = _context2.v;
|
|
7987
7786
|
isCheckPass = !isConformToTheRules;
|
|
7988
|
-
case
|
|
7989
|
-
_context2.
|
|
7787
|
+
case 7:
|
|
7788
|
+
_context2.n = 9;
|
|
7990
7789
|
break;
|
|
7991
|
-
case
|
|
7992
|
-
_context2.
|
|
7993
|
-
|
|
7994
|
-
case
|
|
7790
|
+
case 8:
|
|
7791
|
+
_context2.p = 8;
|
|
7792
|
+
_t2 = _context2.v;
|
|
7793
|
+
case 9:
|
|
7995
7794
|
if (isCheckPass) {
|
|
7996
7795
|
changeValue(value, dataSourceSelectItem);
|
|
7997
7796
|
} else {
|
|
@@ -7999,11 +7798,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7999
7798
|
}
|
|
8000
7799
|
// 更新已选表格函数
|
|
8001
7800
|
editRecord(record);
|
|
8002
|
-
case
|
|
8003
|
-
|
|
8004
|
-
return _context2.stop();
|
|
7801
|
+
case 10:
|
|
7802
|
+
return _context2.a(2);
|
|
8005
7803
|
}
|
|
8006
|
-
}, _callee2, null, [[
|
|
7804
|
+
}, _callee2, null, [[3, 8]]);
|
|
8007
7805
|
}));
|
|
8008
7806
|
function onChange(_x7) {
|
|
8009
7807
|
return _onChange.apply(this, arguments);
|
|
@@ -9394,29 +9192,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9394
9192
|
dataIndex: 'propertyNameAndValue'
|
|
9395
9193
|
}];
|
|
9396
9194
|
var _useState9 = useState(false),
|
|
9397
|
-
|
|
9398
|
-
isModalVisible =
|
|
9399
|
-
setIsModalVisible =
|
|
9400
|
-
var
|
|
9195
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9196
|
+
isModalVisible = _useState0[0],
|
|
9197
|
+
setIsModalVisible = _useState0[1];
|
|
9198
|
+
var _useState1 = useState([{
|
|
9401
9199
|
hovered: false
|
|
9402
9200
|
}]),
|
|
9403
|
-
|
|
9404
|
-
data =
|
|
9405
|
-
setData =
|
|
9201
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9202
|
+
data = _useState10[0],
|
|
9203
|
+
setData = _useState10[1];
|
|
9406
9204
|
var tableRef = useRef(null);
|
|
9407
9205
|
var codeSelected = tableCode;
|
|
9408
|
-
var
|
|
9206
|
+
var _useState11 = useState(false),
|
|
9207
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9208
|
+
loading = _useState12[0],
|
|
9209
|
+
setLoading = _useState12[1];
|
|
9210
|
+
var _useState13 = useState([]),
|
|
9409
9211
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9410
|
-
|
|
9411
|
-
|
|
9212
|
+
selectColumns = _useState14[0],
|
|
9213
|
+
setSelectColumns = _useState14[1];
|
|
9412
9214
|
var _useState15 = useState([]),
|
|
9413
9215
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
var _useState17 = useState([]),
|
|
9417
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9418
|
-
showColumns = _useState18[0],
|
|
9419
|
-
setShowColumns = _useState18[1];
|
|
9216
|
+
showColumns = _useState16[0],
|
|
9217
|
+
setShowColumns = _useState16[1];
|
|
9420
9218
|
useEffect(function () {
|
|
9421
9219
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9422
9220
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9532,42 +9330,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9532
9330
|
});
|
|
9533
9331
|
};
|
|
9534
9332
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9535
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9333
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9536
9334
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9537
|
-
return
|
|
9538
|
-
while (1) switch (_context.
|
|
9335
|
+
return _regenerator().w(function (_context) {
|
|
9336
|
+
while (1) switch (_context.n) {
|
|
9539
9337
|
case 0:
|
|
9540
9338
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9541
|
-
_context.
|
|
9339
|
+
_context.n = 1;
|
|
9542
9340
|
break;
|
|
9543
9341
|
}
|
|
9544
9342
|
message$1.warning('至少录入一条数据');
|
|
9545
|
-
return _context.
|
|
9546
|
-
case
|
|
9343
|
+
return _context.a(2);
|
|
9344
|
+
case 1:
|
|
9547
9345
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9548
9346
|
return d.skuCode && d.name;
|
|
9549
9347
|
})) {
|
|
9550
|
-
_context.
|
|
9348
|
+
_context.n = 2;
|
|
9551
9349
|
break;
|
|
9552
9350
|
}
|
|
9553
9351
|
message$1.warning('录入商品不存在');
|
|
9554
|
-
return _context.
|
|
9555
|
-
case
|
|
9352
|
+
return _context.a(2);
|
|
9353
|
+
case 2:
|
|
9556
9354
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9557
9355
|
return d.count;
|
|
9558
9356
|
})) {
|
|
9559
|
-
_context.
|
|
9357
|
+
_context.n = 3;
|
|
9560
9358
|
break;
|
|
9561
9359
|
}
|
|
9562
9360
|
message$1.warning('请填写商品数量!');
|
|
9563
|
-
return _context.
|
|
9564
|
-
case
|
|
9565
|
-
_context.
|
|
9361
|
+
return _context.a(2);
|
|
9362
|
+
case 3:
|
|
9363
|
+
_context.n = 4;
|
|
9566
9364
|
return isSkuCanEntry(data);
|
|
9567
|
-
case
|
|
9568
|
-
canEntryObject = _context.
|
|
9365
|
+
case 4:
|
|
9366
|
+
canEntryObject = _context.v;
|
|
9569
9367
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9570
|
-
_context.
|
|
9368
|
+
_context.n = 5;
|
|
9571
9369
|
break;
|
|
9572
9370
|
}
|
|
9573
9371
|
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 +9375,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9577
9375
|
content: messageInfo,
|
|
9578
9376
|
duration: 6
|
|
9579
9377
|
});
|
|
9580
|
-
return _context.
|
|
9581
|
-
case
|
|
9378
|
+
return _context.a(2);
|
|
9379
|
+
case 5:
|
|
9582
9380
|
setLoading(true);
|
|
9583
9381
|
onSaveCallback(data).then(function (res) {
|
|
9584
9382
|
{
|
|
@@ -9596,9 +9394,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9596
9394
|
message$1.error(Error);
|
|
9597
9395
|
setLoading(false);
|
|
9598
9396
|
});
|
|
9599
|
-
case
|
|
9600
|
-
|
|
9601
|
-
return _context.stop();
|
|
9397
|
+
case 6:
|
|
9398
|
+
return _context.a(2);
|
|
9602
9399
|
}
|
|
9603
9400
|
}, _callee);
|
|
9604
9401
|
}));
|
|
@@ -11772,7 +11569,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11772
11569
|
}
|
|
11773
11570
|
}
|
|
11774
11571
|
}];
|
|
11775
|
-
var
|
|
11572
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11776
11573
|
querySelectHeadersList: querySelectHeadersList,
|
|
11777
11574
|
extralHeaders: extralHeaders
|
|
11778
11575
|
});
|
|
@@ -11780,21 +11577,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11780
11577
|
pageSize: 5000,
|
|
11781
11578
|
currentPage: 1,
|
|
11782
11579
|
'qp-companyType-eq': '30'
|
|
11783
|
-
}, getQueryHeadersItem(
|
|
11580
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11784
11581
|
pageSize: 5000,
|
|
11785
11582
|
currentPage: 1,
|
|
11786
11583
|
'qp-companyType-eq': '20'
|
|
11787
|
-
}, getQueryHeadersItem(
|
|
11584
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11788
11585
|
// pageSize: 5000,
|
|
11789
11586
|
// currentPage: 1,
|
|
11790
11587
|
'qp-status-eq': '1'
|
|
11791
|
-
}, getQueryHeadersItem(
|
|
11588
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11792
11589
|
pageSize: 5000,
|
|
11793
11590
|
currentPage: 1
|
|
11794
|
-
}, getQueryHeadersItem(
|
|
11591
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11795
11592
|
pageSize: 5000,
|
|
11796
11593
|
currentPage: 1
|
|
11797
|
-
}, getQueryHeadersItem(
|
|
11594
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11798
11595
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11799
11596
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11800
11597
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11964,7 +11761,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11964
11761
|
},
|
|
11965
11762
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11966
11763
|
}];
|
|
11967
|
-
var
|
|
11764
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
11968
11765
|
querySelectHeadersList: querySelectHeadersList,
|
|
11969
11766
|
extralHeaders: extralHeaders
|
|
11970
11767
|
});
|
|
@@ -11972,13 +11769,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11972
11769
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11973
11770
|
'qp-realOrg-eq': true,
|
|
11974
11771
|
'qp-status-eq': 10
|
|
11975
|
-
}, getQueryHeadersItem(
|
|
11772
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11976
11773
|
'qp-status-eq': 10,
|
|
11977
11774
|
'qp-isMain-eq': 1,
|
|
11978
11775
|
'qp-type-in': '1,2'
|
|
11979
|
-
}, getQueryHeadersItem(
|
|
11776
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11980
11777
|
'qp-status-eq': 1
|
|
11981
|
-
}, getQueryHeadersItem(
|
|
11778
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
|
|
11982
11779
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11983
11780
|
return data['parentCode'] === '0';
|
|
11984
11781
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -11986,7 +11783,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11986
11783
|
return data['parent'] === '0';
|
|
11987
11784
|
}; // 所属营销区域 树节点不能点判断
|
|
11988
11785
|
formatSource(x, 0, 3, tableSearchForm);
|
|
11989
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm, ['
|
|
11786
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11990
11787
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11991
11788
|
});
|
|
11992
11789
|
modalTableProps = _objectSpread2({
|
|
@@ -12216,7 +12013,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12216
12013
|
name: 'qp-officeTelephone-like',
|
|
12217
12014
|
label: '手机号'
|
|
12218
12015
|
}];
|
|
12219
|
-
var
|
|
12016
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12220
12017
|
querySelectHeadersList: querySelectHeadersList,
|
|
12221
12018
|
extralHeaders: extralHeaders
|
|
12222
12019
|
});
|
|
@@ -12224,7 +12021,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12224
12021
|
pageSize: 5000,
|
|
12225
12022
|
currentPage: 1,
|
|
12226
12023
|
'qp-companyType-eq': 20
|
|
12227
|
-
}, getQueryHeadersItem(
|
|
12024
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
|
|
12228
12025
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12229
12026
|
});
|
|
12230
12027
|
modalTableProps = _objectSpread2({
|
|
@@ -12333,13 +12130,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12333
12130
|
name: 'qp-officeTelephone-like',
|
|
12334
12131
|
label: '手机号'
|
|
12335
12132
|
}]);
|
|
12336
|
-
var
|
|
12133
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12337
12134
|
querySelectHeadersList: querySelectHeadersList,
|
|
12338
12135
|
extralHeaders: extralHeaders
|
|
12339
12136
|
});
|
|
12340
12137
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12341
12138
|
'orgViewCode': 'administrative-organization-view'
|
|
12342
|
-
}, getQueryHeadersItem(
|
|
12139
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
|
|
12343
12140
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12344
12141
|
});
|
|
12345
12142
|
modalTableProps = _objectSpread2({
|
|
@@ -12486,17 +12283,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12486
12283
|
name: 'qp-remark-like',
|
|
12487
12284
|
label: '备注'
|
|
12488
12285
|
}];
|
|
12489
|
-
var
|
|
12286
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12490
12287
|
querySelectHeadersList: querySelectHeadersList,
|
|
12491
12288
|
extralHeaders: extralHeaders
|
|
12492
12289
|
});
|
|
12493
12290
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12494
12291
|
pageSize: 5000,
|
|
12495
12292
|
currentPage: 1
|
|
12496
|
-
}, getQueryHeadersItem(
|
|
12293
|
+
}, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12497
12294
|
pageSize: 5000,
|
|
12498
12295
|
currentPage: 1
|
|
12499
|
-
}, getQueryHeadersItem(
|
|
12296
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12500
12297
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12501
12298
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12502
12299
|
});
|
|
@@ -12666,14 +12463,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12666
12463
|
}
|
|
12667
12464
|
}
|
|
12668
12465
|
}];
|
|
12669
|
-
var
|
|
12466
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12670
12467
|
querySelectHeadersList: querySelectHeadersList,
|
|
12671
12468
|
extralHeaders: extralHeaders
|
|
12672
12469
|
});
|
|
12673
12470
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12674
12471
|
pageSize: 5000,
|
|
12675
12472
|
currentPage: 1
|
|
12676
|
-
}, getQueryHeadersItem(
|
|
12473
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12677
12474
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12678
12475
|
});
|
|
12679
12476
|
modalTableProps = _objectSpread2({
|
|
@@ -12770,7 +12567,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12770
12567
|
}
|
|
12771
12568
|
}
|
|
12772
12569
|
}];
|
|
12773
|
-
var
|
|
12570
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12774
12571
|
querySelectHeadersList: querySelectHeadersList,
|
|
12775
12572
|
extralHeaders: extralHeaders
|
|
12776
12573
|
});
|
|
@@ -12778,7 +12575,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12778
12575
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12779
12576
|
'qp-realOrg-eq': true,
|
|
12780
12577
|
'qp-status-eq': 10
|
|
12781
|
-
}, getQueryHeadersItem(
|
|
12578
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12782
12579
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12783
12580
|
});
|
|
12784
12581
|
modalTableProps = _objectSpread2({
|
|
@@ -12884,13 +12681,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12884
12681
|
},
|
|
12885
12682
|
initialSource: nodeType
|
|
12886
12683
|
}];
|
|
12887
|
-
var
|
|
12684
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12888
12685
|
querySelectHeadersList: querySelectHeadersList,
|
|
12889
12686
|
extralHeaders: extralHeaders
|
|
12890
12687
|
});
|
|
12891
12688
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12892
12689
|
'qp-status-eq': 10
|
|
12893
|
-
}, getQueryHeadersItem(
|
|
12690
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12894
12691
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12895
12692
|
});
|
|
12896
12693
|
modalTableProps = _objectSpread2({
|
|
@@ -13216,13 +13013,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13216
13013
|
},
|
|
13217
13014
|
initialSource: nodeType
|
|
13218
13015
|
}];
|
|
13219
|
-
var
|
|
13016
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13220
13017
|
querySelectHeadersList: querySelectHeadersList,
|
|
13221
13018
|
extralHeaders: extralHeaders
|
|
13222
13019
|
});
|
|
13223
13020
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13224
13021
|
'qp-status-eq': 10
|
|
13225
|
-
}, getQueryHeadersItem(
|
|
13022
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13226
13023
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13227
13024
|
});
|
|
13228
13025
|
modalTableProps = _objectSpread2({
|
|
@@ -14167,9 +13964,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14167
13964
|
value = _useState8[0],
|
|
14168
13965
|
setValue = _useState8[1];
|
|
14169
13966
|
var _useState9 = useState([]),
|
|
14170
|
-
|
|
14171
|
-
propertyList =
|
|
14172
|
-
setPropertyList =
|
|
13967
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
13968
|
+
propertyList = _useState0[0],
|
|
13969
|
+
setPropertyList = _useState0[1];
|
|
14173
13970
|
useEffect(function () {
|
|
14174
13971
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14175
13972
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14693,46 +14490,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14693
14490
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14694
14491
|
headers: headers
|
|
14695
14492
|
}).then(/*#__PURE__*/function () {
|
|
14696
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14493
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14697
14494
|
var _ctx$form;
|
|
14698
14495
|
var resData, coverData, data, dataList;
|
|
14699
|
-
return
|
|
14700
|
-
while (1) switch (_context.
|
|
14496
|
+
return _regenerator().w(function (_context) {
|
|
14497
|
+
while (1) switch (_context.n) {
|
|
14701
14498
|
case 0:
|
|
14702
14499
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14703
14500
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14704
|
-
_context.
|
|
14501
|
+
_context.n = 4;
|
|
14705
14502
|
break;
|
|
14706
14503
|
}
|
|
14707
14504
|
data = resData.data;
|
|
14708
14505
|
if (!remoteSource.converter) {
|
|
14709
|
-
_context.
|
|
14506
|
+
_context.n = 2;
|
|
14710
14507
|
break;
|
|
14711
14508
|
}
|
|
14712
|
-
_context.
|
|
14509
|
+
_context.n = 1;
|
|
14713
14510
|
return remoteSource.converter({
|
|
14714
14511
|
data: [data]
|
|
14715
14512
|
});
|
|
14716
|
-
case
|
|
14717
|
-
coverData = _context.
|
|
14718
|
-
_context.
|
|
14513
|
+
case 1:
|
|
14514
|
+
coverData = _context.v;
|
|
14515
|
+
_context.n = 3;
|
|
14719
14516
|
break;
|
|
14720
|
-
case
|
|
14517
|
+
case 2:
|
|
14721
14518
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14722
14519
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14723
14520
|
return _mapSearchTree(ites);
|
|
14724
14521
|
}) || [];
|
|
14725
|
-
case
|
|
14726
|
-
_context.
|
|
14522
|
+
case 3:
|
|
14523
|
+
_context.n = 5;
|
|
14727
14524
|
break;
|
|
14728
|
-
case
|
|
14525
|
+
case 4:
|
|
14729
14526
|
coverData = [];
|
|
14730
|
-
case
|
|
14527
|
+
case 5:
|
|
14731
14528
|
setTreeData(coverData);
|
|
14732
14529
|
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();
|
|
14530
|
+
case 6:
|
|
14531
|
+
return _context.a(2);
|
|
14736
14532
|
}
|
|
14737
14533
|
}, _callee);
|
|
14738
14534
|
}));
|
|
@@ -19034,38 +18830,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19034
18830
|
};
|
|
19035
18831
|
var refs = useRef(null);
|
|
19036
18832
|
var _useState9 = useState(''),
|
|
19037
|
-
|
|
19038
|
-
pagePath =
|
|
19039
|
-
setPagePath =
|
|
18833
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
18834
|
+
pagePath = _useState0[0],
|
|
18835
|
+
setPagePath = _useState0[1];
|
|
19040
18836
|
var _useLocation = useLocation(),
|
|
19041
18837
|
pathname = _useLocation.pathname,
|
|
19042
18838
|
_useLocation$state = _useLocation.state,
|
|
19043
18839
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
19044
|
-
var
|
|
19045
|
-
|
|
19046
|
-
isFullScreen =
|
|
19047
|
-
setIsFnllScreen =
|
|
18840
|
+
var _useState1 = useState(false),
|
|
18841
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
18842
|
+
isFullScreen = _useState10[0],
|
|
18843
|
+
setIsFnllScreen = _useState10[1];
|
|
19048
18844
|
// @ts-nocheck
|
|
19049
18845
|
var value = props;
|
|
19050
18846
|
var _props$fields = props.fields,
|
|
19051
18847
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19052
|
-
var
|
|
19053
|
-
|
|
19054
|
-
showColumn =
|
|
19055
|
-
setShowColumns =
|
|
18848
|
+
var _useState11 = useState([]),
|
|
18849
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
18850
|
+
showColumn = _useState12[0],
|
|
18851
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19056
18852
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19057
|
-
var
|
|
18853
|
+
var _useState13 = useState(originSearchFields),
|
|
18854
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
18855
|
+
showSearchFields = _useState14[0],
|
|
18856
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
18857
|
+
var _useState15 = useState([]),
|
|
19058
18858
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
var _useState17 = useState(
|
|
18859
|
+
showExportColumn = _useState16[0],
|
|
18860
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
18861
|
+
var _useState17 = useState(''),
|
|
19062
18862
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
var _useState19 = useState(''),
|
|
19066
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19067
|
-
height = _useState20[0],
|
|
19068
|
-
setHeight = _useState20[1];
|
|
18863
|
+
height = _useState18[0],
|
|
18864
|
+
setHeight = _useState18[1];
|
|
19069
18865
|
var sortTableRef = useRef(null);
|
|
19070
18866
|
var searchTableRef = useRef(null);
|
|
19071
18867
|
var exportTableRef = useRef(null);
|
|
@@ -20113,22 +19909,19 @@ function outLogin(_x) {
|
|
|
20113
19909
|
return _outLogin.apply(this, arguments);
|
|
20114
19910
|
}
|
|
20115
19911
|
function _outLogin() {
|
|
20116
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
19912
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20117
19913
|
var res;
|
|
20118
|
-
return
|
|
20119
|
-
while (1) switch (_context.
|
|
19914
|
+
return _regenerator().w(function (_context) {
|
|
19915
|
+
while (1) switch (_context.n) {
|
|
20120
19916
|
case 0:
|
|
20121
|
-
_context.
|
|
19917
|
+
_context.n = 1;
|
|
20122
19918
|
return requestUtil({
|
|
20123
19919
|
url: '/user/web/loginOut',
|
|
20124
19920
|
method: 'GET'
|
|
20125
19921
|
});
|
|
20126
|
-
case
|
|
20127
|
-
res = _context.
|
|
20128
|
-
return _context.
|
|
20129
|
-
case 4:
|
|
20130
|
-
case "end":
|
|
20131
|
-
return _context.stop();
|
|
19922
|
+
case 1:
|
|
19923
|
+
res = _context.v;
|
|
19924
|
+
return _context.a(2, res);
|
|
20132
19925
|
}
|
|
20133
19926
|
}, _callee);
|
|
20134
19927
|
}));
|
|
@@ -20255,20 +20048,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20255
20048
|
});
|
|
20256
20049
|
};
|
|
20257
20050
|
var loginOut = /*#__PURE__*/function () {
|
|
20258
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20051
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20259
20052
|
var sessionId;
|
|
20260
|
-
return
|
|
20261
|
-
while (1) switch (_context.
|
|
20053
|
+
return _regenerator().w(function (_context) {
|
|
20054
|
+
while (1) switch (_context.n) {
|
|
20262
20055
|
case 0:
|
|
20263
|
-
_context.
|
|
20056
|
+
_context.n = 1;
|
|
20264
20057
|
return getSessionId();
|
|
20265
|
-
case
|
|
20266
|
-
sessionId = _context.
|
|
20267
|
-
_context.
|
|
20058
|
+
case 1:
|
|
20059
|
+
sessionId = _context.v;
|
|
20060
|
+
_context.n = 2;
|
|
20268
20061
|
return outLogin({
|
|
20269
20062
|
sessionId: sessionId
|
|
20270
20063
|
});
|
|
20271
|
-
case
|
|
20064
|
+
case 2:
|
|
20272
20065
|
// @ts-ignore
|
|
20273
20066
|
if (BUILD_TYPE) {
|
|
20274
20067
|
message$1.success('退出登录成功');
|
|
@@ -20278,9 +20071,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20278
20071
|
} else {
|
|
20279
20072
|
setLoginOutPath();
|
|
20280
20073
|
}
|
|
20281
|
-
case
|
|
20282
|
-
|
|
20283
|
-
return _context.stop();
|
|
20074
|
+
case 3:
|
|
20075
|
+
return _context.a(2);
|
|
20284
20076
|
}
|
|
20285
20077
|
}, _callee);
|
|
20286
20078
|
}));
|
|
@@ -20367,18 +20159,15 @@ function getStoreByName(_x) {
|
|
|
20367
20159
|
return _getStoreByName.apply(this, arguments);
|
|
20368
20160
|
}
|
|
20369
20161
|
function _getStoreByName() {
|
|
20370
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20371
|
-
return
|
|
20372
|
-
while (1) switch (_context.
|
|
20162
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20163
|
+
return _regenerator().w(function (_context) {
|
|
20164
|
+
while (1) switch (_context.n) {
|
|
20373
20165
|
case 0:
|
|
20374
|
-
return _context.
|
|
20166
|
+
return _context.a(2, requestUtil({
|
|
20375
20167
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20376
20168
|
method: 'GET',
|
|
20377
20169
|
params: _objectSpread2({}, params)
|
|
20378
20170
|
}));
|
|
20379
|
-
case 1:
|
|
20380
|
-
case "end":
|
|
20381
|
-
return _context.stop();
|
|
20382
20171
|
}
|
|
20383
20172
|
}, _callee);
|
|
20384
20173
|
}));
|
|
@@ -20413,33 +20202,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20413
20202
|
openSelect = _useState8[0],
|
|
20414
20203
|
setOpenSelect = _useState8[1];
|
|
20415
20204
|
var _useState9 = useState([]),
|
|
20416
|
-
|
|
20417
|
-
options =
|
|
20418
|
-
setOptions =
|
|
20419
|
-
var
|
|
20205
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20206
|
+
options = _useState0[0],
|
|
20207
|
+
setOptions = _useState0[1];
|
|
20208
|
+
var _useState1 = useState([]),
|
|
20209
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20210
|
+
rescouse = _useState10[0],
|
|
20211
|
+
setRescouse = _useState10[1];
|
|
20212
|
+
var _useState11 = useState(''),
|
|
20420
20213
|
_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([{
|
|
20214
|
+
searchValue = _useState12[0],
|
|
20215
|
+
setSearchValue = _useState12[1];
|
|
20216
|
+
var _useState13 = useState([{
|
|
20428
20217
|
label: name,
|
|
20429
20218
|
value: code
|
|
20430
20219
|
}]),
|
|
20431
|
-
|
|
20432
|
-
store =
|
|
20433
|
-
setStore =
|
|
20220
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20221
|
+
store = _useState14[0],
|
|
20222
|
+
setStore = _useState14[1];
|
|
20434
20223
|
function fetchUserList(_x, _x2) {
|
|
20435
20224
|
return _fetchUserList.apply(this, arguments);
|
|
20436
20225
|
}
|
|
20437
20226
|
function _fetchUserList() {
|
|
20438
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20439
|
-
return
|
|
20440
|
-
while (1) switch (_context3.
|
|
20227
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20228
|
+
return _regenerator().w(function (_context3) {
|
|
20229
|
+
while (1) switch (_context3.n) {
|
|
20441
20230
|
case 0:
|
|
20442
|
-
return _context3.
|
|
20231
|
+
return _context3.a(2, getStoreByName({
|
|
20443
20232
|
orgName: storeName ? storeName : undefined,
|
|
20444
20233
|
platCompanyCode: init ? undefined : key,
|
|
20445
20234
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20458,9 +20247,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20458
20247
|
};
|
|
20459
20248
|
});
|
|
20460
20249
|
}));
|
|
20461
|
-
case 1:
|
|
20462
|
-
case "end":
|
|
20463
|
-
return _context3.stop();
|
|
20464
20250
|
}
|
|
20465
20251
|
}, _callee3);
|
|
20466
20252
|
}));
|
|
@@ -20483,20 +20269,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20483
20269
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20484
20270
|
}, [debounceTimeout, key]);
|
|
20485
20271
|
var changeInput = /*#__PURE__*/function () {
|
|
20486
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20272
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20487
20273
|
var res;
|
|
20488
|
-
return
|
|
20489
|
-
while (1) switch (_context.
|
|
20274
|
+
return _regenerator().w(function (_context) {
|
|
20275
|
+
while (1) switch (_context.n) {
|
|
20490
20276
|
case 0:
|
|
20491
|
-
_context.
|
|
20277
|
+
_context.n = 1;
|
|
20492
20278
|
return debounceFetcher(str);
|
|
20493
|
-
case
|
|
20494
|
-
res = _context.
|
|
20279
|
+
case 1:
|
|
20280
|
+
res = _context.v;
|
|
20495
20281
|
setOptions(res);
|
|
20496
20282
|
setRescouse(res);
|
|
20497
|
-
case
|
|
20498
|
-
|
|
20499
|
-
return _context.stop();
|
|
20283
|
+
case 2:
|
|
20284
|
+
return _context.a(2);
|
|
20500
20285
|
}
|
|
20501
20286
|
}, _callee);
|
|
20502
20287
|
}));
|
|
@@ -20505,15 +20290,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20505
20290
|
};
|
|
20506
20291
|
}();
|
|
20507
20292
|
useEffect(function () {
|
|
20508
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20293
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20509
20294
|
var res;
|
|
20510
|
-
return
|
|
20511
|
-
while (1) switch (_context2.
|
|
20295
|
+
return _regenerator().w(function (_context2) {
|
|
20296
|
+
while (1) switch (_context2.n) {
|
|
20512
20297
|
case 0:
|
|
20513
|
-
_context2.
|
|
20298
|
+
_context2.n = 1;
|
|
20514
20299
|
return fetchUserList(undefined, true);
|
|
20515
|
-
case
|
|
20516
|
-
res = _context2.
|
|
20300
|
+
case 1:
|
|
20301
|
+
res = _context2.v;
|
|
20517
20302
|
res.map(function (item, indexNumber) {
|
|
20518
20303
|
if (item.label === name) {
|
|
20519
20304
|
setIndex(indexNumber);
|
|
@@ -20529,9 +20314,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20529
20314
|
});
|
|
20530
20315
|
setOptions(res);
|
|
20531
20316
|
setRescouse(res);
|
|
20532
|
-
case
|
|
20533
|
-
|
|
20534
|
-
return _context2.stop();
|
|
20317
|
+
case 2:
|
|
20318
|
+
return _context2.a(2);
|
|
20535
20319
|
}
|
|
20536
20320
|
}, _callee2);
|
|
20537
20321
|
}))();
|
|
@@ -21580,25 +21364,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21580
21364
|
currentOneLevel = _useState8[0],
|
|
21581
21365
|
setCurrentOneLevel = _useState8[1];
|
|
21582
21366
|
var _useState9 = useState([]),
|
|
21583
|
-
|
|
21584
|
-
SearhData =
|
|
21585
|
-
setSearchMenuData =
|
|
21586
|
-
var
|
|
21367
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21368
|
+
SearhData = _useState0[0],
|
|
21369
|
+
setSearchMenuData = _useState0[1];
|
|
21370
|
+
var _useState1 = useState(600),
|
|
21371
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21372
|
+
rightMenuHeight = _useState10[0],
|
|
21373
|
+
setHeight = _useState10[1];
|
|
21374
|
+
var _useState11 = useState(900),
|
|
21587
21375
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21588
|
-
|
|
21589
|
-
|
|
21590
|
-
var _useState13 = useState(
|
|
21376
|
+
drawHeight = _useState12[0],
|
|
21377
|
+
setDrawHeight = _useState12[1];
|
|
21378
|
+
var _useState13 = useState(false),
|
|
21591
21379
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21592
|
-
|
|
21593
|
-
|
|
21380
|
+
moreBtnShow = _useState14[0],
|
|
21381
|
+
setMoreBtnShow = _useState14[1];
|
|
21594
21382
|
var _useState15 = useState(false),
|
|
21595
21383
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
var _useState17 = useState(false),
|
|
21599
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21600
|
-
showScroll = _useState18[0],
|
|
21601
|
-
setShowScroll = _useState18[1];
|
|
21384
|
+
showScroll = _useState16[0],
|
|
21385
|
+
setShowScroll = _useState16[1];
|
|
21602
21386
|
useEffect(function () {
|
|
21603
21387
|
var _originRoutes$find;
|
|
21604
21388
|
getMenuContentHeight();
|
|
@@ -23209,14 +22993,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23209
22993
|
},
|
|
23210
22994
|
menu: {
|
|
23211
22995
|
request: function () {
|
|
23212
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23213
|
-
return
|
|
23214
|
-
while (1) switch (_context.
|
|
22996
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
22997
|
+
return _regenerator().w(function (_context) {
|
|
22998
|
+
while (1) switch (_context.n) {
|
|
23215
22999
|
case 0:
|
|
23216
|
-
return _context.
|
|
23217
|
-
case 1:
|
|
23218
|
-
case "end":
|
|
23219
|
-
return _context.stop();
|
|
23000
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23220
23001
|
}
|
|
23221
23002
|
}, _callee);
|
|
23222
23003
|
}));
|
|
@@ -23621,31 +23402,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23621
23402
|
multiTableData = _useState8[0],
|
|
23622
23403
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23623
23404
|
var _useState9 = useState(10),
|
|
23624
|
-
|
|
23625
|
-
viewCount =
|
|
23626
|
-
setViewCount =
|
|
23405
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
23406
|
+
viewCount = _useState0[0],
|
|
23407
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23627
23408
|
var itemWidth = 100; // 表格每一项宽度
|
|
23628
|
-
var
|
|
23629
|
-
|
|
23630
|
-
realColHeaderWidth =
|
|
23631
|
-
setLeftWidth =
|
|
23409
|
+
var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23410
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
23411
|
+
realColHeaderWidth = _useState10[0],
|
|
23412
|
+
setLeftWidth = _useState10[1];
|
|
23632
23413
|
var viewPort = useRef(null);
|
|
23633
23414
|
var topScrollBar = useRef(null);
|
|
23634
23415
|
var leftTableRef = useRef(null);
|
|
23635
23416
|
//起始渲染item
|
|
23636
|
-
var
|
|
23637
|
-
|
|
23638
|
-
startIndex =
|
|
23639
|
-
setStartIndex =
|
|
23417
|
+
var _useState11 = useState(0),
|
|
23418
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23419
|
+
startIndex = _useState12[0],
|
|
23420
|
+
setStartIndex = _useState12[1];
|
|
23640
23421
|
//结束渲染item
|
|
23641
23422
|
var endIndex = useMemo(function () {
|
|
23642
23423
|
return startIndex + viewCount;
|
|
23643
23424
|
}, [startIndex, viewCount]);
|
|
23644
23425
|
//表格偏移量
|
|
23645
|
-
var
|
|
23646
|
-
|
|
23647
|
-
offsetWidth =
|
|
23648
|
-
setOffset =
|
|
23426
|
+
var _useState13 = useState(0),
|
|
23427
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23428
|
+
offsetWidth = _useState14[0],
|
|
23429
|
+
setOffset = _useState14[1];
|
|
23649
23430
|
useEffect(function () {
|
|
23650
23431
|
setTimeout(function () {
|
|
23651
23432
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30949,11 +30730,11 @@ var valueType = {
|
|
|
30949
30730
|
};
|
|
30950
30731
|
|
|
30951
30732
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30952
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30953
|
-
return
|
|
30954
|
-
while (1) switch (_context.
|
|
30733
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
30734
|
+
return _regenerator().w(function (_context) {
|
|
30735
|
+
while (1) switch (_context.n) {
|
|
30955
30736
|
case 0:
|
|
30956
|
-
_context.
|
|
30737
|
+
_context.n = 1;
|
|
30957
30738
|
return request$2({
|
|
30958
30739
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30959
30740
|
converter: function converter(_ref2) {
|
|
@@ -30966,11 +30747,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30966
30747
|
});
|
|
30967
30748
|
}
|
|
30968
30749
|
});
|
|
30969
|
-
case
|
|
30970
|
-
return _context.
|
|
30971
|
-
case 3:
|
|
30972
|
-
case "end":
|
|
30973
|
-
return _context.stop();
|
|
30750
|
+
case 1:
|
|
30751
|
+
return _context.a(2, _context.v);
|
|
30974
30752
|
}
|
|
30975
30753
|
}, _callee);
|
|
30976
30754
|
}));
|
|
@@ -31017,12 +30795,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31017
30795
|
value: false
|
|
31018
30796
|
}];
|
|
31019
30797
|
var ref = useRef();
|
|
31020
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31021
|
-
var _ref$current, source;
|
|
31022
|
-
return
|
|
31023
|
-
while (1) switch (_context.
|
|
30798
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
30799
|
+
var _ref$current, source, _t, _t2;
|
|
30800
|
+
return _regenerator().w(function (_context) {
|
|
30801
|
+
while (1) switch (_context.n) {
|
|
31024
30802
|
case 0:
|
|
31025
|
-
_context.
|
|
30803
|
+
_context.n = 1;
|
|
31026
30804
|
return setIsShowAndType(function (prev) {
|
|
31027
30805
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31028
30806
|
return {
|
|
@@ -31033,40 +30811,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31033
30811
|
}
|
|
31034
30812
|
return prev;
|
|
31035
30813
|
});
|
|
31036
|
-
case
|
|
30814
|
+
case 1:
|
|
31037
30815
|
if (!record.dictionaryCode) {
|
|
31038
|
-
_context.
|
|
30816
|
+
_context.n = 7;
|
|
31039
30817
|
break;
|
|
31040
30818
|
}
|
|
31041
30819
|
if (!(record.choiceType == 20)) {
|
|
31042
|
-
_context.
|
|
30820
|
+
_context.n = 2;
|
|
31043
30821
|
break;
|
|
31044
30822
|
}
|
|
31045
|
-
|
|
31046
|
-
_context.
|
|
30823
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
30824
|
+
_context.n = 6;
|
|
31047
30825
|
break;
|
|
31048
|
-
case
|
|
30826
|
+
case 2:
|
|
31049
30827
|
if (!(record.choiceType == 30)) {
|
|
31050
|
-
_context.
|
|
30828
|
+
_context.n = 4;
|
|
31051
30829
|
break;
|
|
31052
30830
|
}
|
|
31053
|
-
_context.
|
|
30831
|
+
_context.n = 3;
|
|
31054
30832
|
return getDynamicDict(record.dictionaryCode);
|
|
31055
|
-
case
|
|
31056
|
-
|
|
31057
|
-
_context.
|
|
30833
|
+
case 3:
|
|
30834
|
+
_t2 = _context.v;
|
|
30835
|
+
_context.n = 5;
|
|
31058
30836
|
break;
|
|
31059
|
-
case
|
|
31060
|
-
|
|
31061
|
-
case
|
|
31062
|
-
|
|
31063
|
-
case
|
|
31064
|
-
source =
|
|
30837
|
+
case 4:
|
|
30838
|
+
_t2 = [];
|
|
30839
|
+
case 5:
|
|
30840
|
+
_t = _t2;
|
|
30841
|
+
case 6:
|
|
30842
|
+
source = _t;
|
|
31065
30843
|
// @ts-ignore
|
|
31066
30844
|
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();
|
|
30845
|
+
case 7:
|
|
30846
|
+
return _context.a(2);
|
|
31070
30847
|
}
|
|
31071
30848
|
}, _callee);
|
|
31072
30849
|
})));
|
|
@@ -31131,10 +30908,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31131
30908
|
source: {
|
|
31132
30909
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31133
30910
|
type: function () {
|
|
31134
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
30911
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31135
30912
|
var form, values, name, relates, source;
|
|
31136
|
-
return
|
|
31137
|
-
while (1) switch (_context2.
|
|
30913
|
+
return _regenerator().w(function (_context2) {
|
|
30914
|
+
while (1) switch (_context2.n) {
|
|
31138
30915
|
case 0:
|
|
31139
30916
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31140
30917
|
if (values[0]) {
|
|
@@ -31143,19 +30920,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31143
30920
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31144
30921
|
}
|
|
31145
30922
|
if (!values[1]) {
|
|
31146
|
-
_context2.
|
|
30923
|
+
_context2.n = 2;
|
|
31147
30924
|
break;
|
|
31148
30925
|
}
|
|
31149
|
-
_context2.
|
|
30926
|
+
_context2.n = 1;
|
|
31150
30927
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31151
|
-
case
|
|
31152
|
-
source = _context2.
|
|
30928
|
+
case 1:
|
|
30929
|
+
source = _context2.v;
|
|
31153
30930
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31154
30931
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31155
30932
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31156
|
-
case
|
|
31157
|
-
|
|
31158
|
-
return _context2.stop();
|
|
30933
|
+
case 2:
|
|
30934
|
+
return _context2.a(2);
|
|
31159
30935
|
}
|
|
31160
30936
|
}, _callee2);
|
|
31161
30937
|
}));
|
|
@@ -31611,25 +31387,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31611
31387
|
source: {
|
|
31612
31388
|
relates: ['choiceType', 'inputType'],
|
|
31613
31389
|
type: function () {
|
|
31614
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31390
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31615
31391
|
var values, name, form, source;
|
|
31616
|
-
return
|
|
31617
|
-
while (1) switch (_context3.
|
|
31392
|
+
return _regenerator().w(function (_context3) {
|
|
31393
|
+
while (1) switch (_context3.n) {
|
|
31618
31394
|
case 0:
|
|
31619
|
-
values =
|
|
31395
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31620
31396
|
if (values[1] === 40) {
|
|
31621
31397
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31622
31398
|
form.setFieldVisible(name, false);
|
|
31623
31399
|
}
|
|
31624
31400
|
if (!(values[0] === 30)) {
|
|
31625
|
-
_context3.
|
|
31401
|
+
_context3.n = 2;
|
|
31626
31402
|
break;
|
|
31627
31403
|
}
|
|
31628
|
-
_context3.
|
|
31404
|
+
_context3.n = 1;
|
|
31629
31405
|
return request$2({
|
|
31630
31406
|
url: '/basic/dictDynamicItem/queryList',
|
|
31631
|
-
converter: function converter(
|
|
31632
|
-
var data =
|
|
31407
|
+
converter: function converter(_ref1) {
|
|
31408
|
+
var data = _ref1.data;
|
|
31633
31409
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31634
31410
|
return {
|
|
31635
31411
|
text: d.dictCode,
|
|
@@ -31638,17 +31414,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31638
31414
|
});
|
|
31639
31415
|
}
|
|
31640
31416
|
});
|
|
31641
|
-
case
|
|
31642
|
-
source = _context3.
|
|
31417
|
+
case 1:
|
|
31418
|
+
source = _context3.v;
|
|
31643
31419
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31644
31420
|
form.setFieldVisible(name, true);
|
|
31645
|
-
_context3.
|
|
31421
|
+
_context3.n = 3;
|
|
31646
31422
|
break;
|
|
31647
|
-
case
|
|
31423
|
+
case 2:
|
|
31648
31424
|
form.setFieldVisible(name, false);
|
|
31649
|
-
case
|
|
31650
|
-
|
|
31651
|
-
return _context3.stop();
|
|
31425
|
+
case 3:
|
|
31426
|
+
return _context3.a(2);
|
|
31652
31427
|
}
|
|
31653
31428
|
}, _callee3);
|
|
31654
31429
|
}));
|
|
@@ -31663,8 +31438,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31663
31438
|
name: 'enumeration',
|
|
31664
31439
|
label: '维护自定义选项',
|
|
31665
31440
|
field: {
|
|
31666
|
-
type: function type(
|
|
31667
|
-
var form =
|
|
31441
|
+
type: function type(_ref10) {
|
|
31442
|
+
var form = _ref10.form;
|
|
31668
31443
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31669
31444
|
type: 'link',
|
|
31670
31445
|
onClick: function onClick() {
|
|
@@ -31690,10 +31465,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31690
31465
|
dependency: {
|
|
31691
31466
|
source: {
|
|
31692
31467
|
relates: ['choiceType'],
|
|
31693
|
-
type: function type(
|
|
31694
|
-
var values =
|
|
31695
|
-
name =
|
|
31696
|
-
form =
|
|
31468
|
+
type: function type(_ref11) {
|
|
31469
|
+
var values = _ref11.values,
|
|
31470
|
+
name = _ref11.name,
|
|
31471
|
+
form = _ref11.form;
|
|
31697
31472
|
if (values[0] === 10) {
|
|
31698
31473
|
form.setFieldVisible(name, true);
|
|
31699
31474
|
} else {
|
|
@@ -31709,10 +31484,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31709
31484
|
dependency: {
|
|
31710
31485
|
visible: {
|
|
31711
31486
|
relates: ['choiceType'],
|
|
31712
|
-
type: function type(
|
|
31713
|
-
var name =
|
|
31714
|
-
values =
|
|
31715
|
-
form =
|
|
31487
|
+
type: function type(_ref12) {
|
|
31488
|
+
var name = _ref12.name,
|
|
31489
|
+
values = _ref12.values,
|
|
31490
|
+
form = _ref12.form;
|
|
31716
31491
|
if (values[0] == 330) {
|
|
31717
31492
|
form.setFieldVisible(name, true);
|
|
31718
31493
|
} else {
|
|
@@ -31736,8 +31511,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31736
31511
|
params: {
|
|
31737
31512
|
'qp-businessType-eq': record.businessType
|
|
31738
31513
|
},
|
|
31739
|
-
converter: function converter(
|
|
31740
|
-
var data =
|
|
31514
|
+
converter: function converter(_ref13) {
|
|
31515
|
+
var data = _ref13.data;
|
|
31741
31516
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31742
31517
|
return {
|
|
31743
31518
|
text: d.name,
|
|
@@ -31777,8 +31552,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31777
31552
|
'qp-businessType-eq': record.businessType,
|
|
31778
31553
|
'qp-status-eq': 1
|
|
31779
31554
|
},
|
|
31780
|
-
converter: function converter(
|
|
31781
|
-
var data =
|
|
31555
|
+
converter: function converter(_ref14) {
|
|
31556
|
+
var data = _ref14.data;
|
|
31782
31557
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31783
31558
|
var _d$code;
|
|
31784
31559
|
return {
|
|
@@ -31806,8 +31581,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31806
31581
|
remoteSource: {
|
|
31807
31582
|
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
31583
|
method: 'get',
|
|
31809
|
-
converter: function converter(
|
|
31810
|
-
var data =
|
|
31584
|
+
converter: function converter(_ref15) {
|
|
31585
|
+
var data = _ref15.data;
|
|
31811
31586
|
if (lineDetail.moduleType == 1) {
|
|
31812
31587
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31813
31588
|
return {
|
|
@@ -31833,16 +31608,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31833
31608
|
width: 900,
|
|
31834
31609
|
maskClosable: false,
|
|
31835
31610
|
onOk: function () {
|
|
31836
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
31611
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
31837
31612
|
var _ref$current4, _res$editableStatus;
|
|
31838
31613
|
var res, _res$defaultValue;
|
|
31839
|
-
return
|
|
31840
|
-
while (1) switch (_context4.
|
|
31614
|
+
return _regenerator().w(function (_context4) {
|
|
31615
|
+
while (1) switch (_context4.n) {
|
|
31841
31616
|
case 0:
|
|
31842
|
-
_context4.
|
|
31617
|
+
_context4.n = 1;
|
|
31843
31618
|
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.
|
|
31619
|
+
case 1:
|
|
31620
|
+
res = _context4.v;
|
|
31846
31621
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31847
31622
|
res.fieldGroup = record.fieldGroup;
|
|
31848
31623
|
res.businessType = record.businessType;
|
|
@@ -31869,7 +31644,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31869
31644
|
delete res.formula;
|
|
31870
31645
|
delete res.showValue;
|
|
31871
31646
|
if (!(mode === 'create')) {
|
|
31872
|
-
_context4.
|
|
31647
|
+
_context4.n = 2;
|
|
31873
31648
|
break;
|
|
31874
31649
|
}
|
|
31875
31650
|
request$2({
|
|
@@ -31881,8 +31656,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31881
31656
|
onParentOk();
|
|
31882
31657
|
}
|
|
31883
31658
|
});
|
|
31884
|
-
return _context4.
|
|
31885
|
-
case
|
|
31659
|
+
return _context4.a(2);
|
|
31660
|
+
case 2:
|
|
31886
31661
|
request$2({
|
|
31887
31662
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31888
31663
|
method: 'PATCH',
|
|
@@ -31892,9 +31667,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31892
31667
|
onParentOk();
|
|
31893
31668
|
}
|
|
31894
31669
|
});
|
|
31895
|
-
case
|
|
31896
|
-
|
|
31897
|
-
return _context4.stop();
|
|
31670
|
+
case 3:
|
|
31671
|
+
return _context4.a(2);
|
|
31898
31672
|
}
|
|
31899
31673
|
}, _callee4);
|
|
31900
31674
|
}));
|
|
@@ -32350,21 +32124,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32350
32124
|
jsonEditorVal = _useState8[0],
|
|
32351
32125
|
setJsonEditorVal = _useState8[1];
|
|
32352
32126
|
var _useState9 = useState({}),
|
|
32353
|
-
|
|
32354
|
-
moduleParams =
|
|
32355
|
-
setModuleParams =
|
|
32356
|
-
var
|
|
32127
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32128
|
+
moduleParams = _useState0[0],
|
|
32129
|
+
setModuleParams = _useState0[1];
|
|
32130
|
+
var _useState1 = useState('main'),
|
|
32131
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32132
|
+
activeKey = _useState10[0],
|
|
32133
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32134
|
+
var _useState11 = useState({}),
|
|
32357
32135
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32358
|
-
|
|
32359
|
-
|
|
32360
|
-
var _useState13 = useState(
|
|
32136
|
+
tablesConfigParams = _useState12[0],
|
|
32137
|
+
setTablesConfigParams = _useState12[1];
|
|
32138
|
+
var _useState13 = useState([]),
|
|
32361
32139
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
var _useState15 = useState([]),
|
|
32365
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32366
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32367
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32140
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32141
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32368
32142
|
useEffect(function () {
|
|
32369
32143
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32370
32144
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32740,11 +32514,11 @@ function getMetaData(_x) {
|
|
|
32740
32514
|
|
|
32741
32515
|
// 获取数据
|
|
32742
32516
|
function _getMetaData() {
|
|
32743
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32744
|
-
return
|
|
32745
|
-
while (1) switch (_context.
|
|
32517
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
32518
|
+
return _regenerator().w(function (_context) {
|
|
32519
|
+
while (1) switch (_context.n) {
|
|
32746
32520
|
case 0:
|
|
32747
|
-
return _context.
|
|
32521
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32748
32522
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32749
32523
|
params: {
|
|
32750
32524
|
'qp-entityId-eq': id
|
|
@@ -32756,9 +32530,6 @@ function _getMetaData() {
|
|
|
32756
32530
|
reject([]);
|
|
32757
32531
|
});
|
|
32758
32532
|
}));
|
|
32759
|
-
case 1:
|
|
32760
|
-
case "end":
|
|
32761
|
-
return _context.stop();
|
|
32762
32533
|
}
|
|
32763
32534
|
}, _callee);
|
|
32764
32535
|
}));
|
|
@@ -32962,11 +32733,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32962
32733
|
tableState = _useState4[0],
|
|
32963
32734
|
setTableState = _useState4[1];
|
|
32964
32735
|
var handleOpen = /*#__PURE__*/function () {
|
|
32965
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
32736
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32966
32737
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32967
32738
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32968
|
-
return
|
|
32969
|
-
while (1) switch (_context.
|
|
32739
|
+
return _regenerator().w(function (_context) {
|
|
32740
|
+
while (1) switch (_context.n) {
|
|
32970
32741
|
case 0:
|
|
32971
32742
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32972
32743
|
isSearchForm: props.isSearchForm,
|
|
@@ -32974,16 +32745,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32974
32745
|
searchFormData: searchFormData
|
|
32975
32746
|
});
|
|
32976
32747
|
if (requestConfigNew) {
|
|
32977
|
-
_context.
|
|
32748
|
+
_context.n = 1;
|
|
32978
32749
|
break;
|
|
32979
32750
|
}
|
|
32980
|
-
return _context.
|
|
32981
|
-
case
|
|
32751
|
+
return _context.a(2);
|
|
32752
|
+
case 1:
|
|
32982
32753
|
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.
|
|
32754
|
+
_context.n = 2;
|
|
32984
32755
|
return getMetaData(metaDataId);
|
|
32985
|
-
case
|
|
32986
|
-
metaData = _context.
|
|
32756
|
+
case 2:
|
|
32757
|
+
metaData = _context.v;
|
|
32987
32758
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32988
32759
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32989
32760
|
})) || [];
|
|
@@ -33023,9 +32794,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33023
32794
|
// @ts-ignore
|
|
33024
32795
|
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
32796
|
}
|
|
33026
|
-
case
|
|
33027
|
-
|
|
33028
|
-
return _context.stop();
|
|
32797
|
+
case 3:
|
|
32798
|
+
return _context.a(2);
|
|
33029
32799
|
}
|
|
33030
32800
|
}, _callee);
|
|
33031
32801
|
}));
|
|
@@ -33128,7 +32898,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33128
32898
|
}, [requestConfig, tableState.columns]);
|
|
33129
32899
|
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
32900
|
var handleOk = function handleOk(rowData) {
|
|
33131
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
32901
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33132
32902
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33133
32903
|
//多选数据处理
|
|
33134
32904
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33139,9 +32909,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33139
32909
|
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
32910
|
var realSelectedRows = selectedRows;
|
|
33141
32911
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33142
|
-
var _queryTableRef$
|
|
32912
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33143
32913
|
// @ts-ignore
|
|
33144
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
32914
|
+
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
32915
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33146
32916
|
return selectedKesys.includes(s[rowKey]);
|
|
33147
32917
|
});
|
|
@@ -33174,10 +32944,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33174
32944
|
});
|
|
33175
32945
|
}
|
|
33176
32946
|
mappings.map(function (item) {
|
|
33177
|
-
var _props$
|
|
33178
|
-
if (((_props$
|
|
33179
|
-
var _props$
|
|
33180
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
32947
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
32948
|
+
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]) {
|
|
32949
|
+
var _props$customSelector12, _props$customSelector13;
|
|
32950
|
+
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
32951
|
}
|
|
33182
32952
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33183
32953
|
});
|
|
@@ -33232,10 +33002,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33232
33002
|
}
|
|
33233
33003
|
props.onCancel();
|
|
33234
33004
|
//@ts-ignore
|
|
33235
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33005
|
+
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
33006
|
};
|
|
33237
33007
|
var config = useMemo(function () {
|
|
33238
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33008
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33239
33009
|
var returnConfig = {
|
|
33240
33010
|
size: 'small',
|
|
33241
33011
|
needPageHeader: false,
|
|
@@ -33244,7 +33014,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33244
33014
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33245
33015
|
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
33016
|
return v.key || v;
|
|
33247
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33017
|
+
})) || (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
33018
|
} : false,
|
|
33249
33019
|
remoteDataSource: remoteDataSource,
|
|
33250
33020
|
fields: tableState.fields,
|
|
@@ -33252,8 +33022,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33252
33022
|
rowKey: rowKey,
|
|
33253
33023
|
tableProps: !isView && {
|
|
33254
33024
|
rowClassName: function rowClassName(record) {
|
|
33255
|
-
var _props$
|
|
33256
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33025
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33026
|
+
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
33027
|
},
|
|
33258
33028
|
onRow: function onRow(record) {
|
|
33259
33029
|
return {
|
|
@@ -33298,10 +33068,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33298
33068
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33299
33069
|
type: "default",
|
|
33300
33070
|
onClick: function onClick() {
|
|
33301
|
-
var _queryTableRef$
|
|
33071
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33302
33072
|
props.onCancel();
|
|
33303
33073
|
//@ts-ignore
|
|
33304
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33074
|
+
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
33075
|
}
|
|
33306
33076
|
}, "\u53D6\u6D88"))));
|
|
33307
33077
|
});
|
|
@@ -33525,19 +33295,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33525
33295
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33526
33296
|
handSource = _useState2[0],
|
|
33527
33297
|
setHandSource = _useState2[1];
|
|
33528
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33298
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33529
33299
|
var resData, data;
|
|
33530
|
-
return
|
|
33531
|
-
while (1) switch (_context.
|
|
33300
|
+
return _regenerator().w(function (_context) {
|
|
33301
|
+
while (1) switch (_context.n) {
|
|
33532
33302
|
case 0:
|
|
33533
33303
|
if (!(!source && initRequestSource)) {
|
|
33534
|
-
_context.
|
|
33304
|
+
_context.n = 2;
|
|
33535
33305
|
break;
|
|
33536
33306
|
}
|
|
33537
|
-
_context.
|
|
33307
|
+
_context.n = 1;
|
|
33538
33308
|
return initRequestSource();
|
|
33539
|
-
case
|
|
33540
|
-
resData = _context.
|
|
33309
|
+
case 1:
|
|
33310
|
+
resData = _context.v;
|
|
33541
33311
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33542
33312
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33543
33313
|
label: item.text,
|
|
@@ -33545,9 +33315,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33545
33315
|
});
|
|
33546
33316
|
})) || [];
|
|
33547
33317
|
setHandSource(data);
|
|
33548
|
-
case
|
|
33549
|
-
|
|
33550
|
-
return _context.stop();
|
|
33318
|
+
case 2:
|
|
33319
|
+
return _context.a(2);
|
|
33551
33320
|
}
|
|
33552
33321
|
}, _callee);
|
|
33553
33322
|
})), []);
|
|
@@ -33677,20 +33446,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33677
33446
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33678
33447
|
}
|
|
33679
33448
|
function _getRegularThresholdRange() {
|
|
33680
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33681
|
-
return
|
|
33682
|
-
while (1) switch (_context.
|
|
33449
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
33450
|
+
return _regenerator().w(function (_context) {
|
|
33451
|
+
while (1) switch (_context.n) {
|
|
33683
33452
|
case 0:
|
|
33684
|
-
return _context.
|
|
33453
|
+
return _context.a(2, requestUtil({
|
|
33685
33454
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33686
33455
|
method: 'POST',
|
|
33687
33456
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33688
33457
|
queryIdentify: undefined
|
|
33689
33458
|
})
|
|
33690
33459
|
}));
|
|
33691
|
-
case 1:
|
|
33692
|
-
case "end":
|
|
33693
|
-
return _context.stop();
|
|
33694
33460
|
}
|
|
33695
33461
|
}, _callee);
|
|
33696
33462
|
}));
|
|
@@ -33831,24 +33597,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33831
33597
|
};
|
|
33832
33598
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33833
33599
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33834
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33600
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33835
33601
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33836
|
-
return
|
|
33837
|
-
while (1) switch (_context.
|
|
33602
|
+
return _regenerator().w(function (_context) {
|
|
33603
|
+
while (1) switch (_context.n) {
|
|
33838
33604
|
case 0:
|
|
33839
33605
|
if (queryIdentify) {
|
|
33840
|
-
_context.
|
|
33606
|
+
_context.n = 1;
|
|
33841
33607
|
break;
|
|
33842
33608
|
}
|
|
33843
|
-
return _context.
|
|
33844
|
-
case
|
|
33609
|
+
return _context.a(2);
|
|
33610
|
+
case 1:
|
|
33845
33611
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33846
33612
|
extraRequestUrl = '';
|
|
33847
33613
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33848
33614
|
if (!queryIdentityInfo.find(function (item) {
|
|
33849
33615
|
return item.identity == propertyCode;
|
|
33850
33616
|
})) {
|
|
33851
|
-
_context.
|
|
33617
|
+
_context.n = 3;
|
|
33852
33618
|
break;
|
|
33853
33619
|
}
|
|
33854
33620
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33862,15 +33628,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33862
33628
|
if (!needQueryList.some(function (item) {
|
|
33863
33629
|
return !querParams[item] || !querParams[item].length;
|
|
33864
33630
|
})) {
|
|
33865
|
-
_context.
|
|
33631
|
+
_context.n = 2;
|
|
33866
33632
|
break;
|
|
33867
33633
|
}
|
|
33868
|
-
return _context.
|
|
33869
|
-
case
|
|
33634
|
+
return _context.a(2);
|
|
33635
|
+
case 2:
|
|
33870
33636
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33871
33637
|
return item.identity == propertyCode;
|
|
33872
33638
|
}).requestUrl || '';
|
|
33873
|
-
case
|
|
33639
|
+
case 3:
|
|
33874
33640
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33875
33641
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33876
33642
|
querParams = {
|
|
@@ -33881,7 +33647,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33881
33647
|
// querParams = { dictCode: queryIdentify }
|
|
33882
33648
|
}
|
|
33883
33649
|
if (!extraRequestUrl) {
|
|
33884
|
-
_context.
|
|
33650
|
+
_context.n = 4;
|
|
33885
33651
|
break;
|
|
33886
33652
|
}
|
|
33887
33653
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33920,43 +33686,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33920
33686
|
return handleData;
|
|
33921
33687
|
}
|
|
33922
33688
|
});
|
|
33923
|
-
_context.
|
|
33689
|
+
_context.n = 8;
|
|
33924
33690
|
break;
|
|
33925
|
-
case
|
|
33691
|
+
case 4:
|
|
33926
33692
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33927
|
-
_context.
|
|
33693
|
+
_context.n = 5;
|
|
33928
33694
|
break;
|
|
33929
33695
|
}
|
|
33930
33696
|
_this.setState({
|
|
33931
33697
|
thresholdList: queryIdentify
|
|
33932
33698
|
});
|
|
33933
|
-
_context.
|
|
33699
|
+
_context.n = 8;
|
|
33934
33700
|
break;
|
|
33935
|
-
case
|
|
33701
|
+
case 5:
|
|
33936
33702
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33937
|
-
_context.
|
|
33703
|
+
_context.n = 6;
|
|
33938
33704
|
break;
|
|
33939
33705
|
}
|
|
33940
33706
|
// TODO待处理
|
|
33941
33707
|
_this.setState({
|
|
33942
33708
|
thresholdList: []
|
|
33943
33709
|
});
|
|
33944
|
-
_context.
|
|
33710
|
+
_context.n = 8;
|
|
33945
33711
|
break;
|
|
33946
|
-
case
|
|
33712
|
+
case 6:
|
|
33947
33713
|
querParams.queryIdentify = queryIdentify;
|
|
33948
|
-
_context.
|
|
33714
|
+
_context.n = 7;
|
|
33949
33715
|
return getRegularThresholdRange(querParams);
|
|
33950
|
-
case
|
|
33951
|
-
res = _context.
|
|
33716
|
+
case 7:
|
|
33717
|
+
res = _context.v;
|
|
33952
33718
|
if (handleError(res)) {
|
|
33953
33719
|
_this.setState({
|
|
33954
33720
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33955
33721
|
});
|
|
33956
33722
|
}
|
|
33957
|
-
case
|
|
33958
|
-
|
|
33959
|
-
return _context.stop();
|
|
33723
|
+
case 8:
|
|
33724
|
+
return _context.a(2);
|
|
33960
33725
|
}
|
|
33961
33726
|
}, _callee);
|
|
33962
33727
|
}));
|
|
@@ -34788,11 +34553,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34788
34553
|
isAll: true,
|
|
34789
34554
|
needNameAndCode: true,
|
|
34790
34555
|
notChangeOnSelect: true,
|
|
34791
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34792
|
-
return
|
|
34793
|
-
while (1) switch (_context2.
|
|
34556
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
34557
|
+
return _regenerator().w(function (_context2) {
|
|
34558
|
+
while (1) switch (_context2.n) {
|
|
34794
34559
|
case 0:
|
|
34795
|
-
_context2.
|
|
34560
|
+
_context2.n = 1;
|
|
34796
34561
|
return request$2({
|
|
34797
34562
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34798
34563
|
method: 'get',
|
|
@@ -34809,11 +34574,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34809
34574
|
return handleData;
|
|
34810
34575
|
}
|
|
34811
34576
|
});
|
|
34812
|
-
case
|
|
34813
|
-
return _context2.
|
|
34814
|
-
case 3:
|
|
34815
|
-
case "end":
|
|
34816
|
-
return _context2.stop();
|
|
34577
|
+
case 1:
|
|
34578
|
+
return _context2.a(2, _context2.v);
|
|
34817
34579
|
}
|
|
34818
34580
|
}, _callee2);
|
|
34819
34581
|
})),
|
|
@@ -34837,11 +34599,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34837
34599
|
isAll: true,
|
|
34838
34600
|
needNameAndCode: true,
|
|
34839
34601
|
notChangeOnSelect: true,
|
|
34840
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34841
|
-
return
|
|
34842
|
-
while (1) switch (_context3.
|
|
34602
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
34603
|
+
return _regenerator().w(function (_context3) {
|
|
34604
|
+
while (1) switch (_context3.n) {
|
|
34843
34605
|
case 0:
|
|
34844
|
-
_context3.
|
|
34606
|
+
_context3.n = 1;
|
|
34845
34607
|
return request$2({
|
|
34846
34608
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34847
34609
|
method: 'get',
|
|
@@ -34858,11 +34620,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34858
34620
|
return handleData;
|
|
34859
34621
|
}
|
|
34860
34622
|
});
|
|
34861
|
-
case
|
|
34862
|
-
return _context3.
|
|
34863
|
-
case 3:
|
|
34864
|
-
case "end":
|
|
34865
|
-
return _context3.stop();
|
|
34623
|
+
case 1:
|
|
34624
|
+
return _context3.a(2, _context3.v);
|
|
34866
34625
|
}
|
|
34867
34626
|
}, _callee3);
|
|
34868
34627
|
})),
|
|
@@ -34888,11 +34647,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34888
34647
|
isAll: true,
|
|
34889
34648
|
needNameAndCode: true,
|
|
34890
34649
|
notChangeOnSelect: true,
|
|
34891
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34892
|
-
return
|
|
34893
|
-
while (1) switch (_context4.
|
|
34650
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
34651
|
+
return _regenerator().w(function (_context4) {
|
|
34652
|
+
while (1) switch (_context4.n) {
|
|
34894
34653
|
case 0:
|
|
34895
|
-
_context4.
|
|
34654
|
+
_context4.n = 1;
|
|
34896
34655
|
return request$2({
|
|
34897
34656
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34898
34657
|
method: 'get',
|
|
@@ -34909,11 +34668,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34909
34668
|
return handleData;
|
|
34910
34669
|
}
|
|
34911
34670
|
});
|
|
34912
|
-
case
|
|
34913
|
-
return _context4.
|
|
34914
|
-
case 3:
|
|
34915
|
-
case "end":
|
|
34916
|
-
return _context4.stop();
|
|
34671
|
+
case 1:
|
|
34672
|
+
return _context4.a(2, _context4.v);
|
|
34917
34673
|
}
|
|
34918
34674
|
}, _callee4);
|
|
34919
34675
|
})),
|
|
@@ -35600,8 +35356,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35600
35356
|
}
|
|
35601
35357
|
}));
|
|
35602
35358
|
} else {
|
|
35603
|
-
var
|
|
35604
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35359
|
+
var _values0;
|
|
35360
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35605
35361
|
return {
|
|
35606
35362
|
key: s,
|
|
35607
35363
|
label: valueNames[vIndex],
|
|
@@ -35879,8 +35635,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35879
35635
|
}
|
|
35880
35636
|
}));
|
|
35881
35637
|
} else {
|
|
35882
|
-
var
|
|
35883
|
-
var
|
|
35638
|
+
var _values1;
|
|
35639
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
35884
35640
|
return {
|
|
35885
35641
|
key: s,
|
|
35886
35642
|
label: valueNames[vIndex],
|
|
@@ -35902,7 +35658,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35902
35658
|
} : {}),
|
|
35903
35659
|
disabled: disabled,
|
|
35904
35660
|
labelInValue: true,
|
|
35905
|
-
value:
|
|
35661
|
+
value: _currentValue0,
|
|
35906
35662
|
requestConfig: {
|
|
35907
35663
|
filterInit: 'qp-code-in'
|
|
35908
35664
|
},
|
|
@@ -35995,8 +35751,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35995
35751
|
}
|
|
35996
35752
|
}));
|
|
35997
35753
|
} else {
|
|
35998
|
-
var
|
|
35999
|
-
var
|
|
35754
|
+
var _values10;
|
|
35755
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36000
35756
|
return {
|
|
36001
35757
|
key: s,
|
|
36002
35758
|
label: valueNames[vIndex],
|
|
@@ -36018,7 +35774,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36018
35774
|
} : {}),
|
|
36019
35775
|
disabled: disabled,
|
|
36020
35776
|
labelInValue: true,
|
|
36021
|
-
value:
|
|
35777
|
+
value: _currentValue1,
|
|
36022
35778
|
requestConfig: {
|
|
36023
35779
|
filterInit: 'qp-code-in'
|
|
36024
35780
|
},
|
|
@@ -36111,8 +35867,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36111
35867
|
}
|
|
36112
35868
|
}));
|
|
36113
35869
|
} else {
|
|
36114
|
-
var
|
|
36115
|
-
var
|
|
35870
|
+
var _values11;
|
|
35871
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36116
35872
|
return {
|
|
36117
35873
|
key: s,
|
|
36118
35874
|
label: valueNames[vIndex],
|
|
@@ -36134,7 +35890,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36134
35890
|
} : {}),
|
|
36135
35891
|
disabled: disabled,
|
|
36136
35892
|
labelInValue: true,
|
|
36137
|
-
value:
|
|
35893
|
+
value: _currentValue10,
|
|
36138
35894
|
requestConfig: {
|
|
36139
35895
|
filterInit: 'qp-brandCode-in'
|
|
36140
35896
|
},
|
|
@@ -36325,8 +36081,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36325
36081
|
}
|
|
36326
36082
|
}));
|
|
36327
36083
|
} else {
|
|
36328
|
-
var
|
|
36329
|
-
var
|
|
36084
|
+
var _values12;
|
|
36085
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36330
36086
|
return {
|
|
36331
36087
|
key: s,
|
|
36332
36088
|
label: valueNames[vIndex]
|
|
@@ -36354,7 +36110,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36354
36110
|
isSearchForm: true,
|
|
36355
36111
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36356
36112
|
disabled: disabled,
|
|
36357
|
-
value:
|
|
36113
|
+
value: _currentValue11,
|
|
36358
36114
|
onChange: function onChange(value, sourceList) {
|
|
36359
36115
|
if (dataInputBusinessType === 12) {
|
|
36360
36116
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36674,9 +36430,9 @@ var App$1 = function App(_ref) {
|
|
|
36674
36430
|
UpdateState(res);
|
|
36675
36431
|
};
|
|
36676
36432
|
var _useState9 = useState(false),
|
|
36677
|
-
|
|
36678
|
-
isModalVisible =
|
|
36679
|
-
setIsModalVisible =
|
|
36433
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
36434
|
+
isModalVisible = _useState0[0],
|
|
36435
|
+
setIsModalVisible = _useState0[1];
|
|
36680
36436
|
var showModal = function showModal() {
|
|
36681
36437
|
setIsModalVisible(true);
|
|
36682
36438
|
};
|
|
@@ -37157,27 +36913,26 @@ function RenderCompItem(props) {
|
|
|
37157
36913
|
dictData = _useState2[0],
|
|
37158
36914
|
setDictData = _useState2[1];
|
|
37159
36915
|
var getDictData = /*#__PURE__*/function () {
|
|
37160
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
36916
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37161
36917
|
var _data$map;
|
|
37162
36918
|
var data;
|
|
37163
|
-
return
|
|
37164
|
-
while (1) switch (_context.
|
|
36919
|
+
return _regenerator().w(function (_context) {
|
|
36920
|
+
while (1) switch (_context.n) {
|
|
37165
36921
|
case 0:
|
|
37166
|
-
_context.
|
|
36922
|
+
_context.n = 1;
|
|
37167
36923
|
return request$2({
|
|
37168
36924
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37169
36925
|
});
|
|
37170
|
-
case
|
|
37171
|
-
data = _context.
|
|
36926
|
+
case 1:
|
|
36927
|
+
data = _context.v;
|
|
37172
36928
|
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
36929
|
return {
|
|
37174
36930
|
text: item.dictItemName,
|
|
37175
36931
|
value: item.dictItemCode
|
|
37176
36932
|
};
|
|
37177
36933
|
}));
|
|
37178
|
-
case
|
|
37179
|
-
|
|
37180
|
-
return _context.stop();
|
|
36934
|
+
case 2:
|
|
36935
|
+
return _context.a(2);
|
|
37181
36936
|
}
|
|
37182
36937
|
}, _callee);
|
|
37183
36938
|
}));
|
|
@@ -37418,11 +37173,11 @@ function RenderCompItem(props) {
|
|
|
37418
37173
|
needNameAndCode: true,
|
|
37419
37174
|
notChangeOnSelect: true,
|
|
37420
37175
|
initRequestSource: function () {
|
|
37421
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37422
|
-
return
|
|
37423
|
-
while (1) switch (_context2.
|
|
37176
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37177
|
+
return _regenerator().w(function (_context2) {
|
|
37178
|
+
while (1) switch (_context2.n) {
|
|
37424
37179
|
case 0:
|
|
37425
|
-
_context2.
|
|
37180
|
+
_context2.n = 1;
|
|
37426
37181
|
return request$2({
|
|
37427
37182
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37428
37183
|
method: 'get',
|
|
@@ -37440,11 +37195,8 @@ function RenderCompItem(props) {
|
|
|
37440
37195
|
return handleData;
|
|
37441
37196
|
}
|
|
37442
37197
|
});
|
|
37443
|
-
case
|
|
37444
|
-
return _context2.
|
|
37445
|
-
case 3:
|
|
37446
|
-
case "end":
|
|
37447
|
-
return _context2.stop();
|
|
37198
|
+
case 1:
|
|
37199
|
+
return _context2.a(2, _context2.v);
|
|
37448
37200
|
}
|
|
37449
37201
|
}, _callee2);
|
|
37450
37202
|
}));
|
|
@@ -39494,13 +39246,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39494
39246
|
ruleTypeData = _useState8[0],
|
|
39495
39247
|
setRuleTypeData = _useState8[1];
|
|
39496
39248
|
var _useState9 = useState([]),
|
|
39497
|
-
|
|
39498
|
-
ruleReturnConfig =
|
|
39499
|
-
setRuleReturnConfig =
|
|
39500
|
-
var
|
|
39501
|
-
|
|
39502
|
-
templateData =
|
|
39503
|
-
setTemplateData =
|
|
39249
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39250
|
+
ruleReturnConfig = _useState0[0],
|
|
39251
|
+
setRuleReturnConfig = _useState0[1];
|
|
39252
|
+
var _useState1 = useState({}),
|
|
39253
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39254
|
+
templateData = _useState10[0],
|
|
39255
|
+
setTemplateData = _useState10[1];
|
|
39504
39256
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39505
39257
|
request$2({
|
|
39506
39258
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39836,25 +39588,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39836
39588
|
regularDataList = _useState8[0],
|
|
39837
39589
|
setRegularDataList = _useState8[1];
|
|
39838
39590
|
var _useState9 = useState([]),
|
|
39839
|
-
|
|
39840
|
-
baseRuleDetailList =
|
|
39841
|
-
setBaseRuleDetailList =
|
|
39842
|
-
var
|
|
39591
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39592
|
+
baseRuleDetailList = _useState0[0],
|
|
39593
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
39594
|
+
var _useState1 = useState([]),
|
|
39595
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39596
|
+
systemVariableList = _useState10[0],
|
|
39597
|
+
setSystemVariableList = _useState10[1];
|
|
39598
|
+
var _useState11 = useState(false),
|
|
39843
39599
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39844
|
-
|
|
39845
|
-
|
|
39600
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
39601
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39846
39602
|
var _useState13 = useState(false),
|
|
39847
39603
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39848
|
-
|
|
39849
|
-
|
|
39604
|
+
isGetRuleDataRes = _useState14[0],
|
|
39605
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
39850
39606
|
var _useState15 = useState(false),
|
|
39851
39607
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39852
|
-
|
|
39853
|
-
|
|
39854
|
-
var _useState17 = useState(false),
|
|
39855
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
39856
|
-
groupOtherPriorityList = _useState18[0],
|
|
39857
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
39608
|
+
groupOtherPriorityList = _useState16[0],
|
|
39609
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
39858
39610
|
var baseRuleRef = useRef();
|
|
39859
39611
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39860
39612
|
// 查询规则组下所有规则实例
|