@bit-sun/business-component 4.2.0-alpha.1 → 4.2.0-alpha.10
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/.umirc.ts +9 -9
- 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 +12 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/SystemLog/index.d.ts +78 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +1909 -1186
- package/dist/index.js +1908 -1181
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/utils.d.ts +41 -0
- package/docs/flow-control-readme.md +283 -0
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
- package/src/components/Business/BsSulaQueryTable/index.md +57 -4
- package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
- package/src/components/Business/DetailPageWrapper/readme.md +89 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +363 -41
- package/src/components/Business/SystemLog/index.md +37 -0
- package/src/components/Business/SystemLog/index.tsx +87 -0
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/QueryMutipleInput/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +68 -10
- package/src/components/Functional/SearchSelect/utils.tsx +4 -1
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
- package/src/components/Solution/RuleComponent/index.js +1 -0
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
- package/src/index.ts +7 -0
- package/src/utils/utils.ts +41 -1
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
4
|
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
|
-
import _, { omit, uniqBy, escapeRegExp, isNil,
|
|
5
|
+
import _, { omit, uniqBy, escapeRegExp, isNil, cloneDeep, isEmpty, isBoolean, debounce, throttle } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
@@ -21,7 +21,7 @@ import { SortableHandle, SortableElement, SortableContainer } from 'react-sortab
|
|
|
21
21
|
import { arrayMoveImmutable } from 'array-move';
|
|
22
22
|
import classNames from 'classnames';
|
|
23
23
|
import ProLayout from '@ant-design/pro-layout';
|
|
24
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
24
|
+
import cloneDeep$1 from 'lodash/cloneDeep';
|
|
25
25
|
import debounce$1 from 'lodash/debounce';
|
|
26
26
|
import { DndProvider, useDrop, useDrag } from 'react-dnd';
|
|
27
27
|
import { HTML5Backend } from 'react-dnd-html5-backend';
|
|
@@ -207,306 +207,113 @@ 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
|
-
r = [];
|
|
422
|
-
for (var n in e) r.push(n);
|
|
423
|
-
return r.reverse(), function next() {
|
|
424
|
-
for (; r.length;) {
|
|
425
|
-
var t = r.pop();
|
|
426
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
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
|
-
}
|
|
499
|
-
}
|
|
500
|
-
throw Error("illegal catch attempt");
|
|
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;
|
|
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
|
+
function o(r, n) {
|
|
306
|
+
_regeneratorDefine(e, r, function (e) {
|
|
307
|
+
return this._invoke(r, n, e);
|
|
308
|
+
});
|
|
508
309
|
}
|
|
509
|
-
|
|
310
|
+
r ? i ? i(e, r, {
|
|
311
|
+
value: n,
|
|
312
|
+
enumerable: !t,
|
|
313
|
+
configurable: !t,
|
|
314
|
+
writable: !t
|
|
315
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
316
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
510
317
|
}
|
|
511
318
|
function _setPrototypeOf(t, e) {
|
|
512
319
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1454,6 +1261,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1454
1261
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1455
1262
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1456
1263
|
};
|
|
1264
|
+
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1265
|
+
return type === 'form' ? {
|
|
1266
|
+
container: {
|
|
1267
|
+
type: 'card',
|
|
1268
|
+
props: {
|
|
1269
|
+
title: title,
|
|
1270
|
+
id: Math.random(),
|
|
1271
|
+
level: 1,
|
|
1272
|
+
name: name
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
itemLayout: {
|
|
1276
|
+
span: 8,
|
|
1277
|
+
labelCol: {
|
|
1278
|
+
span: 8
|
|
1279
|
+
},
|
|
1280
|
+
wrapperCol: {
|
|
1281
|
+
span: 18
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
} : {
|
|
1285
|
+
container: {
|
|
1286
|
+
type: 'card',
|
|
1287
|
+
props: {
|
|
1288
|
+
title: title,
|
|
1289
|
+
id: Math.random(),
|
|
1290
|
+
level: 1,
|
|
1291
|
+
bordered: null,
|
|
1292
|
+
isWhiteCard: true,
|
|
1293
|
+
name: name
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1296
|
+
itemLayout: {
|
|
1297
|
+
wrapperCol: {
|
|
1298
|
+
span: 0
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1457
1303
|
|
|
1458
1304
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1459
1305
|
var authFunc = function authFunc(code) {
|
|
@@ -1540,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1540
1386
|
// sheepMap是表头字段中英文映射
|
|
1541
1387
|
// sheetCount:表的数量,默认一张
|
|
1542
1388
|
var resolveFile = /*#__PURE__*/function () {
|
|
1543
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1389
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1544
1390
|
var config,
|
|
1545
1391
|
data,
|
|
1546
1392
|
_args = arguments;
|
|
1547
|
-
return
|
|
1548
|
-
while (1) switch (_context.
|
|
1393
|
+
return _regenerator().w(function (_context) {
|
|
1394
|
+
while (1) switch (_context.n) {
|
|
1549
1395
|
case 0:
|
|
1550
1396
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1551
1397
|
sheetMap: [],
|
|
1552
1398
|
sheetCount: 1
|
|
1553
1399
|
};
|
|
1554
|
-
_context.
|
|
1400
|
+
_context.n = 1;
|
|
1555
1401
|
return analyseExcelToByte(file);
|
|
1556
|
-
case
|
|
1557
|
-
data = _context.
|
|
1558
|
-
return _context.
|
|
1402
|
+
case 1:
|
|
1403
|
+
data = _context.v;
|
|
1404
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1559
1405
|
var workbook = read(data, {
|
|
1560
1406
|
type: 'binary'
|
|
1561
1407
|
});
|
|
@@ -1567,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1567
1413
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1568
1414
|
resolve(outdata);
|
|
1569
1415
|
}));
|
|
1570
|
-
case 5:
|
|
1571
|
-
case "end":
|
|
1572
|
-
return _context.stop();
|
|
1573
1416
|
}
|
|
1574
1417
|
}, _callee);
|
|
1575
1418
|
}));
|
|
@@ -1579,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1579
1422
|
}();
|
|
1580
1423
|
//读取文件
|
|
1581
1424
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1582
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1425
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1583
1426
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1584
|
-
return
|
|
1585
|
-
while (1) switch (_context2.
|
|
1427
|
+
return _regenerator().w(function (_context2) {
|
|
1428
|
+
while (1) switch (_context2.n) {
|
|
1586
1429
|
case 0:
|
|
1587
1430
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1588
1431
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1589
|
-
_context2.
|
|
1432
|
+
_context2.n = 3;
|
|
1590
1433
|
break;
|
|
1591
1434
|
}
|
|
1592
1435
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1593
|
-
_context2.
|
|
1436
|
+
_context2.n = 1;
|
|
1594
1437
|
return resolveFile(nowFile.originFileObj, {
|
|
1595
1438
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1596
1439
|
sheetCount: 1
|
|
1597
1440
|
});
|
|
1598
|
-
case
|
|
1599
|
-
data2 = _context2.
|
|
1441
|
+
case 1:
|
|
1442
|
+
data2 = _context2.v;
|
|
1600
1443
|
data = data2[0];
|
|
1601
1444
|
if (data.length) {
|
|
1602
|
-
_context2.
|
|
1445
|
+
_context2.n = 2;
|
|
1603
1446
|
break;
|
|
1604
1447
|
}
|
|
1605
1448
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1606
|
-
return _context2.
|
|
1607
|
-
case
|
|
1449
|
+
return _context2.a(2);
|
|
1450
|
+
case 2:
|
|
1608
1451
|
if (callback) callback(data);
|
|
1609
1452
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1610
|
-
return _context2.
|
|
1611
|
-
case
|
|
1453
|
+
return _context2.a(2, data);
|
|
1454
|
+
case 3:
|
|
1612
1455
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1613
|
-
return _context2.
|
|
1614
|
-
case
|
|
1615
|
-
|
|
1616
|
-
return _context2.stop();
|
|
1456
|
+
return _context2.a(2);
|
|
1457
|
+
case 4:
|
|
1458
|
+
return _context2.a(2);
|
|
1617
1459
|
}
|
|
1618
1460
|
}, _callee2);
|
|
1619
1461
|
}));
|
|
@@ -2565,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2565
2407
|
return request$1(url, parms).then(handleResponseData);
|
|
2566
2408
|
};
|
|
2567
2409
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2568
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2569
|
-
return
|
|
2570
|
-
while (1) switch (_context.
|
|
2410
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2411
|
+
return _regenerator().w(function (_context) {
|
|
2412
|
+
while (1) switch (_context.n) {
|
|
2571
2413
|
case 0:
|
|
2572
|
-
return _context.
|
|
2414
|
+
return _context.a(2, Promise.resolve({
|
|
2573
2415
|
data: response,
|
|
2574
2416
|
status: response.status
|
|
2575
2417
|
}));
|
|
2576
|
-
case 1:
|
|
2577
|
-
case "end":
|
|
2578
|
-
return _context.stop();
|
|
2579
2418
|
}
|
|
2580
2419
|
}, _callee);
|
|
2581
2420
|
}));
|
|
@@ -2948,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2948
2787
|
data: luckysheet.transToCellData(newData)
|
|
2949
2788
|
});
|
|
2950
2789
|
};
|
|
2951
|
-
_this.resetData = function () {
|
|
2790
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2952
2791
|
var _customerColumnsMappi;
|
|
2953
|
-
var _this$props
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
2961
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
2962
|
-
var resultData = _this.getData().filter(function (d) {
|
|
2963
|
-
return _.compact(Object.values(d)).length;
|
|
2964
|
-
});
|
|
2965
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2966
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2967
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2968
|
-
return c.name;
|
|
2969
|
-
}) : columns;
|
|
2970
|
-
// 处理业务参数
|
|
2971
|
-
var otherParams = {};
|
|
2972
|
-
if (isBrandAuth) {
|
|
2973
|
-
otherParams = {
|
|
2974
|
-
brandAuth: 'ctl-withAuth'
|
|
2975
|
-
};
|
|
2976
|
-
}
|
|
2977
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2978
|
-
columns: resultColumns,
|
|
2979
|
-
data: resultData,
|
|
2980
|
-
checkStockNum: isCheckStockNum
|
|
2981
|
-
})).then(function (result) {
|
|
2982
|
-
result = result.data;
|
|
2983
|
-
if (judgeIsRequestError(result)) {
|
|
2984
|
-
message$1.error(result.msg);
|
|
2985
|
-
return;
|
|
2986
|
-
}
|
|
2987
|
-
var items = _this.state.items;
|
|
2988
|
-
var validIndex = items.length;
|
|
2989
|
-
var res = result.data;
|
|
2990
|
-
var sheetData = luckysheet.getSheetData();
|
|
2991
|
-
sheetData.map(function (item, index) {
|
|
2992
|
-
if (!res[index]) return item;
|
|
2993
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2994
|
-
return i === 'skuCode';
|
|
2995
|
-
});
|
|
2996
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2997
|
-
return i === 'skuCode';
|
|
2998
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2999
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3000
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3001
|
-
}
|
|
3002
|
-
if (res[index].flag) {
|
|
3003
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3004
|
-
v: '通过',
|
|
3005
|
-
m: '通过',
|
|
3006
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3007
|
-
});
|
|
3008
|
-
} else {
|
|
3009
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3010
|
-
v: res[index].checkResults,
|
|
3011
|
-
m: res[index].checkResults,
|
|
3012
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2792
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2793
|
+
return _regenerator().w(function (_context) {
|
|
2794
|
+
while (1) switch (_context.n) {
|
|
2795
|
+
case 0:
|
|
2796
|
+
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2797
|
+
resultData = _this.getData().filter(function (d) {
|
|
2798
|
+
return _.compact(Object.values(d)).length;
|
|
3013
2799
|
});
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
2800
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2801
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2802
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2803
|
+
return c.name;
|
|
2804
|
+
}) : columns; // 处理业务参数
|
|
2805
|
+
otherParams = {};
|
|
2806
|
+
if (isBrandAuth) {
|
|
2807
|
+
otherParams = {
|
|
2808
|
+
brandAuth: 'ctl-withAuth'
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2812
|
+
if (checkSharedValue) {
|
|
2813
|
+
resultData = resultData.map(function (d) {
|
|
2814
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
// 调用回调函数
|
|
2818
|
+
if (!beforeCheckCallback) {
|
|
2819
|
+
_context.n = 2;
|
|
2820
|
+
break;
|
|
2821
|
+
}
|
|
2822
|
+
_context.n = 1;
|
|
2823
|
+
return beforeCheckCallback(resultData);
|
|
2824
|
+
case 1:
|
|
2825
|
+
resultData = _context.v;
|
|
2826
|
+
if (resultData) {
|
|
2827
|
+
_context.n = 2;
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
return _context.a(2);
|
|
2831
|
+
case 2:
|
|
2832
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2833
|
+
columns: resultColumns,
|
|
2834
|
+
data: resultData,
|
|
2835
|
+
checkStockNum: isCheckStockNum
|
|
2836
|
+
})).then(function (result) {
|
|
2837
|
+
result = result.data;
|
|
2838
|
+
if (judgeIsRequestError(result)) {
|
|
2839
|
+
message$1.error(result.msg);
|
|
2840
|
+
return;
|
|
2841
|
+
}
|
|
2842
|
+
var items = _this.state.items;
|
|
2843
|
+
var validIndex = items.length;
|
|
2844
|
+
var res = result.data;
|
|
2845
|
+
var sheetData = luckysheet.getSheetData();
|
|
2846
|
+
sheetData.map(function (item, index) {
|
|
2847
|
+
if (!res[index]) return item;
|
|
2848
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2849
|
+
return i === 'skuCode';
|
|
2850
|
+
});
|
|
2851
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2852
|
+
return i === 'skuCode';
|
|
2853
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2854
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2855
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2856
|
+
}
|
|
2857
|
+
if (res[index].flag) {
|
|
2858
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2859
|
+
v: '通过',
|
|
2860
|
+
m: '通过',
|
|
2861
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2862
|
+
});
|
|
2863
|
+
} else {
|
|
2864
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2865
|
+
v: res[index].checkResults,
|
|
2866
|
+
m: res[index].checkResults,
|
|
2867
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
item[validIndex].ct = {
|
|
2871
|
+
fa: 'General',
|
|
2872
|
+
t: 'g'
|
|
2873
|
+
};
|
|
2874
|
+
});
|
|
2875
|
+
// sheetData.map((item, index) => {
|
|
2876
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2877
|
+
// })
|
|
2878
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2879
|
+
_this.setState({
|
|
2880
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2881
|
+
errorListCheck: false,
|
|
2882
|
+
resultData: res
|
|
2883
|
+
});
|
|
2884
|
+
console.log(setExportData);
|
|
2885
|
+
setExportData([123123]);
|
|
2886
|
+
}).catch(function (err) {});
|
|
2887
|
+
case 3:
|
|
2888
|
+
return _context.a(2);
|
|
2889
|
+
}
|
|
2890
|
+
}, _callee);
|
|
2891
|
+
}));
|
|
3033
2892
|
_this.filterData = function (type) {
|
|
3034
2893
|
var _this$state = _this.state,
|
|
3035
2894
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3186,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3186
3045
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3187
3046
|
var rowItem = res[index];
|
|
3188
3047
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3189
|
-
var
|
|
3190
|
-
var colKey = (
|
|
3048
|
+
var _ref5;
|
|
3049
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3191
3050
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3192
3051
|
element.m = rowItem[colKey];
|
|
3193
3052
|
element.v = rowItem[colKey];
|
|
@@ -3263,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3263
3122
|
notExcelImport = _this$props6.notExcelImport,
|
|
3264
3123
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3265
3124
|
getTemplate = _this$props6.getTemplate;
|
|
3266
|
-
var
|
|
3267
|
-
size =
|
|
3268
|
-
accept =
|
|
3269
|
-
suffixRule =
|
|
3125
|
+
var _ref6 = excelImportConfig || {},
|
|
3126
|
+
size = _ref6.size,
|
|
3127
|
+
accept = _ref6.accept,
|
|
3128
|
+
suffixRule = _ref6.suffixRule;
|
|
3270
3129
|
var totalSummary = this.getCount();
|
|
3271
3130
|
var sheetMap = this.getSheetMap();
|
|
3272
3131
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3292,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3292
3151
|
var _Object$keys;
|
|
3293
3152
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3294
3153
|
if (info.file.status !== 'uploading') {
|
|
3295
|
-
var
|
|
3296
|
-
file =
|
|
3297
|
-
fileList =
|
|
3154
|
+
var _ref7 = info || {},
|
|
3155
|
+
file = _ref7.file,
|
|
3156
|
+
fileList = _ref7.fileList;
|
|
3298
3157
|
readerXlsxToList(file, fileList, null, null, {
|
|
3299
3158
|
callback: function callback(excelData) {
|
|
3300
3159
|
callBackFun(excelData);
|
|
@@ -4101,7 +3960,8 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
4101
3960
|
setIsModalVisible(true);
|
|
4102
3961
|
//弹窗打开时 默认搜索内容换行显示
|
|
4103
3962
|
setPopValue(function (data) {
|
|
4104
|
-
|
|
3963
|
+
var _data$replace;
|
|
3964
|
+
return data === null || data === void 0 ? void 0 : (_data$replace = data.replace) === null || _data$replace === void 0 ? void 0 : _data$replace.call(data, /,/g, '\n');
|
|
4105
3965
|
});
|
|
4106
3966
|
};
|
|
4107
3967
|
var handleOk = function handleOk() {
|
|
@@ -4593,11 +4453,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
|
|
|
4593
4453
|
};
|
|
4594
4454
|
// 弹窗数据表头处理
|
|
4595
4455
|
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4456
|
+
var _showTableColumns, _showTableColumns2;
|
|
4596
4457
|
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4597
4458
|
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4598
4459
|
return typeof s.defaultSort == 'number';
|
|
4599
4460
|
})) || tableColumns || [];
|
|
4600
|
-
|
|
4461
|
+
showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
|
|
4462
|
+
return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
|
|
4601
4463
|
return a.defaultSort - b.defaultSort;
|
|
4602
4464
|
})) || [];
|
|
4603
4465
|
};
|
|
@@ -4715,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4715
4577
|
popvalue = _useState8[0],
|
|
4716
4578
|
setPopValue = _useState8[1];
|
|
4717
4579
|
var _useState9 = useState([]),
|
|
4718
|
-
|
|
4719
|
-
source =
|
|
4720
|
-
setSource =
|
|
4580
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4581
|
+
source = _useState0[0],
|
|
4582
|
+
setSource = _useState0[1];
|
|
4721
4583
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4722
4584
|
getData();
|
|
4723
4585
|
}, {
|
|
4724
4586
|
wait: 1000
|
|
4725
4587
|
}),
|
|
4726
4588
|
run = _useDebounceFn.run;
|
|
4727
|
-
var
|
|
4589
|
+
var _useState1 = useState(false),
|
|
4590
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4591
|
+
fetching = _useState10[0],
|
|
4592
|
+
setFetching = _useState10[1];
|
|
4593
|
+
var _useState11 = useState(''),
|
|
4728
4594
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
var _useState13 = useState(
|
|
4595
|
+
searchValue = _useState12[0],
|
|
4596
|
+
setSearchValue = _useState12[1];
|
|
4597
|
+
var _useState13 = useState(resultSourceKey),
|
|
4732
4598
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
var _useState15 = useState(resultSourceKey),
|
|
4736
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4737
|
-
uniqueValue = _useState16[0],
|
|
4738
|
-
setUniqueValue = _useState16[1];
|
|
4599
|
+
uniqueValue = _useState14[0],
|
|
4600
|
+
setUniqueValue = _useState14[1];
|
|
4739
4601
|
useEffect(function () {
|
|
4740
4602
|
setPopValue(value);
|
|
4741
4603
|
onValueChange(value);
|
|
@@ -5152,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5152
5014
|
notCommonProperty = _useState8[0],
|
|
5153
5015
|
setNotCommonProperty = _useState8[1];
|
|
5154
5016
|
var _useState9 = useState(false),
|
|
5155
|
-
|
|
5156
|
-
visible =
|
|
5157
|
-
setVisible =
|
|
5158
|
-
var
|
|
5017
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5018
|
+
visible = _useState0[0],
|
|
5019
|
+
setVisible = _useState0[1];
|
|
5020
|
+
var _useState1 = useState(false),
|
|
5021
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5022
|
+
showNotCommon = _useState10[0],
|
|
5023
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5024
|
+
var _useState11 = useState([]),
|
|
5159
5025
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
var _useState13 = useState(
|
|
5026
|
+
classifyOptionList = _useState12[0],
|
|
5027
|
+
setClassifyOptionList = _useState12[1];
|
|
5028
|
+
var _useState13 = useState('1'),
|
|
5163
5029
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
var _useState15 = useState('1'),
|
|
5167
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5168
|
-
listKey = _useState16[0],
|
|
5169
|
-
setListKey = _useState16[1];
|
|
5030
|
+
listKey = _useState14[0],
|
|
5031
|
+
setListKey = _useState14[1];
|
|
5170
5032
|
useEffect(function () {
|
|
5171
5033
|
requestUtil({
|
|
5172
5034
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5430,6 +5292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5430
5292
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5431
5293
|
fieldComponent = props.fieldComponent,
|
|
5432
5294
|
onSaveCallback = props.onSaveCallback,
|
|
5295
|
+
_props$returnFormat = props.returnFormat,
|
|
5296
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5433
5297
|
selectBusinessType = props.selectBusinessType;
|
|
5434
5298
|
var _ref = rCTemp || {},
|
|
5435
5299
|
url = _ref.url,
|
|
@@ -5488,14 +5352,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5488
5352
|
var currentPage = 1;
|
|
5489
5353
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5490
5354
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5491
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5355
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5356
|
+
// 回显字段可自定义
|
|
5357
|
+
optionLabelProp: "label"
|
|
5358
|
+
}, selectProps), {}, {
|
|
5492
5359
|
// 以下属性不可更改----设计配置项
|
|
5493
5360
|
showArrow: true,
|
|
5494
5361
|
showSearch: true,
|
|
5495
5362
|
filterOption: false,
|
|
5496
5363
|
allowClear: true,
|
|
5497
5364
|
listHeight: 160,
|
|
5498
|
-
optionLabelProp: "label",
|
|
5499
5365
|
autoClearSearchValue: false,
|
|
5500
5366
|
placement: 'bottomRight'
|
|
5501
5367
|
});
|
|
@@ -5512,7 +5378,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5512
5378
|
};
|
|
5513
5379
|
var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5514
5380
|
total: 0,
|
|
5515
|
-
current: 1
|
|
5381
|
+
current: 1,
|
|
5382
|
+
pageSizeOptions: [10, 20, 50, 100, 500, 1000]
|
|
5516
5383
|
});
|
|
5517
5384
|
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5518
5385
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
@@ -5544,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5544
5411
|
scrollPage = _useState8[0],
|
|
5545
5412
|
setScrollPage = _useState8[1];
|
|
5546
5413
|
var _useState9 = useState(0),
|
|
5547
|
-
|
|
5548
|
-
itemsTotal =
|
|
5549
|
-
setItemsTotal =
|
|
5550
|
-
var
|
|
5414
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5415
|
+
itemsTotal = _useState0[0],
|
|
5416
|
+
setItemsTotal = _useState0[1];
|
|
5417
|
+
var _useState1 = useState(false),
|
|
5418
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5419
|
+
fetching = _useState10[0],
|
|
5420
|
+
setFetching = _useState10[1];
|
|
5421
|
+
var _useState11 = useState(''),
|
|
5551
5422
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
var _useState13 = useState(
|
|
5423
|
+
searchValue = _useState12[0],
|
|
5424
|
+
setSearchValue = _useState12[1];
|
|
5425
|
+
var _useState13 = useState(false),
|
|
5555
5426
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
var _useState15 = useState(
|
|
5427
|
+
isModalVisible = _useState14[0],
|
|
5428
|
+
setIsModalVisible = _useState14[1];
|
|
5429
|
+
var _useState15 = useState(initVal),
|
|
5559
5430
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
var _useState17 = useState(
|
|
5431
|
+
popvalue = _useState16[0],
|
|
5432
|
+
setPopValue = _useState16[1];
|
|
5433
|
+
var _useState17 = useState(resultSourceKey),
|
|
5563
5434
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
var _useState19 = useState(resultSourceKey),
|
|
5567
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5568
|
-
uniqueValue = _useState20[0],
|
|
5569
|
-
setUniqueValue = _useState20[1];
|
|
5435
|
+
uniqueValue = _useState18[0],
|
|
5436
|
+
setUniqueValue = _useState18[1];
|
|
5570
5437
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5571
5438
|
// 优化搜索参数 支持传多个
|
|
5572
5439
|
var searchParams = {};
|
|
@@ -5595,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5595
5462
|
var _Form$useForm = Form.useForm(),
|
|
5596
5463
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5597
5464
|
form = _Form$useForm2[0];
|
|
5465
|
+
var _useState19 = useState(true),
|
|
5466
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5467
|
+
collapsed = _useState20[0],
|
|
5468
|
+
setCollapsed = _useState20[1];
|
|
5598
5469
|
var _useState21 = useState(true),
|
|
5599
5470
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
var _useState23 = useState(
|
|
5471
|
+
caretLeftFlag = _useState22[0],
|
|
5472
|
+
setCaretLeftFlag = _useState22[1];
|
|
5473
|
+
var _useState23 = useState([]),
|
|
5603
5474
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
var _useState25 = useState(
|
|
5475
|
+
tableData = _useState24[0],
|
|
5476
|
+
setTableData = _useState24[1];
|
|
5477
|
+
var _useState25 = useState(tableInitPagination),
|
|
5607
5478
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
var _useState27 = useState(
|
|
5479
|
+
tablePagination = _useState26[0],
|
|
5480
|
+
setTablePagination = _useState26[1];
|
|
5481
|
+
var _useState27 = useState([]),
|
|
5611
5482
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5612
|
-
|
|
5613
|
-
|
|
5483
|
+
selectedRowKeys = _useState28[0],
|
|
5484
|
+
setSelectedRowKeys = _useState28[1];
|
|
5614
5485
|
var _useState29 = useState([]),
|
|
5615
5486
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
var _useState31 = useState(
|
|
5487
|
+
selectedRows = _useState30[0],
|
|
5488
|
+
setSelectedRows = _useState30[1];
|
|
5489
|
+
var _useState31 = useState(false),
|
|
5619
5490
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5620
|
-
|
|
5621
|
-
|
|
5491
|
+
checkedAll = _useState32[0],
|
|
5492
|
+
setCheckedAll = _useState32[1];
|
|
5622
5493
|
var _useState33 = useState(false),
|
|
5623
5494
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
var _useState35 = useState(
|
|
5495
|
+
indeterminate = _useState34[0],
|
|
5496
|
+
setIndeterminate = _useState34[1];
|
|
5497
|
+
var _useState35 = useState({}),
|
|
5627
5498
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
var _useState37 = useState(
|
|
5499
|
+
tableFormParams = _useState36[0],
|
|
5500
|
+
setTableFormParams = _useState36[1];
|
|
5501
|
+
var _useState37 = useState(false),
|
|
5631
5502
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
var _useState39 = useState(
|
|
5503
|
+
tooltipVisible = _useState38[0],
|
|
5504
|
+
setTooltipVisible = _useState38[1];
|
|
5505
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5635
5506
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
var _useState41 = useState(
|
|
5507
|
+
tableShowColumns = _useState40[0],
|
|
5508
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5509
|
+
var _useState41 = useState(false),
|
|
5639
5510
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5640
|
-
|
|
5641
|
-
|
|
5511
|
+
confirmLoading = _useState42[0],
|
|
5512
|
+
setConfirmLoading = _useState42[1];
|
|
5642
5513
|
var _useState43 = useState(false),
|
|
5643
5514
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
var _useState45 = useState(false),
|
|
5647
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5648
|
-
modalSearched = _useState46[0],
|
|
5649
|
-
setModalSearched = _useState46[1];
|
|
5515
|
+
modalSearched = _useState44[0],
|
|
5516
|
+
setModalSearched = _useState44[1];
|
|
5650
5517
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5651
5518
|
setItems(list);
|
|
5652
5519
|
setItemsTotal(total);
|
|
@@ -5876,6 +5743,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5876
5743
|
removeListener();
|
|
5877
5744
|
};
|
|
5878
5745
|
}, [isModalVisible]);
|
|
5746
|
+
var safeJSONParse = function safeJSONParse(str) {
|
|
5747
|
+
try {
|
|
5748
|
+
return JSON.parse(str);
|
|
5749
|
+
} catch (error) {
|
|
5750
|
+
console.warn('JSON解析失败:', error);
|
|
5751
|
+
return null;
|
|
5752
|
+
}
|
|
5753
|
+
};
|
|
5754
|
+
// 获取回显的value值 如果开启了搜索条件 则需要过滤掉搜索条件
|
|
5755
|
+
var getShowValue = function getShowValue(value) {
|
|
5756
|
+
var newValue = cloneDeep(value);
|
|
5757
|
+
if (selectProps.useSearchCondition && newValue) {
|
|
5758
|
+
// 回显的时候 把搜索项的内容去掉
|
|
5759
|
+
if (selectMode) {
|
|
5760
|
+
newValue = newValue.filter(function (item) {
|
|
5761
|
+
var parsedItem = safeJSONParse(decodeURIComponent(item));
|
|
5762
|
+
// 过滤掉JSON对象(搜索条件),保留非JSON数据(实际选择项)
|
|
5763
|
+
return !parsedItem || !(parsedItem && _typeof(parsedItem) === 'object' && !Array.isArray(parsedItem));
|
|
5764
|
+
});
|
|
5765
|
+
}
|
|
5766
|
+
}
|
|
5767
|
+
return newValue;
|
|
5768
|
+
};
|
|
5879
5769
|
var showModal = function showModal() {
|
|
5880
5770
|
if (sDisabled) return;
|
|
5881
5771
|
setSelectOpen(false);
|
|
@@ -5885,12 +5775,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5885
5775
|
// 回显
|
|
5886
5776
|
if (value) {
|
|
5887
5777
|
if (selectMode) {
|
|
5888
|
-
|
|
5778
|
+
var newValue = getShowValue(value);
|
|
5779
|
+
setSelectedRowKeys(labelInValue ? newValue.map(function (i) {
|
|
5889
5780
|
return i.key;
|
|
5890
|
-
}) :
|
|
5891
|
-
setSelectedRows(labelInValue ?
|
|
5781
|
+
}) : newValue);
|
|
5782
|
+
setSelectedRows(labelInValue ? newValue.map(function (i) {
|
|
5892
5783
|
return _defineProperty(_defineProperty(_defineProperty({}, mappingValueField, i.key), "value", i.key), "text", i.label);
|
|
5893
|
-
}) :
|
|
5784
|
+
}) : newValue.map(function (i) {
|
|
5894
5785
|
return _defineProperty(_defineProperty({}, mappingValueField, i), "value", i);
|
|
5895
5786
|
}));
|
|
5896
5787
|
setPopValue(labelInValue ? value.map(function (i) {
|
|
@@ -5927,7 +5818,24 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5927
5818
|
formaData(selectedValue, source);
|
|
5928
5819
|
} else {
|
|
5929
5820
|
var formatResult = selectMode ? [] : null;
|
|
5930
|
-
|
|
5821
|
+
// 支持使用查询条件 筛选
|
|
5822
|
+
if (selectProps.useSearchCondition) {
|
|
5823
|
+
var formValue = form.getFieldsValue();
|
|
5824
|
+
// 一次性处理数据转换和过滤
|
|
5825
|
+
var processedFormValue = Object.keys(formValue).reduce(function (acc, key) {
|
|
5826
|
+
var value = formValue[key];
|
|
5827
|
+
// 过滤空值(确保trim函数存在)
|
|
5828
|
+
var trimmedValue = typeof value === 'string' ? value.trim() : value;
|
|
5829
|
+
if (trimmedValue && trimmedValue !== '') {
|
|
5830
|
+
acc[key] = trimmedValue;
|
|
5831
|
+
}
|
|
5832
|
+
return acc;
|
|
5833
|
+
}, {});
|
|
5834
|
+
var result = JSON.stringify(processedFormValue);
|
|
5835
|
+
onChange(isEmpty(processedFormValue) ? formatResult : selectMode ? [result] : result, selectedValue);
|
|
5836
|
+
} else {
|
|
5837
|
+
onChange(formatResult, selectedValue);
|
|
5838
|
+
}
|
|
5931
5839
|
}
|
|
5932
5840
|
};
|
|
5933
5841
|
var handleOk = function handleOk() {
|
|
@@ -5957,18 +5865,25 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5957
5865
|
setConfirmLoading(false);
|
|
5958
5866
|
});
|
|
5959
5867
|
} else {
|
|
5960
|
-
handleSelectOver(popvalue);
|
|
5868
|
+
handleSelectOver(selectedRows.length ? popvalue : []);
|
|
5961
5869
|
handleCancel();
|
|
5962
5870
|
}
|
|
5963
5871
|
};
|
|
5964
5872
|
var formaData = function formaData(value, source) {
|
|
5965
5873
|
if (labelInValue) {
|
|
5874
|
+
var getFromat = function getFromat(format, val) {
|
|
5875
|
+
return format.map(function (_ref8) {
|
|
5876
|
+
var key = _ref8.key,
|
|
5877
|
+
value = _ref8.value;
|
|
5878
|
+
return _defineProperty({}, key, val[value]);
|
|
5879
|
+
});
|
|
5880
|
+
};
|
|
5966
5881
|
var formatResult = value.map(function (i) {
|
|
5967
|
-
return {
|
|
5882
|
+
return Object.assign.apply(Object, [{
|
|
5968
5883
|
key: i[mappingValueField] || i.key,
|
|
5969
5884
|
label: i[mappingTextField] || i.label,
|
|
5970
5885
|
value: i[mappingValueField] || i.value
|
|
5971
|
-
};
|
|
5886
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5972
5887
|
});
|
|
5973
5888
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
5974
5889
|
} else {
|
|
@@ -6116,7 +6031,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6116
6031
|
})) || [];
|
|
6117
6032
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6118
6033
|
return searchList.map(function (i, index) {
|
|
6119
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6034
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6120
6035
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6121
6036
|
span: ColSpan,
|
|
6122
6037
|
key: i
|
|
@@ -6214,7 +6129,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6214
6129
|
disabled: setDisabled(i.name)
|
|
6215
6130
|
}))));
|
|
6216
6131
|
}
|
|
6217
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6132
|
+
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') {
|
|
6218
6133
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6219
6134
|
span: ColSpan,
|
|
6220
6135
|
key: i.name
|
|
@@ -6228,7 +6143,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6228
6143
|
}
|
|
6229
6144
|
})));
|
|
6230
6145
|
}
|
|
6231
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6146
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6232
6147
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6233
6148
|
span: ColSpan,
|
|
6234
6149
|
key: i.name
|
|
@@ -6238,8 +6153,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6238
6153
|
key: i.name
|
|
6239
6154
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6240
6155
|
}
|
|
6241
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6242
|
-
var _i$
|
|
6156
|
+
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') {
|
|
6157
|
+
var _i$field11;
|
|
6243
6158
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6244
6159
|
span: ColSpan,
|
|
6245
6160
|
key: i.name
|
|
@@ -6252,9 +6167,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6252
6167
|
width: '100%'
|
|
6253
6168
|
},
|
|
6254
6169
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6255
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6170
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6256
6171
|
}
|
|
6257
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6172
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6258
6173
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6259
6174
|
span: ColSpan,
|
|
6260
6175
|
key: i.name
|
|
@@ -6283,7 +6198,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6283
6198
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6284
6199
|
allowClear: true,
|
|
6285
6200
|
maxLength: 100
|
|
6286
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6201
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6287
6202
|
disabled: setDisabled(i.name)
|
|
6288
6203
|
}))));
|
|
6289
6204
|
});
|
|
@@ -6576,9 +6491,25 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6576
6491
|
confirmLoading: confirmLoading,
|
|
6577
6492
|
onOk: handleOk,
|
|
6578
6493
|
onCancel: handleCancel,
|
|
6579
|
-
footer: selectMode || (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter) ? [/*#__PURE__*/React$1.createElement(
|
|
6494
|
+
footer: selectMode || (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalRadioNeedFooter) ? [selectProps.useSearchCondition ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6495
|
+
key: "instructions",
|
|
6496
|
+
style: {
|
|
6497
|
+
position: 'absolute',
|
|
6498
|
+
width: 'calc(100% - 500px)',
|
|
6499
|
+
textAlign: 'left'
|
|
6500
|
+
}
|
|
6501
|
+
}, /*#__PURE__*/React$1.createElement("div", null, "\u64CD\u4F5C\u8BF4\u660E\uFF1A\u7ED3\u679C\u96C6\u8FC7\u591A\u65F6\uFF0C\u53EF\u65E0\u9700\u9009\u62E9\u5177\u4F53\u6570\u636E\uFF0C\u7CFB\u7EDF\u5C06\u76F4\u63A5\u6309\u5DF2\u8BBE\u7B5B\u9009\u6761\u4EF6\u67E5\u8BE2"), /*#__PURE__*/React$1.createElement(Input, {
|
|
6502
|
+
style: {
|
|
6503
|
+
marginTop: '3px',
|
|
6504
|
+
height: '22px'
|
|
6505
|
+
},
|
|
6506
|
+
value: value
|
|
6507
|
+
}))) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null), /*#__PURE__*/React$1.createElement(Button, {
|
|
6580
6508
|
key: "back",
|
|
6581
|
-
onClick: handleCancel
|
|
6509
|
+
onClick: handleCancel,
|
|
6510
|
+
style: {
|
|
6511
|
+
margin: selectProps.useSearchCondition ? '10px 0' : 0
|
|
6512
|
+
}
|
|
6582
6513
|
}, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
|
|
6583
6514
|
key: "submit",
|
|
6584
6515
|
type: "primary",
|
|
@@ -7603,135 +7534,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7603
7534
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7604
7535
|
form = _Form$useForm2[0];
|
|
7605
7536
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7606
|
-
|
|
7607
|
-
tableSearchForm =
|
|
7608
|
-
setTableSearchForm =
|
|
7609
|
-
var
|
|
7537
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7538
|
+
tableSearchForm = _useState0[0],
|
|
7539
|
+
setTableSearchForm = _useState0[1];
|
|
7540
|
+
var _useState1 = useState(true),
|
|
7541
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7542
|
+
caretLeftFlag = _useState10[0],
|
|
7543
|
+
setCaretLeftFlag = _useState10[1];
|
|
7544
|
+
var _useState11 = useState([]),
|
|
7610
7545
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
var _useState13 = useState(
|
|
7614
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7615
|
-
tableData = _useState14[0],
|
|
7616
|
-
setTableData = _useState14[1];
|
|
7617
|
-
var _useState15 = useState(_objectSpread2({
|
|
7546
|
+
tableData = _useState12[0],
|
|
7547
|
+
setTableData = _useState12[1];
|
|
7548
|
+
var _useState13 = useState(_objectSpread2({
|
|
7618
7549
|
total: 0,
|
|
7619
7550
|
size: "small",
|
|
7620
7551
|
current: 1,
|
|
7621
7552
|
pageSize: tableInitPageSize
|
|
7622
7553
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7554
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7555
|
+
tablePagination = _useState14[0],
|
|
7556
|
+
setTablePagination = _useState14[1];
|
|
7557
|
+
var _useState15 = useState([]),
|
|
7623
7558
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
var _useState17 = useState(
|
|
7559
|
+
selectedRowKeys = _useState16[0],
|
|
7560
|
+
setSelectedRowKeys = _useState16[1];
|
|
7561
|
+
var _useState17 = useState({}),
|
|
7627
7562
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
var _useState19 = useState(
|
|
7563
|
+
tableFormParams = _useState18[0],
|
|
7564
|
+
setTableFormParams = _useState18[1];
|
|
7565
|
+
var _useState19 = useState(false),
|
|
7631
7566
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7632
|
-
|
|
7633
|
-
|
|
7567
|
+
confirmLoading = _useState20[0],
|
|
7568
|
+
setConfirmLoading = _useState20[1];
|
|
7634
7569
|
var _useState21 = useState(false),
|
|
7635
7570
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
var _useState23 = useState(
|
|
7571
|
+
confirmContinueLoading = _useState22[0],
|
|
7572
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7573
|
+
var _useState23 = useState([]),
|
|
7639
7574
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7640
|
-
|
|
7641
|
-
|
|
7575
|
+
selectColumns = _useState24[0],
|
|
7576
|
+
setSelectColumns = _useState24[1];
|
|
7642
7577
|
var _useState25 = useState([]),
|
|
7643
7578
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7644
|
-
|
|
7645
|
-
|
|
7579
|
+
showColumns = _useState26[0],
|
|
7580
|
+
setShowColumns = _useState26[1];
|
|
7646
7581
|
var _useState27 = useState([]),
|
|
7647
7582
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7648
|
-
|
|
7649
|
-
|
|
7583
|
+
tableColumns = _useState28[0],
|
|
7584
|
+
setTableColumns = _useState28[1];
|
|
7650
7585
|
var _useState29 = useState([]),
|
|
7651
7586
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
var _useState31 = useState([]),
|
|
7655
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7656
|
-
showToChooseColumns = _useState32[0],
|
|
7657
|
-
setShowToChooseColumns = _useState32[1];
|
|
7587
|
+
showToChooseColumns = _useState30[0],
|
|
7588
|
+
setShowToChooseColumns = _useState30[1];
|
|
7658
7589
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7659
7590
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7660
7591
|
// FIXME: 特殊业务逻辑
|
|
7661
7592
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7662
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7663
|
-
var result;
|
|
7664
|
-
return
|
|
7665
|
-
while (1) switch (_context.
|
|
7593
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7594
|
+
var result, _t;
|
|
7595
|
+
return _regenerator().w(function (_context) {
|
|
7596
|
+
while (1) switch (_context.p = _context.n) {
|
|
7666
7597
|
case 0:
|
|
7667
7598
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7668
7599
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7669
7600
|
}))) {
|
|
7670
|
-
_context.
|
|
7601
|
+
_context.n = 1;
|
|
7671
7602
|
break;
|
|
7672
7603
|
}
|
|
7673
7604
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7674
|
-
return _context.
|
|
7675
|
-
case
|
|
7605
|
+
return _context.a(2, false);
|
|
7606
|
+
case 1:
|
|
7676
7607
|
if (!(bType == 'spu')) {
|
|
7677
|
-
_context.
|
|
7608
|
+
_context.n = 9;
|
|
7678
7609
|
break;
|
|
7679
7610
|
}
|
|
7680
7611
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7681
7612
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7682
7613
|
}))) {
|
|
7683
|
-
_context.
|
|
7614
|
+
_context.n = 2;
|
|
7684
7615
|
break;
|
|
7685
7616
|
}
|
|
7686
7617
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7687
|
-
return _context.
|
|
7688
|
-
case
|
|
7618
|
+
return _context.a(2, false);
|
|
7619
|
+
case 2:
|
|
7689
7620
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7690
|
-
_context.
|
|
7621
|
+
_context.n = 3;
|
|
7691
7622
|
break;
|
|
7692
7623
|
}
|
|
7693
7624
|
message$1.warning('请先选择颜色!');
|
|
7694
|
-
return _context.
|
|
7695
|
-
case
|
|
7625
|
+
return _context.a(2, false);
|
|
7626
|
+
case 3:
|
|
7696
7627
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7697
7628
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7698
7629
|
}))) {
|
|
7699
|
-
_context.
|
|
7630
|
+
_context.n = 4;
|
|
7700
7631
|
break;
|
|
7701
7632
|
}
|
|
7702
7633
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7703
|
-
return _context.
|
|
7704
|
-
case
|
|
7634
|
+
return _context.a(2, false);
|
|
7635
|
+
case 4:
|
|
7705
7636
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7706
|
-
_context.
|
|
7637
|
+
_context.n = 9;
|
|
7707
7638
|
break;
|
|
7708
7639
|
}
|
|
7709
7640
|
result = true;
|
|
7710
|
-
_context.
|
|
7711
|
-
_context.
|
|
7641
|
+
_context.p = 5;
|
|
7642
|
+
_context.n = 6;
|
|
7712
7643
|
return checkSpuMatchCode({
|
|
7713
7644
|
skcCode: recordItem[recordKey],
|
|
7714
7645
|
matchingCode: changeValue,
|
|
7715
7646
|
ext1: recordItem.colorName
|
|
7716
7647
|
});
|
|
7717
|
-
case
|
|
7718
|
-
result = _context.
|
|
7648
|
+
case 6:
|
|
7649
|
+
result = _context.v;
|
|
7719
7650
|
result = true;
|
|
7720
|
-
_context.
|
|
7651
|
+
_context.n = 8;
|
|
7721
7652
|
break;
|
|
7722
|
-
case
|
|
7723
|
-
_context.
|
|
7724
|
-
|
|
7725
|
-
result = typeof
|
|
7726
|
-
case
|
|
7727
|
-
return _context.
|
|
7728
|
-
case
|
|
7729
|
-
return _context.
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
return _context.stop();
|
|
7733
|
-
}
|
|
7734
|
-
}, _callee, null, [[15, 22]]);
|
|
7653
|
+
case 7:
|
|
7654
|
+
_context.p = 7;
|
|
7655
|
+
_t = _context.v;
|
|
7656
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7657
|
+
case 8:
|
|
7658
|
+
return _context.a(2, result);
|
|
7659
|
+
case 9:
|
|
7660
|
+
return _context.a(2, true);
|
|
7661
|
+
}
|
|
7662
|
+
}, _callee, null, [[5, 7]]);
|
|
7735
7663
|
}));
|
|
7736
7664
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7737
7665
|
return _ref2.apply(this, arguments);
|
|
@@ -7809,6 +7737,115 @@ var AddSelect = function AddSelect(props) {
|
|
|
7809
7737
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7810
7738
|
return acc;
|
|
7811
7739
|
}, {});
|
|
7740
|
+
// 可输入非数字字符
|
|
7741
|
+
if (item.canInputString) {
|
|
7742
|
+
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
7743
|
+
min: 0,
|
|
7744
|
+
precision: 0,
|
|
7745
|
+
controls: false
|
|
7746
|
+
}, inputProps), {}, {
|
|
7747
|
+
value: text || '',
|
|
7748
|
+
keyboard: false,
|
|
7749
|
+
onPressEnter: function onPressEnter(e) {
|
|
7750
|
+
e.target.blur();
|
|
7751
|
+
},
|
|
7752
|
+
onBlur: function () {
|
|
7753
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7754
|
+
var value;
|
|
7755
|
+
return _regenerator().w(function (_context2) {
|
|
7756
|
+
while (1) switch (_context2.n) {
|
|
7757
|
+
case 0:
|
|
7758
|
+
value = e.target.value;
|
|
7759
|
+
record[item.dataIndex] = value;
|
|
7760
|
+
editRecord(record);
|
|
7761
|
+
case 1:
|
|
7762
|
+
return _context2.a(2);
|
|
7763
|
+
}
|
|
7764
|
+
}, _callee2);
|
|
7765
|
+
}));
|
|
7766
|
+
function onBlur(_x7) {
|
|
7767
|
+
return _onBlur.apply(this, arguments);
|
|
7768
|
+
}
|
|
7769
|
+
return onBlur;
|
|
7770
|
+
}(),
|
|
7771
|
+
onKeyDown: function onKeyDown(e) {
|
|
7772
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7773
|
+
var _document$getElementB;
|
|
7774
|
+
handleOk(true);
|
|
7775
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7776
|
+
}
|
|
7777
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7778
|
+
var _e$nativeEvent$path$;
|
|
7779
|
+
message$1.success('删除当前行');
|
|
7780
|
+
e.stopPropagation();
|
|
7781
|
+
e.preventDefault();
|
|
7782
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7783
|
+
if (dom) {
|
|
7784
|
+
dom.select();
|
|
7785
|
+
dom.focus();
|
|
7786
|
+
dom.scrollIntoView(false);
|
|
7787
|
+
}
|
|
7788
|
+
dom = null;
|
|
7789
|
+
deleteRecord(record);
|
|
7790
|
+
}
|
|
7791
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7792
|
+
var _e$nativeEvent$path$2;
|
|
7793
|
+
// 左滑动
|
|
7794
|
+
e.stopPropagation();
|
|
7795
|
+
e.preventDefault();
|
|
7796
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7797
|
+
if (_dom) {
|
|
7798
|
+
_dom.select();
|
|
7799
|
+
_dom.focus();
|
|
7800
|
+
_dom.scrollIntoView(false);
|
|
7801
|
+
}
|
|
7802
|
+
_dom = null;
|
|
7803
|
+
}
|
|
7804
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7805
|
+
var _e$nativeEvent$path$3;
|
|
7806
|
+
// 右滑
|
|
7807
|
+
e.stopPropagation();
|
|
7808
|
+
e.preventDefault();
|
|
7809
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7810
|
+
if (_dom2) {
|
|
7811
|
+
_dom2.select();
|
|
7812
|
+
_dom2.focus();
|
|
7813
|
+
_dom2.scrollIntoView(false);
|
|
7814
|
+
}
|
|
7815
|
+
_dom2 = null;
|
|
7816
|
+
}
|
|
7817
|
+
if (e.keyCode === 40) {
|
|
7818
|
+
var _e$nativeEvent$path$4;
|
|
7819
|
+
e.stopPropagation();
|
|
7820
|
+
e.preventDefault();
|
|
7821
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7822
|
+
if (_dom3) {
|
|
7823
|
+
_dom3.select();
|
|
7824
|
+
_dom3.focus();
|
|
7825
|
+
_dom3.scrollIntoView(false);
|
|
7826
|
+
}
|
|
7827
|
+
_dom3 = null;
|
|
7828
|
+
} else if (e.keyCode === 38) {
|
|
7829
|
+
var _e$nativeEvent$path$5;
|
|
7830
|
+
e.stopPropagation();
|
|
7831
|
+
e.preventDefault();
|
|
7832
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7833
|
+
if (dom1) {
|
|
7834
|
+
// dom1.value=""
|
|
7835
|
+
// dom1.setSelectionRange(100, 0);
|
|
7836
|
+
dom1.select();
|
|
7837
|
+
dom1.focus();
|
|
7838
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7839
|
+
// dom1.value=record['count']
|
|
7840
|
+
}
|
|
7841
|
+
dom1 = null;
|
|
7842
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7843
|
+
e.stopPropagation();
|
|
7844
|
+
e.preventDefault();
|
|
7845
|
+
}
|
|
7846
|
+
}
|
|
7847
|
+
}));
|
|
7848
|
+
}
|
|
7812
7849
|
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7813
7850
|
value: text || '',
|
|
7814
7851
|
min: 0,
|
|
@@ -7826,16 +7863,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7826
7863
|
// }}
|
|
7827
7864
|
onKeyDown: function onKeyDown(e) {
|
|
7828
7865
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7829
|
-
var _document$
|
|
7866
|
+
var _document$getElementB2;
|
|
7830
7867
|
handleOk(true);
|
|
7831
|
-
(_document$
|
|
7868
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7832
7869
|
}
|
|
7833
7870
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7834
|
-
var _e$nativeEvent$path
|
|
7871
|
+
var _e$nativeEvent$path$6;
|
|
7835
7872
|
message$1.success('删除当前行');
|
|
7836
7873
|
e.stopPropagation();
|
|
7837
7874
|
e.preventDefault();
|
|
7838
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
7875
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7839
7876
|
if (dom) {
|
|
7840
7877
|
dom.select();
|
|
7841
7878
|
dom.focus();
|
|
@@ -7845,47 +7882,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7845
7882
|
deleteRecord(record);
|
|
7846
7883
|
}
|
|
7847
7884
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7848
|
-
var _e$nativeEvent$path$
|
|
7885
|
+
var _e$nativeEvent$path$7;
|
|
7849
7886
|
// 左滑动
|
|
7850
7887
|
e.stopPropagation();
|
|
7851
7888
|
e.preventDefault();
|
|
7852
|
-
var
|
|
7853
|
-
if (
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7889
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
7890
|
+
if (_dom4) {
|
|
7891
|
+
_dom4.select();
|
|
7892
|
+
_dom4.focus();
|
|
7893
|
+
_dom4.scrollIntoView(false);
|
|
7857
7894
|
}
|
|
7858
|
-
|
|
7895
|
+
_dom4 = null;
|
|
7859
7896
|
}
|
|
7860
7897
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7861
|
-
var _e$nativeEvent$path$
|
|
7898
|
+
var _e$nativeEvent$path$8;
|
|
7862
7899
|
// 右滑
|
|
7863
7900
|
e.stopPropagation();
|
|
7864
7901
|
e.preventDefault();
|
|
7865
|
-
var
|
|
7866
|
-
if (
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7902
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
7903
|
+
if (_dom5) {
|
|
7904
|
+
_dom5.select();
|
|
7905
|
+
_dom5.focus();
|
|
7906
|
+
_dom5.scrollIntoView(false);
|
|
7870
7907
|
}
|
|
7871
|
-
|
|
7908
|
+
_dom5 = null;
|
|
7872
7909
|
}
|
|
7873
7910
|
if (e.keyCode === 40) {
|
|
7874
|
-
var _e$nativeEvent$path$
|
|
7911
|
+
var _e$nativeEvent$path$9;
|
|
7875
7912
|
e.stopPropagation();
|
|
7876
7913
|
e.preventDefault();
|
|
7877
|
-
var
|
|
7878
|
-
if (
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7914
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
7915
|
+
if (_dom6) {
|
|
7916
|
+
_dom6.select();
|
|
7917
|
+
_dom6.focus();
|
|
7918
|
+
_dom6.scrollIntoView(false);
|
|
7882
7919
|
}
|
|
7883
|
-
|
|
7920
|
+
_dom6 = null;
|
|
7884
7921
|
} else if (e.keyCode === 38) {
|
|
7885
|
-
var _e$nativeEvent$path$
|
|
7922
|
+
var _e$nativeEvent$path$0;
|
|
7886
7923
|
e.stopPropagation();
|
|
7887
7924
|
e.preventDefault();
|
|
7888
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7925
|
+
var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
|
|
7889
7926
|
if (dom1) {
|
|
7890
7927
|
// dom1.value=""
|
|
7891
7928
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7919,19 +7956,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7919
7956
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7920
7957
|
value: text || null,
|
|
7921
7958
|
onChange: function () {
|
|
7922
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7923
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7924
|
-
return
|
|
7925
|
-
while (1) switch (
|
|
7959
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7960
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7961
|
+
return _regenerator().w(function (_context3) {
|
|
7962
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
7926
7963
|
case 0:
|
|
7927
7964
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7928
7965
|
return d[selectKey] == value;
|
|
7929
7966
|
})) || {};
|
|
7930
7967
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7931
|
-
|
|
7968
|
+
_context3.n = 2;
|
|
7932
7969
|
break;
|
|
7933
7970
|
}
|
|
7934
|
-
|
|
7971
|
+
_context3.n = 1;
|
|
7935
7972
|
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, {
|
|
7936
7973
|
record: record,
|
|
7937
7974
|
index: index,
|
|
@@ -7941,10 +7978,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7941
7978
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7942
7979
|
editRecord: editRecord
|
|
7943
7980
|
});
|
|
7944
|
-
case
|
|
7945
|
-
|
|
7981
|
+
case 1:
|
|
7982
|
+
_context3.n = 10;
|
|
7946
7983
|
break;
|
|
7947
|
-
case
|
|
7984
|
+
case 2:
|
|
7948
7985
|
// 更新当前行数据函数
|
|
7949
7986
|
changeValue = function changeValue(v, dSSItem) {
|
|
7950
7987
|
var _item$dataSourceSelec;
|
|
@@ -7957,12 +7994,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7957
7994
|
}
|
|
7958
7995
|
}; // 处理校验,默认不校验
|
|
7959
7996
|
isCheckPass = true;
|
|
7960
|
-
|
|
7997
|
+
_context3.p = 3;
|
|
7961
7998
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7962
|
-
|
|
7999
|
+
_context3.n = 5;
|
|
7963
8000
|
break;
|
|
7964
8001
|
}
|
|
7965
|
-
|
|
8002
|
+
_context3.n = 4;
|
|
7966
8003
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7967
8004
|
record: record,
|
|
7968
8005
|
index: index,
|
|
@@ -7971,23 +8008,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7971
8008
|
changeValue: value,
|
|
7972
8009
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7973
8010
|
});
|
|
7974
|
-
case
|
|
7975
|
-
isCheckPass =
|
|
7976
|
-
|
|
8011
|
+
case 4:
|
|
8012
|
+
isCheckPass = _context3.v;
|
|
8013
|
+
_context3.n = 7;
|
|
7977
8014
|
break;
|
|
7978
|
-
case
|
|
7979
|
-
|
|
8015
|
+
case 5:
|
|
8016
|
+
_context3.n = 6;
|
|
7980
8017
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7981
|
-
case
|
|
7982
|
-
isConformToTheRules =
|
|
8018
|
+
case 6:
|
|
8019
|
+
isConformToTheRules = _context3.v;
|
|
7983
8020
|
isCheckPass = !isConformToTheRules;
|
|
7984
|
-
case
|
|
7985
|
-
|
|
8021
|
+
case 7:
|
|
8022
|
+
_context3.n = 9;
|
|
7986
8023
|
break;
|
|
7987
|
-
case
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
case
|
|
8024
|
+
case 8:
|
|
8025
|
+
_context3.p = 8;
|
|
8026
|
+
_t2 = _context3.v;
|
|
8027
|
+
case 9:
|
|
7991
8028
|
if (isCheckPass) {
|
|
7992
8029
|
changeValue(value, dataSourceSelectItem);
|
|
7993
8030
|
} else {
|
|
@@ -7995,13 +8032,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7995
8032
|
}
|
|
7996
8033
|
// 更新已选表格函数
|
|
7997
8034
|
editRecord(record);
|
|
7998
|
-
case
|
|
7999
|
-
|
|
8000
|
-
return _context2.stop();
|
|
8035
|
+
case 10:
|
|
8036
|
+
return _context3.a(2);
|
|
8001
8037
|
}
|
|
8002
|
-
},
|
|
8038
|
+
}, _callee3, null, [[3, 8]]);
|
|
8003
8039
|
}));
|
|
8004
|
-
function onChange(
|
|
8040
|
+
function onChange(_x8) {
|
|
8005
8041
|
return _onChange.apply(this, arguments);
|
|
8006
8042
|
}
|
|
8007
8043
|
return onChange;
|
|
@@ -8261,8 +8297,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8261
8297
|
}
|
|
8262
8298
|
}
|
|
8263
8299
|
setTimeout(function () {
|
|
8264
|
-
var _document$
|
|
8265
|
-
(_document$
|
|
8300
|
+
var _document$getElementB3;
|
|
8301
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8266
8302
|
}, 50);
|
|
8267
8303
|
};
|
|
8268
8304
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8292,7 +8328,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8292
8328
|
handleLoading(isContinue, true);
|
|
8293
8329
|
onSaveCallback(popvalue).then(function (res) {
|
|
8294
8330
|
{
|
|
8295
|
-
var _Object$keys2, _document$
|
|
8331
|
+
var _Object$keys2, _document$getElementB4;
|
|
8296
8332
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8297
8333
|
var initSuccessMessage = '保存成功';
|
|
8298
8334
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8302,7 +8338,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8302
8338
|
message$1.success(initSuccessMessage);
|
|
8303
8339
|
}
|
|
8304
8340
|
deleteSelectRows();
|
|
8305
|
-
(_document$
|
|
8341
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8306
8342
|
!isContinue && handleCancel();
|
|
8307
8343
|
}
|
|
8308
8344
|
handleLoading(isContinue, false);
|
|
@@ -9390,29 +9426,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9390
9426
|
dataIndex: 'propertyNameAndValue'
|
|
9391
9427
|
}];
|
|
9392
9428
|
var _useState9 = useState(false),
|
|
9393
|
-
|
|
9394
|
-
isModalVisible =
|
|
9395
|
-
setIsModalVisible =
|
|
9396
|
-
var
|
|
9429
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9430
|
+
isModalVisible = _useState0[0],
|
|
9431
|
+
setIsModalVisible = _useState0[1];
|
|
9432
|
+
var _useState1 = useState([{
|
|
9397
9433
|
hovered: false
|
|
9398
9434
|
}]),
|
|
9399
|
-
|
|
9400
|
-
data =
|
|
9401
|
-
setData =
|
|
9435
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9436
|
+
data = _useState10[0],
|
|
9437
|
+
setData = _useState10[1];
|
|
9402
9438
|
var tableRef = useRef(null);
|
|
9403
9439
|
var codeSelected = tableCode;
|
|
9404
|
-
var
|
|
9440
|
+
var _useState11 = useState(false),
|
|
9441
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9442
|
+
loading = _useState12[0],
|
|
9443
|
+
setLoading = _useState12[1];
|
|
9444
|
+
var _useState13 = useState([]),
|
|
9405
9445
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9406
|
-
|
|
9407
|
-
|
|
9446
|
+
selectColumns = _useState14[0],
|
|
9447
|
+
setSelectColumns = _useState14[1];
|
|
9408
9448
|
var _useState15 = useState([]),
|
|
9409
9449
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
var _useState17 = useState([]),
|
|
9413
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9414
|
-
showColumns = _useState18[0],
|
|
9415
|
-
setShowColumns = _useState18[1];
|
|
9450
|
+
showColumns = _useState16[0],
|
|
9451
|
+
setShowColumns = _useState16[1];
|
|
9416
9452
|
useEffect(function () {
|
|
9417
9453
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9418
9454
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9528,42 +9564,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9528
9564
|
});
|
|
9529
9565
|
};
|
|
9530
9566
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9531
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9567
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9532
9568
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9533
|
-
return
|
|
9534
|
-
while (1) switch (_context.
|
|
9569
|
+
return _regenerator().w(function (_context) {
|
|
9570
|
+
while (1) switch (_context.n) {
|
|
9535
9571
|
case 0:
|
|
9536
9572
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9537
|
-
_context.
|
|
9573
|
+
_context.n = 1;
|
|
9538
9574
|
break;
|
|
9539
9575
|
}
|
|
9540
9576
|
message$1.warning('至少录入一条数据');
|
|
9541
|
-
return _context.
|
|
9542
|
-
case
|
|
9577
|
+
return _context.a(2);
|
|
9578
|
+
case 1:
|
|
9543
9579
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9544
9580
|
return d.skuCode && d.name;
|
|
9545
9581
|
})) {
|
|
9546
|
-
_context.
|
|
9582
|
+
_context.n = 2;
|
|
9547
9583
|
break;
|
|
9548
9584
|
}
|
|
9549
9585
|
message$1.warning('录入商品不存在');
|
|
9550
|
-
return _context.
|
|
9551
|
-
case
|
|
9586
|
+
return _context.a(2);
|
|
9587
|
+
case 2:
|
|
9552
9588
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9553
9589
|
return d.count;
|
|
9554
9590
|
})) {
|
|
9555
|
-
_context.
|
|
9591
|
+
_context.n = 3;
|
|
9556
9592
|
break;
|
|
9557
9593
|
}
|
|
9558
9594
|
message$1.warning('请填写商品数量!');
|
|
9559
|
-
return _context.
|
|
9560
|
-
case
|
|
9561
|
-
_context.
|
|
9595
|
+
return _context.a(2);
|
|
9596
|
+
case 3:
|
|
9597
|
+
_context.n = 4;
|
|
9562
9598
|
return isSkuCanEntry(data);
|
|
9563
|
-
case
|
|
9564
|
-
canEntryObject = _context.
|
|
9599
|
+
case 4:
|
|
9600
|
+
canEntryObject = _context.v;
|
|
9565
9601
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9566
|
-
_context.
|
|
9602
|
+
_context.n = 5;
|
|
9567
9603
|
break;
|
|
9568
9604
|
}
|
|
9569
9605
|
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) {
|
|
@@ -9573,8 +9609,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9573
9609
|
content: messageInfo,
|
|
9574
9610
|
duration: 6
|
|
9575
9611
|
});
|
|
9576
|
-
return _context.
|
|
9577
|
-
case
|
|
9612
|
+
return _context.a(2);
|
|
9613
|
+
case 5:
|
|
9578
9614
|
setLoading(true);
|
|
9579
9615
|
onSaveCallback(data).then(function (res) {
|
|
9580
9616
|
{
|
|
@@ -9592,9 +9628,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9592
9628
|
message$1.error(Error);
|
|
9593
9629
|
setLoading(false);
|
|
9594
9630
|
});
|
|
9595
|
-
case
|
|
9596
|
-
|
|
9597
|
-
return _context.stop();
|
|
9631
|
+
case 6:
|
|
9632
|
+
return _context.a(2);
|
|
9598
9633
|
}
|
|
9599
9634
|
}, _callee);
|
|
9600
9635
|
}));
|
|
@@ -9990,31 +10025,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9990
10025
|
});
|
|
9991
10026
|
};
|
|
9992
10027
|
// 格式化树选择器数据源
|
|
9993
|
-
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9994
|
-
var haveChildren = Array.isArray(treeDataItem
|
|
10028
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
|
|
10029
|
+
var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
|
|
9995
10030
|
return {
|
|
9996
10031
|
title: treeDataItem[resKeyValue[1]],
|
|
9997
10032
|
value: treeDataItem[resKeyValue[0]],
|
|
9998
10033
|
parentId: treeDataItem.parent,
|
|
9999
10034
|
data: _objectSpread2({}, treeDataItem),
|
|
10000
10035
|
isLeaf: !haveChildren,
|
|
10001
|
-
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
10002
|
-
children: haveChildren ? treeDataItem.
|
|
10003
|
-
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
10036
|
+
disabled: disabledJudge !== undefined ? isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
|
|
10037
|
+
children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
|
|
10038
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
|
|
10004
10039
|
}) : []
|
|
10005
10040
|
};
|
|
10006
10041
|
};
|
|
10007
10042
|
var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
|
|
10008
10043
|
var _reData$position2;
|
|
10009
10044
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
10045
|
+
var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
|
|
10046
|
+
var nodeDisabledJudge = arguments.length > 6 ? arguments[6] : undefined;
|
|
10010
10047
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
10011
10048
|
var disabledJudge;
|
|
10012
10049
|
if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
|
|
10013
10050
|
data = [data];
|
|
10014
10051
|
disabledJudge = false;
|
|
10015
10052
|
}
|
|
10053
|
+
if (nodeDisabledJudge) {
|
|
10054
|
+
disabledJudge = nodeDisabledJudge;
|
|
10055
|
+
}
|
|
10016
10056
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
10017
|
-
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
10057
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
|
|
10018
10058
|
}) || [];
|
|
10019
10059
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
10020
10060
|
};
|
|
@@ -10475,10 +10515,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10475
10515
|
selectProps = _objectSpread2({
|
|
10476
10516
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10477
10517
|
renderTableColumns: [{
|
|
10478
|
-
title: '
|
|
10518
|
+
title: 'SPU编码',
|
|
10479
10519
|
dataIndex: 'itemCode'
|
|
10480
10520
|
}, {
|
|
10481
|
-
title: '
|
|
10521
|
+
title: 'SPU名称',
|
|
10482
10522
|
dataIndex: 'name'
|
|
10483
10523
|
}]
|
|
10484
10524
|
}, selectConfigProps);
|
|
@@ -10495,11 +10535,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10495
10535
|
}, requestConfigProp);
|
|
10496
10536
|
tableSearchForm = [{
|
|
10497
10537
|
name: 'itemCode*multiInput',
|
|
10498
|
-
label: '
|
|
10538
|
+
label: 'SPU编码',
|
|
10499
10539
|
type: 'multipleQueryInput'
|
|
10500
10540
|
}, {
|
|
10501
10541
|
name: 'name*multiInput',
|
|
10502
|
-
label: '
|
|
10542
|
+
label: 'SPU名称',
|
|
10503
10543
|
type: 'multipleQueryInput'
|
|
10504
10544
|
}, {
|
|
10505
10545
|
name: 'qp-brandId-in',
|
|
@@ -10593,11 +10633,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10593
10633
|
dataIndex: 'keyIndex',
|
|
10594
10634
|
defaultSort: 0
|
|
10595
10635
|
}, {
|
|
10596
|
-
title: '
|
|
10636
|
+
title: 'SPU编码',
|
|
10597
10637
|
dataIndex: 'itemCode',
|
|
10598
10638
|
defaultSort: 1
|
|
10599
10639
|
}, {
|
|
10600
|
-
title: '
|
|
10640
|
+
title: 'SPU名称',
|
|
10601
10641
|
dataIndex: 'name',
|
|
10602
10642
|
defaultSort: 2
|
|
10603
10643
|
}, {
|
|
@@ -10951,7 +10991,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10951
10991
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10952
10992
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10953
10993
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10954
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
10994
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10955
10995
|
});
|
|
10956
10996
|
requestConfig = _objectSpread2({
|
|
10957
10997
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11165,6 +11205,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11165
11205
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11166
11206
|
sourceName: 'warehouseIds'
|
|
11167
11207
|
}, requestConfigProp);
|
|
11208
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11209
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11210
|
+
extralHeaders: extralHeaders
|
|
11211
|
+
});
|
|
11212
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11213
|
+
'qp-status-eq': 10,
|
|
11214
|
+
'qp-isMain-eq': 1,
|
|
11215
|
+
'qp-type-in': '1,2'
|
|
11216
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11217
|
+
'qp-status-eq': 1
|
|
11218
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11219
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11220
|
+
return data['parentCode'] === '0';
|
|
11221
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11222
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11223
|
+
return data['parent'] === '0';
|
|
11224
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11225
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11226
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11227
|
+
});
|
|
11168
11228
|
tableSearchForm = [{
|
|
11169
11229
|
name: 'realWarehouseName*multiInput',
|
|
11170
11230
|
label: '逻辑仓名称',
|
|
@@ -11188,6 +11248,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11188
11248
|
},
|
|
11189
11249
|
label: '管理大区',
|
|
11190
11250
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11251
|
+
}, {
|
|
11252
|
+
name: 'qp-channelCode-in',
|
|
11253
|
+
type: 'treeSelect',
|
|
11254
|
+
label: '销售渠道',
|
|
11255
|
+
field: {
|
|
11256
|
+
type: 'treeSelect',
|
|
11257
|
+
props: {
|
|
11258
|
+
multiple: true,
|
|
11259
|
+
treeData: [],
|
|
11260
|
+
treeCheckable: false,
|
|
11261
|
+
notFoundContent: '暂无数据',
|
|
11262
|
+
allowClear: true,
|
|
11263
|
+
showSearch: true,
|
|
11264
|
+
showArrow: true,
|
|
11265
|
+
maxTagCount: 1,
|
|
11266
|
+
optionFilterProp: 'children',
|
|
11267
|
+
filterOption: function filterOption(input, option) {
|
|
11268
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11269
|
+
},
|
|
11270
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11271
|
+
}
|
|
11272
|
+
}
|
|
11273
|
+
}, {
|
|
11274
|
+
name: 'qp-refCode-in',
|
|
11275
|
+
type: 'treeSelect',
|
|
11276
|
+
label: '营销区域',
|
|
11277
|
+
field: {
|
|
11278
|
+
type: 'treeSelect',
|
|
11279
|
+
props: {
|
|
11280
|
+
multiple: true,
|
|
11281
|
+
treeData: [],
|
|
11282
|
+
treeCheckable: false,
|
|
11283
|
+
notFoundContent: '暂无数据',
|
|
11284
|
+
allowClear: true,
|
|
11285
|
+
showSearch: true,
|
|
11286
|
+
showArrow: true,
|
|
11287
|
+
maxTagCount: 1,
|
|
11288
|
+
optionFilterProp: 'children',
|
|
11289
|
+
filterOption: function filterOption(input, option) {
|
|
11290
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11291
|
+
},
|
|
11292
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11293
|
+
}
|
|
11294
|
+
}
|
|
11295
|
+
}, {
|
|
11296
|
+
name: 'qp-type-in',
|
|
11297
|
+
type: 'select',
|
|
11298
|
+
label: '店铺性质',
|
|
11299
|
+
field: {
|
|
11300
|
+
type: 'select',
|
|
11301
|
+
props: {
|
|
11302
|
+
mode: 'multiple',
|
|
11303
|
+
notFoundContent: '暂无数据',
|
|
11304
|
+
allowClear: true,
|
|
11305
|
+
showSearch: true,
|
|
11306
|
+
showArrow: true,
|
|
11307
|
+
maxTagCount: 1,
|
|
11308
|
+
optionFilterProp: 'children',
|
|
11309
|
+
filterOption: function filterOption(input, option) {
|
|
11310
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11311
|
+
}
|
|
11312
|
+
}
|
|
11313
|
+
},
|
|
11314
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11191
11315
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11192
11316
|
name: 'qp-isEnable-eq',
|
|
11193
11317
|
type: 'select',
|
|
@@ -11216,10 +11340,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11216
11340
|
render: function render(text) {
|
|
11217
11341
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11218
11342
|
}
|
|
11343
|
+
}, {
|
|
11344
|
+
title: '运营组名称',
|
|
11345
|
+
dataIndex: 'groupCode',
|
|
11346
|
+
defaultSort: 7,
|
|
11347
|
+
render: function render(text, record) {
|
|
11348
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11349
|
+
},
|
|
11350
|
+
width: 100
|
|
11351
|
+
}, {
|
|
11352
|
+
title: '所属销售渠道',
|
|
11353
|
+
dataIndex: 'channelName',
|
|
11354
|
+
defaultSort: 4,
|
|
11355
|
+
width: 100
|
|
11356
|
+
}, {
|
|
11357
|
+
title: '营销区域',
|
|
11358
|
+
dataIndex: 'commonRelationAreaName',
|
|
11359
|
+
defaultSort: 5,
|
|
11360
|
+
width: 100
|
|
11361
|
+
}, {
|
|
11362
|
+
title: '店铺性质',
|
|
11363
|
+
dataIndex: 'type',
|
|
11364
|
+
defaultSort: 6,
|
|
11365
|
+
render: function render(text) {
|
|
11366
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11367
|
+
},
|
|
11368
|
+
width: 80
|
|
11219
11369
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11220
11370
|
title: '状态',
|
|
11221
11371
|
dataIndex: 'isEnable',
|
|
11222
|
-
defaultSort:
|
|
11372
|
+
defaultSort: 8,
|
|
11223
11373
|
render: function render(text) {
|
|
11224
11374
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11225
11375
|
}
|
|
@@ -11279,20 +11429,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11279
11429
|
}
|
|
11280
11430
|
}
|
|
11281
11431
|
}
|
|
11432
|
+
}, {
|
|
11433
|
+
name: 'qp-channelCode-in',
|
|
11434
|
+
type: 'treeSelect',
|
|
11435
|
+
label: '销售渠道',
|
|
11436
|
+
field: {
|
|
11437
|
+
type: 'treeSelect',
|
|
11438
|
+
props: {
|
|
11439
|
+
multiple: true,
|
|
11440
|
+
treeData: [],
|
|
11441
|
+
treeCheckable: false,
|
|
11442
|
+
notFoundContent: '暂无数据',
|
|
11443
|
+
allowClear: true,
|
|
11444
|
+
showSearch: true,
|
|
11445
|
+
showArrow: true,
|
|
11446
|
+
maxTagCount: 1,
|
|
11447
|
+
optionFilterProp: 'children',
|
|
11448
|
+
filterOption: function filterOption(input, option) {
|
|
11449
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11450
|
+
},
|
|
11451
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11452
|
+
}
|
|
11453
|
+
}
|
|
11282
11454
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11283
11455
|
name: 'qp-status-eq',
|
|
11284
11456
|
type: 'select',
|
|
11285
11457
|
label: '运营仓状态',
|
|
11286
11458
|
initialSource: getDictionarySource$1('SC00001')
|
|
11287
11459
|
}] : []));
|
|
11288
|
-
var
|
|
11460
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11289
11461
|
querySelectHeadersList: querySelectHeadersList,
|
|
11290
11462
|
extralHeaders: extralHeaders
|
|
11291
11463
|
});
|
|
11292
11464
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11293
11465
|
'qp-status-eq': 1
|
|
11294
|
-
}, getQueryHeadersItem(
|
|
11466
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11467
|
+
'qp-status-eq': 10,
|
|
11468
|
+
'qp-isMain-eq': 1,
|
|
11469
|
+
'qp-type-in': '1,2'
|
|
11470
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11295
11471
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11472
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11473
|
+
return data['parentCode'] === '0';
|
|
11474
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11475
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11296
11476
|
});
|
|
11297
11477
|
modalTableProps = _objectSpread2({
|
|
11298
11478
|
modalTableTitle: '选择运营仓',
|
|
@@ -11320,7 +11500,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11320
11500
|
render: function render(text) {
|
|
11321
11501
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11322
11502
|
}
|
|
11323
|
-
}] : [])
|
|
11503
|
+
}] : []), [{
|
|
11504
|
+
title: '所属销售渠道',
|
|
11505
|
+
dataIndex: 'channelName',
|
|
11506
|
+
defaultSort: 5,
|
|
11507
|
+
width: 100
|
|
11508
|
+
}])
|
|
11324
11509
|
}, modalTableBusProps);
|
|
11325
11510
|
}
|
|
11326
11511
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11469,7 +11654,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11469
11654
|
label: '共享类型',
|
|
11470
11655
|
initialSource: sharingTypeDataList
|
|
11471
11656
|
}];
|
|
11472
|
-
var
|
|
11657
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11473
11658
|
querySelectHeadersList: querySelectHeadersList,
|
|
11474
11659
|
extralHeaders: extralHeaders
|
|
11475
11660
|
});
|
|
@@ -11477,14 +11662,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11477
11662
|
pageSize: 5000,
|
|
11478
11663
|
currentPage: 1,
|
|
11479
11664
|
'qp-companyType-eq': '30'
|
|
11480
|
-
}, getQueryHeadersItem(
|
|
11665
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11481
11666
|
pageSize: 5000,
|
|
11482
11667
|
currentPage: 1
|
|
11483
|
-
}, getQueryHeadersItem(
|
|
11668
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11484
11669
|
pageSize: 5000,
|
|
11485
11670
|
currentPage: 1,
|
|
11486
11671
|
'qp-companyType-eq': '20'
|
|
11487
|
-
}, getQueryHeadersItem(
|
|
11672
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11488
11673
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11489
11674
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11490
11675
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11596,16 +11781,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11596
11781
|
}
|
|
11597
11782
|
}
|
|
11598
11783
|
}
|
|
11784
|
+
}, {
|
|
11785
|
+
name: 'qp-saleChannel-in',
|
|
11786
|
+
type: 'treeSelect',
|
|
11787
|
+
label: '销售渠道',
|
|
11788
|
+
field: {
|
|
11789
|
+
type: 'treeSelect',
|
|
11790
|
+
props: {
|
|
11791
|
+
multiple: true,
|
|
11792
|
+
treeData: [],
|
|
11793
|
+
treeCheckable: false,
|
|
11794
|
+
notFoundContent: '暂无数据',
|
|
11795
|
+
allowClear: true,
|
|
11796
|
+
showSearch: true,
|
|
11797
|
+
showArrow: true,
|
|
11798
|
+
maxTagCount: 1,
|
|
11799
|
+
optionFilterProp: 'children',
|
|
11800
|
+
filterOption: function filterOption(input, option) {
|
|
11801
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11802
|
+
},
|
|
11803
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11804
|
+
}
|
|
11805
|
+
}
|
|
11806
|
+
}, {
|
|
11807
|
+
name: 'qp-refCode-in',
|
|
11808
|
+
type: 'treeSelect',
|
|
11809
|
+
label: '营销区域',
|
|
11810
|
+
field: {
|
|
11811
|
+
type: 'treeSelect',
|
|
11812
|
+
props: {
|
|
11813
|
+
multiple: true,
|
|
11814
|
+
treeData: [],
|
|
11815
|
+
treeCheckable: false,
|
|
11816
|
+
notFoundContent: '暂无数据',
|
|
11817
|
+
allowClear: true,
|
|
11818
|
+
showSearch: true,
|
|
11819
|
+
showArrow: true,
|
|
11820
|
+
maxTagCount: 1,
|
|
11821
|
+
optionFilterProp: 'children',
|
|
11822
|
+
filterOption: function filterOption(input, option) {
|
|
11823
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11824
|
+
},
|
|
11825
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11826
|
+
}
|
|
11827
|
+
}
|
|
11599
11828
|
}];
|
|
11600
|
-
var
|
|
11829
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11601
11830
|
querySelectHeadersList: querySelectHeadersList,
|
|
11602
11831
|
extralHeaders: extralHeaders
|
|
11603
11832
|
});
|
|
11604
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11833
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11834
|
+
'qp-status-eq': 10,
|
|
11835
|
+
'qp-isMain-eq': 1,
|
|
11836
|
+
'qp-type-in': '1,2'
|
|
11837
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11838
|
+
'qp-status-eq': 1
|
|
11839
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11605
11840
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11606
11841
|
var allList = firstElement && [firstElement, firstElement];
|
|
11607
11842
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11608
11843
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11844
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11845
|
+
return data['parentCode'] === '0';
|
|
11846
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11847
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11848
|
+
return data['parent'] === '0';
|
|
11849
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11850
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11851
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11609
11852
|
});
|
|
11610
11853
|
modalTableProps = _objectSpread2({
|
|
11611
11854
|
modalTableTitle: '选择客户',
|
|
@@ -11629,7 +11872,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11629
11872
|
}, {
|
|
11630
11873
|
title: '使用组织',
|
|
11631
11874
|
dataIndex: 'salesOrgName',
|
|
11632
|
-
defaultSort: 4
|
|
11875
|
+
defaultSort: 4,
|
|
11876
|
+
width: 100
|
|
11877
|
+
}, {
|
|
11878
|
+
title: '所属销售渠道',
|
|
11879
|
+
dataIndex: 'channelName',
|
|
11880
|
+
defaultSort: 5,
|
|
11881
|
+
width: 100
|
|
11882
|
+
}, {
|
|
11883
|
+
title: '营销区域',
|
|
11884
|
+
dataIndex: 'commonRelationAreaName',
|
|
11885
|
+
defaultSort: 6,
|
|
11886
|
+
width: 100
|
|
11633
11887
|
}]
|
|
11634
11888
|
}, modalTableBusProps);
|
|
11635
11889
|
}
|
|
@@ -11657,12 +11911,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11657
11911
|
sourceName: 'code'
|
|
11658
11912
|
}, requestConfigProp);
|
|
11659
11913
|
tableSearchForm = [{
|
|
11660
|
-
name: '
|
|
11661
|
-
label: '店铺名称'
|
|
11662
|
-
|
|
11663
|
-
name: 'qp-code-like',
|
|
11664
|
-
label: '店铺编码'
|
|
11914
|
+
name: 'name*multiInput',
|
|
11915
|
+
label: '店铺名称',
|
|
11916
|
+
type: 'multipleQueryInput'
|
|
11665
11917
|
}, {
|
|
11918
|
+
name: 'code*multiInput',
|
|
11919
|
+
label: '店铺编码',
|
|
11920
|
+
type: 'multipleQueryInput'
|
|
11921
|
+
},
|
|
11922
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
11923
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
11924
|
+
{
|
|
11666
11925
|
name: 'qp-conglomerateCode-in',
|
|
11667
11926
|
type: 'select',
|
|
11668
11927
|
label: '归属集团',
|
|
@@ -11763,7 +12022,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11763
12022
|
}
|
|
11764
12023
|
}
|
|
11765
12024
|
}];
|
|
11766
|
-
var
|
|
12025
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
11767
12026
|
querySelectHeadersList: querySelectHeadersList,
|
|
11768
12027
|
extralHeaders: extralHeaders
|
|
11769
12028
|
});
|
|
@@ -11771,21 +12030,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11771
12030
|
pageSize: 5000,
|
|
11772
12031
|
currentPage: 1,
|
|
11773
12032
|
'qp-companyType-eq': '30'
|
|
11774
|
-
}, getQueryHeadersItem(
|
|
12033
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11775
12034
|
pageSize: 5000,
|
|
11776
12035
|
currentPage: 1,
|
|
11777
12036
|
'qp-companyType-eq': '20'
|
|
11778
|
-
}, getQueryHeadersItem(
|
|
12037
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11779
12038
|
// pageSize: 5000,
|
|
11780
12039
|
// currentPage: 1,
|
|
11781
12040
|
'qp-status-eq': '1'
|
|
11782
|
-
}, getQueryHeadersItem(
|
|
12041
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11783
12042
|
pageSize: 5000,
|
|
11784
12043
|
currentPage: 1
|
|
11785
|
-
}, getQueryHeadersItem(
|
|
12044
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11786
12045
|
pageSize: 5000,
|
|
11787
12046
|
currentPage: 1
|
|
11788
|
-
}, getQueryHeadersItem(
|
|
12047
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11789
12048
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11790
12049
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11791
12050
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11851,7 +12110,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11851
12110
|
mappingTextField: 'name',
|
|
11852
12111
|
mappingValueField: 'code',
|
|
11853
12112
|
otherParams: _objectSpread2({
|
|
11854
|
-
sorter: 'desc-id'
|
|
12113
|
+
sorter: 'desc-id',
|
|
12114
|
+
'qp-status-in': 10
|
|
11855
12115
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11856
12116
|
sourceName: 'code'
|
|
11857
12117
|
}, requestConfigProp);
|
|
@@ -11868,12 +12128,9 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11868
12128
|
type: 'select',
|
|
11869
12129
|
label: '商店类型',
|
|
11870
12130
|
initialSource: shopFile2Type
|
|
11871
|
-
},
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
label: '商店状态',
|
|
11875
|
-
initialSource: shopFile2Status
|
|
11876
|
-
}, {
|
|
12131
|
+
},
|
|
12132
|
+
// { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
|
|
12133
|
+
{
|
|
11877
12134
|
name: 'qp-orgCode-in',
|
|
11878
12135
|
type: 'select',
|
|
11879
12136
|
label: '所属销售组织',
|
|
@@ -11892,8 +12149,90 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11892
12149
|
}
|
|
11893
12150
|
}
|
|
11894
12151
|
}
|
|
12152
|
+
}, {
|
|
12153
|
+
name: 'qp-channelCode-in',
|
|
12154
|
+
type: 'treeSelect',
|
|
12155
|
+
label: '所属销售渠道',
|
|
12156
|
+
field: {
|
|
12157
|
+
type: 'treeSelect',
|
|
12158
|
+
props: {
|
|
12159
|
+
multiple: true,
|
|
12160
|
+
treeData: [],
|
|
12161
|
+
treeCheckable: false,
|
|
12162
|
+
notFoundContent: '暂无数据',
|
|
12163
|
+
allowClear: true,
|
|
12164
|
+
showSearch: true,
|
|
12165
|
+
showArrow: true,
|
|
12166
|
+
maxTagCount: 1,
|
|
12167
|
+
optionFilterProp: 'children',
|
|
12168
|
+
filterOption: function filterOption(input, option) {
|
|
12169
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12170
|
+
},
|
|
12171
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12172
|
+
}
|
|
12173
|
+
}
|
|
12174
|
+
}, {
|
|
12175
|
+
name: 'qp-commonRelationAreaCode-in',
|
|
12176
|
+
type: 'treeSelect',
|
|
12177
|
+
label: '营销区域',
|
|
12178
|
+
field: {
|
|
12179
|
+
type: 'treeSelect',
|
|
12180
|
+
props: {
|
|
12181
|
+
multiple: true,
|
|
12182
|
+
treeData: [],
|
|
12183
|
+
treeCheckable: false,
|
|
12184
|
+
notFoundContent: '暂无数据',
|
|
12185
|
+
allowClear: true,
|
|
12186
|
+
showSearch: true,
|
|
12187
|
+
showArrow: true,
|
|
12188
|
+
maxTagCount: 1,
|
|
12189
|
+
optionFilterProp: 'children',
|
|
12190
|
+
filterOption: function filterOption(input, option) {
|
|
12191
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12192
|
+
},
|
|
12193
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
12194
|
+
}
|
|
12195
|
+
}
|
|
12196
|
+
}, {
|
|
12197
|
+
name: 'qp-businessType-in',
|
|
12198
|
+
type: 'select',
|
|
12199
|
+
label: '店铺性质',
|
|
12200
|
+
field: {
|
|
12201
|
+
type: 'select',
|
|
12202
|
+
props: {
|
|
12203
|
+
mode: 'multiple',
|
|
12204
|
+
notFoundContent: '暂无数据',
|
|
12205
|
+
allowClear: true,
|
|
12206
|
+
showSearch: true,
|
|
12207
|
+
showArrow: true,
|
|
12208
|
+
maxTagCount: 1,
|
|
12209
|
+
optionFilterProp: 'children',
|
|
12210
|
+
filterOption: function filterOption(input, option) {
|
|
12211
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12212
|
+
}
|
|
12213
|
+
}
|
|
12214
|
+
},
|
|
12215
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12216
|
+
}, {
|
|
12217
|
+
name: "qp-brandCode-in",
|
|
12218
|
+
label: "品牌",
|
|
12219
|
+
field: {
|
|
12220
|
+
type: 'select',
|
|
12221
|
+
props: {
|
|
12222
|
+
mode: 'multiple',
|
|
12223
|
+
notFoundContent: '暂无数据',
|
|
12224
|
+
allowClear: true,
|
|
12225
|
+
showSearch: true,
|
|
12226
|
+
showArrow: true,
|
|
12227
|
+
maxTagCount: 1,
|
|
12228
|
+
optionFilterProp: 'children',
|
|
12229
|
+
filterOption: function filterOption(input, option) {
|
|
12230
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12231
|
+
}
|
|
12232
|
+
}
|
|
12233
|
+
}
|
|
11895
12234
|
}];
|
|
11896
|
-
var
|
|
12235
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11897
12236
|
querySelectHeadersList: querySelectHeadersList,
|
|
11898
12237
|
extralHeaders: extralHeaders
|
|
11899
12238
|
});
|
|
@@ -11901,8 +12240,27 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11901
12240
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11902
12241
|
'qp-realOrg-eq': true,
|
|
11903
12242
|
'qp-status-eq': 10
|
|
11904
|
-
}, getQueryHeadersItem(
|
|
11905
|
-
|
|
12243
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12244
|
+
'qp-status-eq': 10,
|
|
12245
|
+
'qp-isMain-eq': 1,
|
|
12246
|
+
'qp-type-in': '1,2'
|
|
12247
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12248
|
+
'qp-status-eq': 1
|
|
12249
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12250
|
+
pageSize: 5000,
|
|
12251
|
+
currentPage: 1,
|
|
12252
|
+
'ctl-withAuth': true
|
|
12253
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12254
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12255
|
+
return data['parentCode'] === '0';
|
|
12256
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
12257
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12258
|
+
return data['parent'] === '0';
|
|
12259
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12260
|
+
formatSource(x, 0, 3, tableSearchForm);
|
|
12261
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12262
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12263
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
11906
12264
|
});
|
|
11907
12265
|
modalTableProps = _objectSpread2({
|
|
11908
12266
|
modalTableTitle: '选择商店',
|
|
@@ -11910,19 +12268,23 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11910
12268
|
tableColumns: [{
|
|
11911
12269
|
title: '序号',
|
|
11912
12270
|
dataIndex: 'keyIndex',
|
|
11913
|
-
defaultSort: 0
|
|
12271
|
+
defaultSort: 0,
|
|
12272
|
+
width: 60
|
|
11914
12273
|
}, {
|
|
11915
12274
|
title: '商店编码',
|
|
11916
12275
|
dataIndex: 'code',
|
|
11917
|
-
defaultSort: 1
|
|
12276
|
+
defaultSort: 1,
|
|
12277
|
+
width: 100
|
|
11918
12278
|
}, {
|
|
11919
12279
|
title: '商店名称',
|
|
11920
12280
|
dataIndex: 'name',
|
|
11921
|
-
defaultSort: 2
|
|
12281
|
+
defaultSort: 2,
|
|
12282
|
+
width: 120
|
|
11922
12283
|
}, {
|
|
11923
12284
|
title: '商店类型',
|
|
11924
12285
|
dataIndex: 'type',
|
|
11925
12286
|
defaultSort: 3,
|
|
12287
|
+
width: 100,
|
|
11926
12288
|
render: function render(text) {
|
|
11927
12289
|
var _shopFile2Type$find;
|
|
11928
12290
|
return (_shopFile2Type$find = shopFile2Type.find(function (i) {
|
|
@@ -11932,6 +12294,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11932
12294
|
}, {
|
|
11933
12295
|
title: '启用状态',
|
|
11934
12296
|
dataIndex: 'status',
|
|
12297
|
+
width: 80,
|
|
11935
12298
|
render: function render(text) {
|
|
11936
12299
|
var _shopFile2Status$find;
|
|
11937
12300
|
return (_shopFile2Status$find = shopFile2Status.find(function (i) {
|
|
@@ -11941,8 +12304,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11941
12304
|
}, {
|
|
11942
12305
|
title: '所属销售组织',
|
|
11943
12306
|
dataIndex: 'orgName',
|
|
11944
|
-
defaultSort: 4
|
|
11945
|
-
|
|
12307
|
+
defaultSort: 4,
|
|
12308
|
+
width: 95
|
|
12309
|
+
}, {
|
|
12310
|
+
title: '所属销售渠道',
|
|
12311
|
+
dataIndex: 'channelName',
|
|
12312
|
+
defaultSort: 5,
|
|
12313
|
+
width: 100
|
|
12314
|
+
}, {
|
|
12315
|
+
title: '营销区域',
|
|
12316
|
+
dataIndex: 'commonRelationAreaName',
|
|
12317
|
+
defaultSort: 6,
|
|
12318
|
+
width: 100
|
|
12319
|
+
}, {
|
|
12320
|
+
title: '店铺性质',
|
|
12321
|
+
dataIndex: 'businessType',
|
|
12322
|
+
defaultSort: 7,
|
|
12323
|
+
render: function render(text) {
|
|
12324
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12325
|
+
},
|
|
12326
|
+
width: 80
|
|
12327
|
+
}],
|
|
12328
|
+
noEmptySearchField: true
|
|
11946
12329
|
}, modalTableBusProps);
|
|
11947
12330
|
}
|
|
11948
12331
|
// 核算主体选择器(无弹窗)
|
|
@@ -12106,7 +12489,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12106
12489
|
name: 'qp-officeTelephone-like',
|
|
12107
12490
|
label: '手机号'
|
|
12108
12491
|
}];
|
|
12109
|
-
var
|
|
12492
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12110
12493
|
querySelectHeadersList: querySelectHeadersList,
|
|
12111
12494
|
extralHeaders: extralHeaders
|
|
12112
12495
|
});
|
|
@@ -12114,7 +12497,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12114
12497
|
pageSize: 5000,
|
|
12115
12498
|
currentPage: 1,
|
|
12116
12499
|
'qp-companyType-eq': 20
|
|
12117
|
-
}, getQueryHeadersItem(
|
|
12500
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12118
12501
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12119
12502
|
});
|
|
12120
12503
|
modalTableProps = _objectSpread2({
|
|
@@ -12220,16 +12603,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12220
12603
|
name: 'qp-email-like',
|
|
12221
12604
|
label: '邮箱'
|
|
12222
12605
|
}, {
|
|
12223
|
-
name: 'qp-
|
|
12606
|
+
name: 'qp-phone-like',
|
|
12224
12607
|
label: '手机号'
|
|
12225
12608
|
}]);
|
|
12226
|
-
var
|
|
12609
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12227
12610
|
querySelectHeadersList: querySelectHeadersList,
|
|
12228
12611
|
extralHeaders: extralHeaders
|
|
12229
12612
|
});
|
|
12230
12613
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12231
12614
|
'orgViewCode': 'administrative-organization-view'
|
|
12232
|
-
}, getQueryHeadersItem(
|
|
12615
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12233
12616
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12234
12617
|
});
|
|
12235
12618
|
modalTableProps = _objectSpread2({
|
|
@@ -12280,7 +12663,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12280
12663
|
dataIndex: 'email'
|
|
12281
12664
|
}, {
|
|
12282
12665
|
title: '手机号',
|
|
12283
|
-
dataIndex: '
|
|
12666
|
+
dataIndex: 'phone',
|
|
12284
12667
|
defaultSort: 4,
|
|
12285
12668
|
render: function render(text, record) {
|
|
12286
12669
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12376,17 +12759,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12376
12759
|
name: 'qp-remark-like',
|
|
12377
12760
|
label: '备注'
|
|
12378
12761
|
}];
|
|
12379
|
-
var
|
|
12762
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12380
12763
|
querySelectHeadersList: querySelectHeadersList,
|
|
12381
12764
|
extralHeaders: extralHeaders
|
|
12382
12765
|
});
|
|
12383
12766
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12384
12767
|
pageSize: 5000,
|
|
12385
12768
|
currentPage: 1
|
|
12386
|
-
}, getQueryHeadersItem(
|
|
12769
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12387
12770
|
pageSize: 5000,
|
|
12388
12771
|
currentPage: 1
|
|
12389
|
-
}, getQueryHeadersItem(
|
|
12772
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12390
12773
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12391
12774
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12392
12775
|
});
|
|
@@ -12556,14 +12939,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12556
12939
|
}
|
|
12557
12940
|
}
|
|
12558
12941
|
}];
|
|
12559
|
-
var
|
|
12942
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12560
12943
|
querySelectHeadersList: querySelectHeadersList,
|
|
12561
12944
|
extralHeaders: extralHeaders
|
|
12562
12945
|
});
|
|
12563
12946
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12564
12947
|
pageSize: 5000,
|
|
12565
12948
|
currentPage: 1
|
|
12566
|
-
}, getQueryHeadersItem(
|
|
12949
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12567
12950
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12568
12951
|
});
|
|
12569
12952
|
modalTableProps = _objectSpread2({
|
|
@@ -12660,7 +13043,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12660
13043
|
}
|
|
12661
13044
|
}
|
|
12662
13045
|
}];
|
|
12663
|
-
var
|
|
13046
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12664
13047
|
querySelectHeadersList: querySelectHeadersList,
|
|
12665
13048
|
extralHeaders: extralHeaders
|
|
12666
13049
|
});
|
|
@@ -12668,7 +13051,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12668
13051
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12669
13052
|
'qp-realOrg-eq': true,
|
|
12670
13053
|
'qp-status-eq': 10
|
|
12671
|
-
}, getQueryHeadersItem(
|
|
13054
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12672
13055
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12673
13056
|
});
|
|
12674
13057
|
modalTableProps = _objectSpread2({
|
|
@@ -12774,13 +13157,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12774
13157
|
},
|
|
12775
13158
|
initialSource: nodeType
|
|
12776
13159
|
}];
|
|
12777
|
-
var
|
|
13160
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12778
13161
|
querySelectHeadersList: querySelectHeadersList,
|
|
12779
13162
|
extralHeaders: extralHeaders
|
|
12780
13163
|
});
|
|
12781
13164
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12782
13165
|
'qp-status-eq': 10
|
|
12783
|
-
}, getQueryHeadersItem(
|
|
13166
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12784
13167
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12785
13168
|
});
|
|
12786
13169
|
modalTableProps = _objectSpread2({
|
|
@@ -13106,13 +13489,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13106
13489
|
},
|
|
13107
13490
|
initialSource: nodeType
|
|
13108
13491
|
}];
|
|
13109
|
-
var
|
|
13492
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13110
13493
|
querySelectHeadersList: querySelectHeadersList,
|
|
13111
13494
|
extralHeaders: extralHeaders
|
|
13112
13495
|
});
|
|
13113
13496
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13114
13497
|
'qp-status-eq': 10
|
|
13115
|
-
}, getQueryHeadersItem(
|
|
13498
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13116
13499
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13117
13500
|
});
|
|
13118
13501
|
modalTableProps = _objectSpread2({
|
|
@@ -14057,9 +14440,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14057
14440
|
value = _useState8[0],
|
|
14058
14441
|
setValue = _useState8[1];
|
|
14059
14442
|
var _useState9 = useState([]),
|
|
14060
|
-
|
|
14061
|
-
propertyList =
|
|
14062
|
-
setPropertyList =
|
|
14443
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14444
|
+
propertyList = _useState0[0],
|
|
14445
|
+
setPropertyList = _useState0[1];
|
|
14063
14446
|
useEffect(function () {
|
|
14064
14447
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14065
14448
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14482,7 +14865,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14482
14865
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14483
14866
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14484
14867
|
localstorage = _storageKeyString$spl2[0],
|
|
14485
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
14868
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14486
14869
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14487
14870
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14488
14871
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -14583,46 +14966,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14583
14966
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14584
14967
|
headers: headers
|
|
14585
14968
|
}).then(/*#__PURE__*/function () {
|
|
14586
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14969
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
14587
14970
|
var _ctx$form;
|
|
14588
14971
|
var resData, coverData, data, dataList;
|
|
14589
|
-
return
|
|
14590
|
-
while (1) switch (_context.
|
|
14972
|
+
return _regenerator().w(function (_context) {
|
|
14973
|
+
while (1) switch (_context.n) {
|
|
14591
14974
|
case 0:
|
|
14592
14975
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14593
14976
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14594
|
-
_context.
|
|
14977
|
+
_context.n = 4;
|
|
14595
14978
|
break;
|
|
14596
14979
|
}
|
|
14597
14980
|
data = resData.data;
|
|
14598
14981
|
if (!remoteSource.converter) {
|
|
14599
|
-
_context.
|
|
14982
|
+
_context.n = 2;
|
|
14600
14983
|
break;
|
|
14601
14984
|
}
|
|
14602
|
-
_context.
|
|
14985
|
+
_context.n = 1;
|
|
14603
14986
|
return remoteSource.converter({
|
|
14604
14987
|
data: [data]
|
|
14605
14988
|
});
|
|
14606
|
-
case
|
|
14607
|
-
coverData = _context.
|
|
14608
|
-
_context.
|
|
14989
|
+
case 1:
|
|
14990
|
+
coverData = _context.v;
|
|
14991
|
+
_context.n = 3;
|
|
14609
14992
|
break;
|
|
14610
|
-
case
|
|
14993
|
+
case 2:
|
|
14611
14994
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14612
14995
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14613
14996
|
return _mapSearchTree(ites);
|
|
14614
14997
|
}) || [];
|
|
14615
|
-
case
|
|
14616
|
-
_context.
|
|
14998
|
+
case 3:
|
|
14999
|
+
_context.n = 5;
|
|
14617
15000
|
break;
|
|
14618
|
-
case
|
|
15001
|
+
case 4:
|
|
14619
15002
|
coverData = [];
|
|
14620
|
-
case
|
|
15003
|
+
case 5:
|
|
14621
15004
|
setTreeData(coverData);
|
|
14622
15005
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14623
|
-
case
|
|
14624
|
-
|
|
14625
|
-
return _context.stop();
|
|
15006
|
+
case 6:
|
|
15007
|
+
return _context.a(2);
|
|
14626
15008
|
}
|
|
14627
15009
|
}, _callee);
|
|
14628
15010
|
}));
|
|
@@ -17025,7 +17407,9 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
17025
17407
|
title = _ref.title,
|
|
17026
17408
|
pathToRegexp = _ref.pathToRegexp,
|
|
17027
17409
|
backHistoryPath = _ref.backHistoryPath,
|
|
17028
|
-
onBack = _ref.onBack
|
|
17410
|
+
onBack = _ref.onBack,
|
|
17411
|
+
tradeType = _ref.tradeType,
|
|
17412
|
+
fromStatus = _ref.fromStatus;
|
|
17029
17413
|
var _useState3 = useState(false),
|
|
17030
17414
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
17031
17415
|
isFullScreen = _useState4[0],
|
|
@@ -17108,14 +17492,50 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
17108
17492
|
}
|
|
17109
17493
|
}
|
|
17110
17494
|
};
|
|
17495
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17496
|
+
try {
|
|
17497
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17498
|
+
} catch (e) {
|
|
17499
|
+
return [];
|
|
17500
|
+
}
|
|
17501
|
+
};
|
|
17502
|
+
var filterByFlowRules = function filterByFlowRules(list, ctx) {
|
|
17503
|
+
var _find;
|
|
17504
|
+
var flowList = getFlowButtons();
|
|
17505
|
+
if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
|
|
17506
|
+
var entry = flowList.find(function (i) {
|
|
17507
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
|
|
17508
|
+
});
|
|
17509
|
+
if (!entry) return list;
|
|
17510
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17511
|
+
var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17512
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
|
|
17513
|
+
})) === null || _find === void 0 ? void 0 : _find.buttons) || [];
|
|
17514
|
+
var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17515
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17516
|
+
}));
|
|
17517
|
+
return list.filter(function (ui) {
|
|
17518
|
+
var _ui$props3, _ui$props4;
|
|
17519
|
+
var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
|
|
17520
|
+
if (!uiCode) return true;
|
|
17521
|
+
if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
|
|
17522
|
+
return allowedSet.has(uiCode);
|
|
17523
|
+
});
|
|
17524
|
+
};
|
|
17111
17525
|
var renderPageActionList = function renderPageActionList(actionLists) {
|
|
17112
17526
|
var _actionLists$;
|
|
17113
17527
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17114
17528
|
var visibleActions = actionLists.filter(function (action) {
|
|
17115
|
-
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.
|
|
17529
|
+
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
|
|
17116
17530
|
return item === action.code;
|
|
17117
17531
|
}));
|
|
17118
17532
|
});
|
|
17533
|
+
if (typeof tradeType === 'number') {
|
|
17534
|
+
visibleActions = filterByFlowRules(visibleActions, {
|
|
17535
|
+
tradeType: tradeType,
|
|
17536
|
+
status: fromStatus
|
|
17537
|
+
});
|
|
17538
|
+
}
|
|
17119
17539
|
var renderButton = function renderButton(item, type) {
|
|
17120
17540
|
return /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
17121
17541
|
type: type || 'primary',
|
|
@@ -17228,6 +17648,68 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
17228
17648
|
}
|
|
17229
17649
|
return true;
|
|
17230
17650
|
});
|
|
17651
|
+
var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
|
|
17652
|
+
var _ref4 = params || {},
|
|
17653
|
+
tradeType = _ref4.tradeType,
|
|
17654
|
+
fromStatus = _ref4.fromStatus;
|
|
17655
|
+
var getFlowButtons = function getFlowButtons() {
|
|
17656
|
+
try {
|
|
17657
|
+
return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
17658
|
+
} catch (e) {
|
|
17659
|
+
return [];
|
|
17660
|
+
}
|
|
17661
|
+
};
|
|
17662
|
+
var evalVisible = function evalVisible(v, ctx) {
|
|
17663
|
+
if (typeof v === 'string') {
|
|
17664
|
+
var expr = v.replace(/^#\{|\}$/g, '');
|
|
17665
|
+
try {
|
|
17666
|
+
var keys = Object.keys(ctx || {});
|
|
17667
|
+
var vals = keys.map(function (k) {
|
|
17668
|
+
return ctx[k];
|
|
17669
|
+
});
|
|
17670
|
+
// eslint-disable-next-line no-new-func
|
|
17671
|
+
return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
|
|
17672
|
+
} catch (e) {
|
|
17673
|
+
return true;
|
|
17674
|
+
}
|
|
17675
|
+
}
|
|
17676
|
+
if (v === undefined) return true;
|
|
17677
|
+
return !!v;
|
|
17678
|
+
};
|
|
17679
|
+
var ctrlSet = new Set();
|
|
17680
|
+
var allowedSet = new Set();
|
|
17681
|
+
if (typeof tradeType === 'number') {
|
|
17682
|
+
var flowList = getFlowButtons();
|
|
17683
|
+
var entry = flowList.find(function (i) {
|
|
17684
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
|
|
17685
|
+
});
|
|
17686
|
+
if (entry) {
|
|
17687
|
+
var _find2;
|
|
17688
|
+
ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
17689
|
+
var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
|
|
17690
|
+
return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
|
|
17691
|
+
})) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
|
|
17692
|
+
allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
|
|
17693
|
+
return ctrlSet.size ? ctrlSet.has(b) : true;
|
|
17694
|
+
}));
|
|
17695
|
+
}
|
|
17696
|
+
}
|
|
17697
|
+
var processed = (buttons || []).map(function (btn) {
|
|
17698
|
+
var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
|
|
17699
|
+
var vis = visBase;
|
|
17700
|
+
if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
|
|
17701
|
+
if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
|
|
17702
|
+
vis = visBase;
|
|
17703
|
+
} else {
|
|
17704
|
+
vis = visBase && allowedSet.has(btn.code);
|
|
17705
|
+
}
|
|
17706
|
+
}
|
|
17707
|
+
return _objectSpread2(_objectSpread2({}, btn), {}, {
|
|
17708
|
+
visible: vis
|
|
17709
|
+
});
|
|
17710
|
+
});
|
|
17711
|
+
return processed;
|
|
17712
|
+
};
|
|
17231
17713
|
|
|
17232
17714
|
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
17233
17715
|
styleInject(css_248z$h);
|
|
@@ -17521,6 +18003,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17521
18003
|
title: '列首',
|
|
17522
18004
|
dataIndex: 'fixedLeft',
|
|
17523
18005
|
render: function render(text, record) {
|
|
18006
|
+
if (_this.props.disableColumnFixed) {
|
|
18007
|
+
return null;
|
|
18008
|
+
}
|
|
17524
18009
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
17525
18010
|
onClick: function onClick() {
|
|
17526
18011
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -17597,6 +18082,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17597
18082
|
title: '列尾',
|
|
17598
18083
|
dataIndex: 'fixedRight',
|
|
17599
18084
|
render: function render(text, record) {
|
|
18085
|
+
if (_this.props.disableColumnFixed) {
|
|
18086
|
+
return null;
|
|
18087
|
+
}
|
|
17600
18088
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
17601
18089
|
onClick: function onClick() {
|
|
17602
18090
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -18846,7 +19334,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18846
19334
|
}, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
|
|
18847
19335
|
};
|
|
18848
19336
|
var BsSulaQueryTable = (function (props) {
|
|
18849
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19337
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
18850
19338
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
18851
19339
|
var rowsRef = useRef(null);
|
|
18852
19340
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -18924,38 +19412,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18924
19412
|
};
|
|
18925
19413
|
var refs = useRef(null);
|
|
18926
19414
|
var _useState9 = useState(''),
|
|
18927
|
-
|
|
18928
|
-
pagePath =
|
|
18929
|
-
setPagePath =
|
|
19415
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19416
|
+
pagePath = _useState0[0],
|
|
19417
|
+
setPagePath = _useState0[1];
|
|
18930
19418
|
var _useLocation = useLocation(),
|
|
18931
19419
|
pathname = _useLocation.pathname,
|
|
18932
19420
|
_useLocation$state = _useLocation.state,
|
|
18933
19421
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18934
|
-
var
|
|
18935
|
-
|
|
18936
|
-
isFullScreen =
|
|
18937
|
-
setIsFnllScreen =
|
|
19422
|
+
var _useState1 = useState(false),
|
|
19423
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19424
|
+
isFullScreen = _useState10[0],
|
|
19425
|
+
setIsFnllScreen = _useState10[1];
|
|
18938
19426
|
// @ts-nocheck
|
|
18939
19427
|
var value = props;
|
|
18940
19428
|
var _props$fields = props.fields,
|
|
18941
19429
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18942
|
-
var
|
|
18943
|
-
|
|
18944
|
-
showColumn =
|
|
18945
|
-
setShowColumns =
|
|
19430
|
+
var _useState11 = useState([]),
|
|
19431
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19432
|
+
showColumn = _useState12[0],
|
|
19433
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
18946
19434
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18947
|
-
var
|
|
19435
|
+
var _useState13 = useState(originSearchFields),
|
|
19436
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19437
|
+
showSearchFields = _useState14[0],
|
|
19438
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19439
|
+
var _useState15 = useState([]),
|
|
18948
19440
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
var _useState17 = useState(
|
|
19441
|
+
showExportColumn = _useState16[0],
|
|
19442
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19443
|
+
var _useState17 = useState(''),
|
|
18952
19444
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
var _useState19 = useState(''),
|
|
18956
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
18957
|
-
height = _useState20[0],
|
|
18958
|
-
setHeight = _useState20[1];
|
|
19445
|
+
height = _useState18[0],
|
|
19446
|
+
setHeight = _useState18[1];
|
|
18959
19447
|
var sortTableRef = useRef(null);
|
|
18960
19448
|
var searchTableRef = useRef(null);
|
|
18961
19449
|
var exportTableRef = useRef(null);
|
|
@@ -19208,10 +19696,22 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19208
19696
|
};
|
|
19209
19697
|
}
|
|
19210
19698
|
}, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
|
|
19211
|
-
// @ts-ignore
|
|
19212
19699
|
if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
|
|
19213
|
-
// @ts-ignore
|
|
19214
19700
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
19701
|
+
// 分页大小改变时,更新本地存储
|
|
19702
|
+
var onShowSizeChange = function onShowSizeChange(current, size) {
|
|
19703
|
+
var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
|
|
19704
|
+
allPaginationData[bsTableCode] = size;
|
|
19705
|
+
localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
|
|
19706
|
+
};
|
|
19707
|
+
tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
|
|
19708
|
+
// 从本地存储中获取分页大小
|
|
19709
|
+
var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
|
|
19710
|
+
if (pageSize) {
|
|
19711
|
+
tableProps.initialPaging.pagination.pageSize = pageSize;
|
|
19712
|
+
tableProps.pageSize = pageSize;
|
|
19713
|
+
tableProps.defaultPageSize = pageSize;
|
|
19714
|
+
}
|
|
19215
19715
|
}
|
|
19216
19716
|
return tableProps;
|
|
19217
19717
|
};
|
|
@@ -19296,13 +19796,124 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19296
19796
|
if (value.rowSelection) {
|
|
19297
19797
|
value.rowSelection.columnWidth = 50;
|
|
19298
19798
|
}
|
|
19799
|
+
if (typeof props.tradeType !== 'number') {
|
|
19800
|
+
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19801
|
+
actionsRender: actionsRender
|
|
19802
|
+
});
|
|
19803
|
+
}
|
|
19804
|
+
try {
|
|
19805
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19806
|
+
var entry = raw.find(function (i) {
|
|
19807
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19808
|
+
});
|
|
19809
|
+
if (entry) {
|
|
19810
|
+
var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19811
|
+
var allowedTopSet = new Set();
|
|
19812
|
+
((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
|
|
19813
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19814
|
+
if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
|
|
19815
|
+
});
|
|
19816
|
+
});
|
|
19817
|
+
console.debug('[FlowCtrl:top]', {
|
|
19818
|
+
ctrlSize: ctrlSet.size,
|
|
19819
|
+
allowedTopSize: allowedTopSet.size
|
|
19820
|
+
});
|
|
19821
|
+
actionsRender = actionsRender.filter(function (ui) {
|
|
19822
|
+
var code = ui === null || ui === void 0 ? void 0 : ui.code;
|
|
19823
|
+
if (!code) return true;
|
|
19824
|
+
if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
|
|
19825
|
+
var keep = allowedTopSet.has(code);
|
|
19826
|
+
if (code) console.debug('[FlowCtrl:top-element]', {
|
|
19827
|
+
code: code,
|
|
19828
|
+
keep: keep
|
|
19829
|
+
});
|
|
19830
|
+
return keep;
|
|
19831
|
+
});
|
|
19832
|
+
}
|
|
19833
|
+
} catch (e) {}
|
|
19834
|
+
var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
|
|
19835
|
+
if (remoteDataSource) {
|
|
19836
|
+
var _ctrlSet = new Set();
|
|
19837
|
+
var btnStatusMap = new Map();
|
|
19838
|
+
try {
|
|
19839
|
+
var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19840
|
+
var _entry = _raw.find(function (i) {
|
|
19841
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19842
|
+
});
|
|
19843
|
+
if (_entry) {
|
|
19844
|
+
_ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
|
|
19845
|
+
((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
|
|
19846
|
+
((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
|
|
19847
|
+
if (!_ctrlSet.size || _ctrlSet.has(b)) {
|
|
19848
|
+
var set = btnStatusMap.get(b) || new Set();
|
|
19849
|
+
set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
|
|
19850
|
+
btnStatusMap.set(b, set);
|
|
19851
|
+
}
|
|
19852
|
+
});
|
|
19853
|
+
});
|
|
19854
|
+
}
|
|
19855
|
+
} catch (e) {}
|
|
19856
|
+
var getByPath = function getByPath(obj, path) {
|
|
19857
|
+
if (!obj || !path) return undefined;
|
|
19858
|
+
var parts = path.split('.');
|
|
19859
|
+
var cur = obj;
|
|
19860
|
+
for (var i = 0; i < parts.length; i++) {
|
|
19861
|
+
var _cur;
|
|
19862
|
+
cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
|
|
19863
|
+
if (cur === undefined) return undefined;
|
|
19864
|
+
}
|
|
19865
|
+
return cur;
|
|
19866
|
+
};
|
|
19867
|
+
var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
|
|
19868
|
+
var augment = function augment(result) {
|
|
19869
|
+
if (!btnStatusMap || btnStatusMap.size === 0) return result;
|
|
19870
|
+
if (result && Array.isArray(result.list)) {
|
|
19871
|
+
result.list = result.list.map(function (rec) {
|
|
19872
|
+
var _ref2, _ref3, _ref4, _rec$status;
|
|
19873
|
+
var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
|
|
19874
|
+
var map = {};
|
|
19875
|
+
btnStatusMap.forEach(function (set, code) {
|
|
19876
|
+
map[code] = set.has(status) ? true : undefined;
|
|
19877
|
+
});
|
|
19878
|
+
return _objectSpread2(_objectSpread2({}, rec), {}, {
|
|
19879
|
+
__flowAllowedMap: map
|
|
19880
|
+
});
|
|
19881
|
+
});
|
|
19882
|
+
}
|
|
19883
|
+
return result;
|
|
19884
|
+
};
|
|
19885
|
+
if (Array.isArray(remoteDataSource.converter)) {
|
|
19886
|
+
var stages = remoteDataSource.converter;
|
|
19887
|
+
var pipeline = function pipeline(args) {
|
|
19888
|
+
var res = args;
|
|
19889
|
+
for (var i = 0; i < stages.length; i++) {
|
|
19890
|
+
res = stages[i](res);
|
|
19891
|
+
}
|
|
19892
|
+
res = augment(res);
|
|
19893
|
+
return res;
|
|
19894
|
+
};
|
|
19895
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19896
|
+
converter: pipeline
|
|
19897
|
+
});
|
|
19898
|
+
} else if (typeof remoteDataSource.converter === 'function') {
|
|
19899
|
+
var orig = remoteDataSource.converter;
|
|
19900
|
+
var wrap = function wrap(args) {
|
|
19901
|
+
var res = orig(args);
|
|
19902
|
+
return augment(res);
|
|
19903
|
+
};
|
|
19904
|
+
remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
|
|
19905
|
+
converter: wrap
|
|
19906
|
+
});
|
|
19907
|
+
}
|
|
19908
|
+
}
|
|
19299
19909
|
return _objectSpread2(_objectSpread2({}, value), {}, {
|
|
19300
|
-
actionsRender: actionsRender
|
|
19910
|
+
actionsRender: actionsRender,
|
|
19911
|
+
remoteDataSource: remoteDataSource
|
|
19301
19912
|
});
|
|
19302
19913
|
};
|
|
19303
19914
|
var handleResize = function handleResize(index) {
|
|
19304
|
-
return function (e,
|
|
19305
|
-
var size =
|
|
19915
|
+
return function (e, _ref5) {
|
|
19916
|
+
var size = _ref5.size;
|
|
19306
19917
|
setShowColumns(function (columns) {
|
|
19307
19918
|
var newColumns = _toConsumableArray(columns);
|
|
19308
19919
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
@@ -19330,11 +19941,66 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19330
19941
|
// 优化一下 减少复杂度
|
|
19331
19942
|
var titleMap = toMapByKey(value.columns, 'title');
|
|
19332
19943
|
// 加上排序
|
|
19944
|
+
var hasFlowEntry = typeof props.tradeType === 'number' && function () {
|
|
19945
|
+
try {
|
|
19946
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19947
|
+
return !!raw.find(function (i) {
|
|
19948
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19949
|
+
});
|
|
19950
|
+
} catch (e) {
|
|
19951
|
+
return false;
|
|
19952
|
+
}
|
|
19953
|
+
}();
|
|
19954
|
+
var hasControlRange = typeof props.tradeType === 'number' && function () {
|
|
19955
|
+
try {
|
|
19956
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19957
|
+
var entry = raw.find(function (i) {
|
|
19958
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19959
|
+
});
|
|
19960
|
+
if (!entry) return false;
|
|
19961
|
+
var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19962
|
+
return _ctrlSet2.size > 0;
|
|
19963
|
+
} catch (e) {
|
|
19964
|
+
return false;
|
|
19965
|
+
}
|
|
19966
|
+
}();
|
|
19967
|
+
var toExpr = function toExpr(v) {
|
|
19968
|
+
if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
|
|
19969
|
+
if (v === undefined) return 'true';
|
|
19970
|
+
return v ? 'true' : 'false';
|
|
19971
|
+
};
|
|
19972
|
+
// 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
|
|
19973
|
+
var ctrlSet = new Set();
|
|
19974
|
+
if (hasFlowEntry) {
|
|
19975
|
+
try {
|
|
19976
|
+
var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
|
|
19977
|
+
var entry = raw.find(function (i) {
|
|
19978
|
+
return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
|
|
19979
|
+
});
|
|
19980
|
+
if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
|
|
19981
|
+
} catch (e) {}
|
|
19982
|
+
}
|
|
19983
|
+
var augmentPermissionRender = function augmentPermissionRender(arr, set) {
|
|
19984
|
+
return arr.map(function (el) {
|
|
19985
|
+
var code = el === null || el === void 0 ? void 0 : el.code;
|
|
19986
|
+
if (!code) return el;
|
|
19987
|
+
// 非控制范围按钮不追加流程控制,保持原 visible
|
|
19988
|
+
if (!set || set.size === 0 || !set.has(code)) return el;
|
|
19989
|
+
var base = toExpr(el.visible);
|
|
19990
|
+
var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
|
|
19991
|
+
return _objectSpread2(_objectSpread2({}, el), {}, {
|
|
19992
|
+
visible: "#{(".concat(base, ") && (").concat(flow, ")}")
|
|
19993
|
+
});
|
|
19994
|
+
});
|
|
19995
|
+
};
|
|
19333
19996
|
var cols = showColumn.map(function (i) {
|
|
19334
|
-
var
|
|
19997
|
+
var orig = titleMap[renderToString(i.title)] || {};
|
|
19998
|
+
var origRender = orig.render;
|
|
19999
|
+
var isPerm = orig.isPermissionColumn;
|
|
20000
|
+
var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
|
|
19335
20001
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
19336
|
-
isPermissionColumn:
|
|
19337
|
-
render:
|
|
20002
|
+
isPermissionColumn: isPerm,
|
|
20003
|
+
render: newRender
|
|
19338
20004
|
});
|
|
19339
20005
|
});
|
|
19340
20006
|
cols.forEach(function (i) {
|
|
@@ -19507,6 +20173,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19507
20173
|
id: "bs-sula-query-table"
|
|
19508
20174
|
}, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
19509
20175
|
ref: sortTableRef,
|
|
20176
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
19510
20177
|
setShowColumns: setResizeShowColumns,
|
|
19511
20178
|
showColumn: showColumn,
|
|
19512
20179
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -19583,7 +20250,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
19583
20250
|
if (!match) return null;
|
|
19584
20251
|
var _match = _toArray(match),
|
|
19585
20252
|
url = _match[0],
|
|
19586
|
-
values = _match.slice(1);
|
|
20253
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
19587
20254
|
var isExact = pathname === url;
|
|
19588
20255
|
if (exact && !isExact) return null;
|
|
19589
20256
|
return {
|
|
@@ -19605,7 +20272,7 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
19605
20272
|
}
|
|
19606
20273
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19607
20274
|
var resultList = [];
|
|
19608
|
-
var newRouter = cloneDeep(router);
|
|
20275
|
+
var newRouter = cloneDeep$1(router);
|
|
19609
20276
|
var _deep = function deep(router) {
|
|
19610
20277
|
if (router && Array.isArray(router)) {
|
|
19611
20278
|
router.forEach(function (item) {
|
|
@@ -20003,22 +20670,19 @@ function outLogin(_x) {
|
|
|
20003
20670
|
return _outLogin.apply(this, arguments);
|
|
20004
20671
|
}
|
|
20005
20672
|
function _outLogin() {
|
|
20006
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20673
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20007
20674
|
var res;
|
|
20008
|
-
return
|
|
20009
|
-
while (1) switch (_context.
|
|
20675
|
+
return _regenerator().w(function (_context) {
|
|
20676
|
+
while (1) switch (_context.n) {
|
|
20010
20677
|
case 0:
|
|
20011
|
-
_context.
|
|
20678
|
+
_context.n = 1;
|
|
20012
20679
|
return requestUtil({
|
|
20013
20680
|
url: '/user/web/loginOut',
|
|
20014
20681
|
method: 'GET'
|
|
20015
20682
|
});
|
|
20016
|
-
case
|
|
20017
|
-
res = _context.
|
|
20018
|
-
return _context.
|
|
20019
|
-
case 4:
|
|
20020
|
-
case "end":
|
|
20021
|
-
return _context.stop();
|
|
20683
|
+
case 1:
|
|
20684
|
+
res = _context.v;
|
|
20685
|
+
return _context.a(2, res);
|
|
20022
20686
|
}
|
|
20023
20687
|
}, _callee);
|
|
20024
20688
|
}));
|
|
@@ -20145,20 +20809,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20145
20809
|
});
|
|
20146
20810
|
};
|
|
20147
20811
|
var loginOut = /*#__PURE__*/function () {
|
|
20148
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20812
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20149
20813
|
var sessionId;
|
|
20150
|
-
return
|
|
20151
|
-
while (1) switch (_context.
|
|
20814
|
+
return _regenerator().w(function (_context) {
|
|
20815
|
+
while (1) switch (_context.n) {
|
|
20152
20816
|
case 0:
|
|
20153
|
-
_context.
|
|
20817
|
+
_context.n = 1;
|
|
20154
20818
|
return getSessionId();
|
|
20155
|
-
case
|
|
20156
|
-
sessionId = _context.
|
|
20157
|
-
_context.
|
|
20819
|
+
case 1:
|
|
20820
|
+
sessionId = _context.v;
|
|
20821
|
+
_context.n = 2;
|
|
20158
20822
|
return outLogin({
|
|
20159
20823
|
sessionId: sessionId
|
|
20160
20824
|
});
|
|
20161
|
-
case
|
|
20825
|
+
case 2:
|
|
20162
20826
|
// @ts-ignore
|
|
20163
20827
|
if (BUILD_TYPE) {
|
|
20164
20828
|
message$1.success('退出登录成功');
|
|
@@ -20168,9 +20832,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20168
20832
|
} else {
|
|
20169
20833
|
setLoginOutPath();
|
|
20170
20834
|
}
|
|
20171
|
-
case
|
|
20172
|
-
|
|
20173
|
-
return _context.stop();
|
|
20835
|
+
case 3:
|
|
20836
|
+
return _context.a(2);
|
|
20174
20837
|
}
|
|
20175
20838
|
}, _callee);
|
|
20176
20839
|
}));
|
|
@@ -20257,18 +20920,15 @@ function getStoreByName(_x) {
|
|
|
20257
20920
|
return _getStoreByName.apply(this, arguments);
|
|
20258
20921
|
}
|
|
20259
20922
|
function _getStoreByName() {
|
|
20260
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20261
|
-
return
|
|
20262
|
-
while (1) switch (_context.
|
|
20923
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20924
|
+
return _regenerator().w(function (_context) {
|
|
20925
|
+
while (1) switch (_context.n) {
|
|
20263
20926
|
case 0:
|
|
20264
|
-
return _context.
|
|
20927
|
+
return _context.a(2, requestUtil({
|
|
20265
20928
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20266
20929
|
method: 'GET',
|
|
20267
20930
|
params: _objectSpread2({}, params)
|
|
20268
20931
|
}));
|
|
20269
|
-
case 1:
|
|
20270
|
-
case "end":
|
|
20271
|
-
return _context.stop();
|
|
20272
20932
|
}
|
|
20273
20933
|
}, _callee);
|
|
20274
20934
|
}));
|
|
@@ -20303,33 +20963,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20303
20963
|
openSelect = _useState8[0],
|
|
20304
20964
|
setOpenSelect = _useState8[1];
|
|
20305
20965
|
var _useState9 = useState([]),
|
|
20306
|
-
|
|
20307
|
-
options =
|
|
20308
|
-
setOptions =
|
|
20309
|
-
var
|
|
20966
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20967
|
+
options = _useState0[0],
|
|
20968
|
+
setOptions = _useState0[1];
|
|
20969
|
+
var _useState1 = useState([]),
|
|
20970
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20971
|
+
rescouse = _useState10[0],
|
|
20972
|
+
setRescouse = _useState10[1];
|
|
20973
|
+
var _useState11 = useState(''),
|
|
20310
20974
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20311
|
-
|
|
20312
|
-
|
|
20313
|
-
var _useState13 = useState(
|
|
20314
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20315
|
-
searchValue = _useState14[0],
|
|
20316
|
-
setSearchValue = _useState14[1];
|
|
20317
|
-
var _useState15 = useState([{
|
|
20975
|
+
searchValue = _useState12[0],
|
|
20976
|
+
setSearchValue = _useState12[1];
|
|
20977
|
+
var _useState13 = useState([{
|
|
20318
20978
|
label: name,
|
|
20319
20979
|
value: code
|
|
20320
20980
|
}]),
|
|
20321
|
-
|
|
20322
|
-
store =
|
|
20323
|
-
setStore =
|
|
20981
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20982
|
+
store = _useState14[0],
|
|
20983
|
+
setStore = _useState14[1];
|
|
20324
20984
|
function fetchUserList(_x, _x2) {
|
|
20325
20985
|
return _fetchUserList.apply(this, arguments);
|
|
20326
20986
|
}
|
|
20327
20987
|
function _fetchUserList() {
|
|
20328
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20329
|
-
return
|
|
20330
|
-
while (1) switch (_context3.
|
|
20988
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20989
|
+
return _regenerator().w(function (_context3) {
|
|
20990
|
+
while (1) switch (_context3.n) {
|
|
20331
20991
|
case 0:
|
|
20332
|
-
return _context3.
|
|
20992
|
+
return _context3.a(2, getStoreByName({
|
|
20333
20993
|
orgName: storeName ? storeName : undefined,
|
|
20334
20994
|
platCompanyCode: init ? undefined : key,
|
|
20335
20995
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20348,9 +21008,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20348
21008
|
};
|
|
20349
21009
|
});
|
|
20350
21010
|
}));
|
|
20351
|
-
case 1:
|
|
20352
|
-
case "end":
|
|
20353
|
-
return _context3.stop();
|
|
20354
21011
|
}
|
|
20355
21012
|
}, _callee3);
|
|
20356
21013
|
}));
|
|
@@ -20373,20 +21030,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20373
21030
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20374
21031
|
}, [debounceTimeout, key]);
|
|
20375
21032
|
var changeInput = /*#__PURE__*/function () {
|
|
20376
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21033
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20377
21034
|
var res;
|
|
20378
|
-
return
|
|
20379
|
-
while (1) switch (_context.
|
|
21035
|
+
return _regenerator().w(function (_context) {
|
|
21036
|
+
while (1) switch (_context.n) {
|
|
20380
21037
|
case 0:
|
|
20381
|
-
_context.
|
|
21038
|
+
_context.n = 1;
|
|
20382
21039
|
return debounceFetcher(str);
|
|
20383
|
-
case
|
|
20384
|
-
res = _context.
|
|
21040
|
+
case 1:
|
|
21041
|
+
res = _context.v;
|
|
20385
21042
|
setOptions(res);
|
|
20386
21043
|
setRescouse(res);
|
|
20387
|
-
case
|
|
20388
|
-
|
|
20389
|
-
return _context.stop();
|
|
21044
|
+
case 2:
|
|
21045
|
+
return _context.a(2);
|
|
20390
21046
|
}
|
|
20391
21047
|
}, _callee);
|
|
20392
21048
|
}));
|
|
@@ -20395,15 +21051,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20395
21051
|
};
|
|
20396
21052
|
}();
|
|
20397
21053
|
useEffect(function () {
|
|
20398
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21054
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20399
21055
|
var res;
|
|
20400
|
-
return
|
|
20401
|
-
while (1) switch (_context2.
|
|
21056
|
+
return _regenerator().w(function (_context2) {
|
|
21057
|
+
while (1) switch (_context2.n) {
|
|
20402
21058
|
case 0:
|
|
20403
|
-
_context2.
|
|
21059
|
+
_context2.n = 1;
|
|
20404
21060
|
return fetchUserList(undefined, true);
|
|
20405
|
-
case
|
|
20406
|
-
res = _context2.
|
|
21061
|
+
case 1:
|
|
21062
|
+
res = _context2.v;
|
|
20407
21063
|
res.map(function (item, indexNumber) {
|
|
20408
21064
|
if (item.label === name) {
|
|
20409
21065
|
setIndex(indexNumber);
|
|
@@ -20419,9 +21075,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20419
21075
|
});
|
|
20420
21076
|
setOptions(res);
|
|
20421
21077
|
setRescouse(res);
|
|
20422
|
-
case
|
|
20423
|
-
|
|
20424
|
-
return _context2.stop();
|
|
21078
|
+
case 2:
|
|
21079
|
+
return _context2.a(2);
|
|
20425
21080
|
}
|
|
20426
21081
|
}, _callee2);
|
|
20427
21082
|
}))();
|
|
@@ -20558,7 +21213,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
20558
21213
|
};
|
|
20559
21214
|
var initRoute = function initRoute(router, name) {
|
|
20560
21215
|
var resultList = [];
|
|
20561
|
-
var newRouter = cloneDeep
|
|
21216
|
+
var newRouter = cloneDeep(router);
|
|
20562
21217
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
20563
21218
|
var _deep = function deep(router) {
|
|
20564
21219
|
if (router && Array.isArray(router)) {
|
|
@@ -21470,25 +22125,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21470
22125
|
currentOneLevel = _useState8[0],
|
|
21471
22126
|
setCurrentOneLevel = _useState8[1];
|
|
21472
22127
|
var _useState9 = useState([]),
|
|
21473
|
-
|
|
21474
|
-
SearhData =
|
|
21475
|
-
setSearchMenuData =
|
|
21476
|
-
var
|
|
22128
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
22129
|
+
SearhData = _useState0[0],
|
|
22130
|
+
setSearchMenuData = _useState0[1];
|
|
22131
|
+
var _useState1 = useState(600),
|
|
22132
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
22133
|
+
rightMenuHeight = _useState10[0],
|
|
22134
|
+
setHeight = _useState10[1];
|
|
22135
|
+
var _useState11 = useState(900),
|
|
21477
22136
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
var _useState13 = useState(
|
|
22137
|
+
drawHeight = _useState12[0],
|
|
22138
|
+
setDrawHeight = _useState12[1];
|
|
22139
|
+
var _useState13 = useState(false),
|
|
21481
22140
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21482
|
-
|
|
21483
|
-
|
|
22141
|
+
moreBtnShow = _useState14[0],
|
|
22142
|
+
setMoreBtnShow = _useState14[1];
|
|
21484
22143
|
var _useState15 = useState(false),
|
|
21485
22144
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
var _useState17 = useState(false),
|
|
21489
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21490
|
-
showScroll = _useState18[0],
|
|
21491
|
-
setShowScroll = _useState18[1];
|
|
22145
|
+
showScroll = _useState16[0],
|
|
22146
|
+
setShowScroll = _useState16[1];
|
|
21492
22147
|
useEffect(function () {
|
|
21493
22148
|
var _originRoutes$find;
|
|
21494
22149
|
getMenuContentHeight();
|
|
@@ -23099,14 +23754,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23099
23754
|
},
|
|
23100
23755
|
menu: {
|
|
23101
23756
|
request: function () {
|
|
23102
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23103
|
-
return
|
|
23104
|
-
while (1) switch (_context.
|
|
23757
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23758
|
+
return _regenerator().w(function (_context) {
|
|
23759
|
+
while (1) switch (_context.n) {
|
|
23105
23760
|
case 0:
|
|
23106
|
-
return _context.
|
|
23107
|
-
case 1:
|
|
23108
|
-
case "end":
|
|
23109
|
-
return _context.stop();
|
|
23761
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23110
23762
|
}
|
|
23111
23763
|
}, _callee);
|
|
23112
23764
|
}));
|
|
@@ -23511,31 +24163,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23511
24163
|
multiTableData = _useState8[0],
|
|
23512
24164
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23513
24165
|
var _useState9 = useState(10),
|
|
23514
|
-
|
|
23515
|
-
viewCount =
|
|
23516
|
-
setViewCount =
|
|
24166
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24167
|
+
viewCount = _useState0[0],
|
|
24168
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
23517
24169
|
var itemWidth = 100; // 表格每一项宽度
|
|
23518
|
-
var
|
|
23519
|
-
|
|
23520
|
-
realColHeaderWidth =
|
|
23521
|
-
setLeftWidth =
|
|
24170
|
+
var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24171
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
24172
|
+
realColHeaderWidth = _useState10[0],
|
|
24173
|
+
setLeftWidth = _useState10[1];
|
|
23522
24174
|
var viewPort = useRef(null);
|
|
23523
24175
|
var topScrollBar = useRef(null);
|
|
23524
24176
|
var leftTableRef = useRef(null);
|
|
23525
24177
|
//起始渲染item
|
|
23526
|
-
var
|
|
23527
|
-
|
|
23528
|
-
startIndex =
|
|
23529
|
-
setStartIndex =
|
|
24178
|
+
var _useState11 = useState(0),
|
|
24179
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24180
|
+
startIndex = _useState12[0],
|
|
24181
|
+
setStartIndex = _useState12[1];
|
|
23530
24182
|
//结束渲染item
|
|
23531
24183
|
var endIndex = useMemo(function () {
|
|
23532
24184
|
return startIndex + viewCount;
|
|
23533
24185
|
}, [startIndex, viewCount]);
|
|
23534
24186
|
//表格偏移量
|
|
23535
|
-
var
|
|
23536
|
-
|
|
23537
|
-
offsetWidth =
|
|
23538
|
-
setOffset =
|
|
24187
|
+
var _useState13 = useState(0),
|
|
24188
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24189
|
+
offsetWidth = _useState14[0],
|
|
24190
|
+
setOffset = _useState14[1];
|
|
23539
24191
|
useEffect(function () {
|
|
23540
24192
|
setTimeout(function () {
|
|
23541
24193
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30839,11 +31491,11 @@ var valueType = {
|
|
|
30839
31491
|
};
|
|
30840
31492
|
|
|
30841
31493
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30842
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30843
|
-
return
|
|
30844
|
-
while (1) switch (_context.
|
|
31494
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31495
|
+
return _regenerator().w(function (_context) {
|
|
31496
|
+
while (1) switch (_context.n) {
|
|
30845
31497
|
case 0:
|
|
30846
|
-
_context.
|
|
31498
|
+
_context.n = 1;
|
|
30847
31499
|
return request$2({
|
|
30848
31500
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30849
31501
|
converter: function converter(_ref2) {
|
|
@@ -30856,11 +31508,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30856
31508
|
});
|
|
30857
31509
|
}
|
|
30858
31510
|
});
|
|
30859
|
-
case
|
|
30860
|
-
return _context.
|
|
30861
|
-
case 3:
|
|
30862
|
-
case "end":
|
|
30863
|
-
return _context.stop();
|
|
31511
|
+
case 1:
|
|
31512
|
+
return _context.a(2, _context.v);
|
|
30864
31513
|
}
|
|
30865
31514
|
}, _callee);
|
|
30866
31515
|
}));
|
|
@@ -30907,12 +31556,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30907
31556
|
value: false
|
|
30908
31557
|
}];
|
|
30909
31558
|
var ref = useRef();
|
|
30910
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30911
|
-
var _ref$current, source;
|
|
30912
|
-
return
|
|
30913
|
-
while (1) switch (_context.
|
|
31559
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31560
|
+
var _ref$current, source, _t, _t2;
|
|
31561
|
+
return _regenerator().w(function (_context) {
|
|
31562
|
+
while (1) switch (_context.n) {
|
|
30914
31563
|
case 0:
|
|
30915
|
-
_context.
|
|
31564
|
+
_context.n = 1;
|
|
30916
31565
|
return setIsShowAndType(function (prev) {
|
|
30917
31566
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30918
31567
|
return {
|
|
@@ -30923,40 +31572,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30923
31572
|
}
|
|
30924
31573
|
return prev;
|
|
30925
31574
|
});
|
|
30926
|
-
case
|
|
31575
|
+
case 1:
|
|
30927
31576
|
if (!record.dictionaryCode) {
|
|
30928
|
-
_context.
|
|
31577
|
+
_context.n = 7;
|
|
30929
31578
|
break;
|
|
30930
31579
|
}
|
|
30931
31580
|
if (!(record.choiceType == 20)) {
|
|
30932
|
-
_context.
|
|
31581
|
+
_context.n = 2;
|
|
30933
31582
|
break;
|
|
30934
31583
|
}
|
|
30935
|
-
|
|
30936
|
-
_context.
|
|
31584
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31585
|
+
_context.n = 6;
|
|
30937
31586
|
break;
|
|
30938
|
-
case
|
|
31587
|
+
case 2:
|
|
30939
31588
|
if (!(record.choiceType == 30)) {
|
|
30940
|
-
_context.
|
|
31589
|
+
_context.n = 4;
|
|
30941
31590
|
break;
|
|
30942
31591
|
}
|
|
30943
|
-
_context.
|
|
31592
|
+
_context.n = 3;
|
|
30944
31593
|
return getDynamicDict(record.dictionaryCode);
|
|
30945
|
-
case
|
|
30946
|
-
|
|
30947
|
-
_context.
|
|
31594
|
+
case 3:
|
|
31595
|
+
_t2 = _context.v;
|
|
31596
|
+
_context.n = 5;
|
|
30948
31597
|
break;
|
|
30949
|
-
case
|
|
30950
|
-
|
|
30951
|
-
case
|
|
30952
|
-
|
|
30953
|
-
case
|
|
30954
|
-
source =
|
|
31598
|
+
case 4:
|
|
31599
|
+
_t2 = [];
|
|
31600
|
+
case 5:
|
|
31601
|
+
_t = _t2;
|
|
31602
|
+
case 6:
|
|
31603
|
+
source = _t;
|
|
30955
31604
|
// @ts-ignore
|
|
30956
31605
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30957
|
-
case
|
|
30958
|
-
|
|
30959
|
-
return _context.stop();
|
|
31606
|
+
case 7:
|
|
31607
|
+
return _context.a(2);
|
|
30960
31608
|
}
|
|
30961
31609
|
}, _callee);
|
|
30962
31610
|
})));
|
|
@@ -31021,10 +31669,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31021
31669
|
source: {
|
|
31022
31670
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31023
31671
|
type: function () {
|
|
31024
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31672
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31025
31673
|
var form, values, name, relates, source;
|
|
31026
|
-
return
|
|
31027
|
-
while (1) switch (_context2.
|
|
31674
|
+
return _regenerator().w(function (_context2) {
|
|
31675
|
+
while (1) switch (_context2.n) {
|
|
31028
31676
|
case 0:
|
|
31029
31677
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31030
31678
|
if (values[0]) {
|
|
@@ -31033,19 +31681,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31033
31681
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31034
31682
|
}
|
|
31035
31683
|
if (!values[1]) {
|
|
31036
|
-
_context2.
|
|
31684
|
+
_context2.n = 2;
|
|
31037
31685
|
break;
|
|
31038
31686
|
}
|
|
31039
|
-
_context2.
|
|
31687
|
+
_context2.n = 1;
|
|
31040
31688
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31041
|
-
case
|
|
31042
|
-
source = _context2.
|
|
31689
|
+
case 1:
|
|
31690
|
+
source = _context2.v;
|
|
31043
31691
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31044
31692
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31045
31693
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31046
|
-
case
|
|
31047
|
-
|
|
31048
|
-
return _context2.stop();
|
|
31694
|
+
case 2:
|
|
31695
|
+
return _context2.a(2);
|
|
31049
31696
|
}
|
|
31050
31697
|
}, _callee2);
|
|
31051
31698
|
}));
|
|
@@ -31501,25 +32148,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31501
32148
|
source: {
|
|
31502
32149
|
relates: ['choiceType', 'inputType'],
|
|
31503
32150
|
type: function () {
|
|
31504
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32151
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31505
32152
|
var values, name, form, source;
|
|
31506
|
-
return
|
|
31507
|
-
while (1) switch (_context3.
|
|
32153
|
+
return _regenerator().w(function (_context3) {
|
|
32154
|
+
while (1) switch (_context3.n) {
|
|
31508
32155
|
case 0:
|
|
31509
|
-
values =
|
|
32156
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31510
32157
|
if (values[1] === 40) {
|
|
31511
32158
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31512
32159
|
form.setFieldVisible(name, false);
|
|
31513
32160
|
}
|
|
31514
32161
|
if (!(values[0] === 30)) {
|
|
31515
|
-
_context3.
|
|
32162
|
+
_context3.n = 2;
|
|
31516
32163
|
break;
|
|
31517
32164
|
}
|
|
31518
|
-
_context3.
|
|
32165
|
+
_context3.n = 1;
|
|
31519
32166
|
return request$2({
|
|
31520
32167
|
url: '/basic/dictDynamicItem/queryList',
|
|
31521
|
-
converter: function converter(
|
|
31522
|
-
var data =
|
|
32168
|
+
converter: function converter(_ref1) {
|
|
32169
|
+
var data = _ref1.data;
|
|
31523
32170
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31524
32171
|
return {
|
|
31525
32172
|
text: d.dictCode,
|
|
@@ -31528,17 +32175,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31528
32175
|
});
|
|
31529
32176
|
}
|
|
31530
32177
|
});
|
|
31531
|
-
case
|
|
31532
|
-
source = _context3.
|
|
32178
|
+
case 1:
|
|
32179
|
+
source = _context3.v;
|
|
31533
32180
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31534
32181
|
form.setFieldVisible(name, true);
|
|
31535
|
-
_context3.
|
|
32182
|
+
_context3.n = 3;
|
|
31536
32183
|
break;
|
|
31537
|
-
case
|
|
32184
|
+
case 2:
|
|
31538
32185
|
form.setFieldVisible(name, false);
|
|
31539
|
-
case
|
|
31540
|
-
|
|
31541
|
-
return _context3.stop();
|
|
32186
|
+
case 3:
|
|
32187
|
+
return _context3.a(2);
|
|
31542
32188
|
}
|
|
31543
32189
|
}, _callee3);
|
|
31544
32190
|
}));
|
|
@@ -31553,8 +32199,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31553
32199
|
name: 'enumeration',
|
|
31554
32200
|
label: '维护自定义选项',
|
|
31555
32201
|
field: {
|
|
31556
|
-
type: function type(
|
|
31557
|
-
var form =
|
|
32202
|
+
type: function type(_ref10) {
|
|
32203
|
+
var form = _ref10.form;
|
|
31558
32204
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31559
32205
|
type: 'link',
|
|
31560
32206
|
onClick: function onClick() {
|
|
@@ -31580,10 +32226,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31580
32226
|
dependency: {
|
|
31581
32227
|
source: {
|
|
31582
32228
|
relates: ['choiceType'],
|
|
31583
|
-
type: function type(
|
|
31584
|
-
var values =
|
|
31585
|
-
name =
|
|
31586
|
-
form =
|
|
32229
|
+
type: function type(_ref11) {
|
|
32230
|
+
var values = _ref11.values,
|
|
32231
|
+
name = _ref11.name,
|
|
32232
|
+
form = _ref11.form;
|
|
31587
32233
|
if (values[0] === 10) {
|
|
31588
32234
|
form.setFieldVisible(name, true);
|
|
31589
32235
|
} else {
|
|
@@ -31599,10 +32245,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31599
32245
|
dependency: {
|
|
31600
32246
|
visible: {
|
|
31601
32247
|
relates: ['choiceType'],
|
|
31602
|
-
type: function type(
|
|
31603
|
-
var name =
|
|
31604
|
-
values =
|
|
31605
|
-
form =
|
|
32248
|
+
type: function type(_ref12) {
|
|
32249
|
+
var name = _ref12.name,
|
|
32250
|
+
values = _ref12.values,
|
|
32251
|
+
form = _ref12.form;
|
|
31606
32252
|
if (values[0] == 330) {
|
|
31607
32253
|
form.setFieldVisible(name, true);
|
|
31608
32254
|
} else {
|
|
@@ -31626,8 +32272,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31626
32272
|
params: {
|
|
31627
32273
|
'qp-businessType-eq': record.businessType
|
|
31628
32274
|
},
|
|
31629
|
-
converter: function converter(
|
|
31630
|
-
var data =
|
|
32275
|
+
converter: function converter(_ref13) {
|
|
32276
|
+
var data = _ref13.data;
|
|
31631
32277
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31632
32278
|
return {
|
|
31633
32279
|
text: d.name,
|
|
@@ -31667,8 +32313,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31667
32313
|
'qp-businessType-eq': record.businessType,
|
|
31668
32314
|
'qp-status-eq': 1
|
|
31669
32315
|
},
|
|
31670
|
-
converter: function converter(
|
|
31671
|
-
var data =
|
|
32316
|
+
converter: function converter(_ref14) {
|
|
32317
|
+
var data = _ref14.data;
|
|
31672
32318
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31673
32319
|
var _d$code;
|
|
31674
32320
|
return {
|
|
@@ -31696,8 +32342,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31696
32342
|
remoteSource: {
|
|
31697
32343
|
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),
|
|
31698
32344
|
method: 'get',
|
|
31699
|
-
converter: function converter(
|
|
31700
|
-
var data =
|
|
32345
|
+
converter: function converter(_ref15) {
|
|
32346
|
+
var data = _ref15.data;
|
|
31701
32347
|
if (lineDetail.moduleType == 1) {
|
|
31702
32348
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31703
32349
|
return {
|
|
@@ -31723,16 +32369,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31723
32369
|
width: 900,
|
|
31724
32370
|
maskClosable: false,
|
|
31725
32371
|
onOk: function () {
|
|
31726
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32372
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
31727
32373
|
var _ref$current4, _res$editableStatus;
|
|
31728
32374
|
var res, _res$defaultValue;
|
|
31729
|
-
return
|
|
31730
|
-
while (1) switch (_context4.
|
|
32375
|
+
return _regenerator().w(function (_context4) {
|
|
32376
|
+
while (1) switch (_context4.n) {
|
|
31731
32377
|
case 0:
|
|
31732
|
-
_context4.
|
|
32378
|
+
_context4.n = 1;
|
|
31733
32379
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31734
|
-
case
|
|
31735
|
-
res = _context4.
|
|
32380
|
+
case 1:
|
|
32381
|
+
res = _context4.v;
|
|
31736
32382
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31737
32383
|
res.fieldGroup = record.fieldGroup;
|
|
31738
32384
|
res.businessType = record.businessType;
|
|
@@ -31759,7 +32405,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31759
32405
|
delete res.formula;
|
|
31760
32406
|
delete res.showValue;
|
|
31761
32407
|
if (!(mode === 'create')) {
|
|
31762
|
-
_context4.
|
|
32408
|
+
_context4.n = 2;
|
|
31763
32409
|
break;
|
|
31764
32410
|
}
|
|
31765
32411
|
request$2({
|
|
@@ -31771,8 +32417,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31771
32417
|
onParentOk();
|
|
31772
32418
|
}
|
|
31773
32419
|
});
|
|
31774
|
-
return _context4.
|
|
31775
|
-
case
|
|
32420
|
+
return _context4.a(2);
|
|
32421
|
+
case 2:
|
|
31776
32422
|
request$2({
|
|
31777
32423
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31778
32424
|
method: 'PATCH',
|
|
@@ -31782,9 +32428,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31782
32428
|
onParentOk();
|
|
31783
32429
|
}
|
|
31784
32430
|
});
|
|
31785
|
-
case
|
|
31786
|
-
|
|
31787
|
-
return _context4.stop();
|
|
32431
|
+
case 3:
|
|
32432
|
+
return _context4.a(2);
|
|
31788
32433
|
}
|
|
31789
32434
|
}, _callee4);
|
|
31790
32435
|
}));
|
|
@@ -32240,21 +32885,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32240
32885
|
jsonEditorVal = _useState8[0],
|
|
32241
32886
|
setJsonEditorVal = _useState8[1];
|
|
32242
32887
|
var _useState9 = useState({}),
|
|
32243
|
-
|
|
32244
|
-
moduleParams =
|
|
32245
|
-
setModuleParams =
|
|
32246
|
-
var
|
|
32888
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32889
|
+
moduleParams = _useState0[0],
|
|
32890
|
+
setModuleParams = _useState0[1];
|
|
32891
|
+
var _useState1 = useState('main'),
|
|
32892
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32893
|
+
activeKey = _useState10[0],
|
|
32894
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32895
|
+
var _useState11 = useState({}),
|
|
32247
32896
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
var _useState13 = useState(
|
|
32897
|
+
tablesConfigParams = _useState12[0],
|
|
32898
|
+
setTablesConfigParams = _useState12[1];
|
|
32899
|
+
var _useState13 = useState([]),
|
|
32251
32900
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
var _useState15 = useState([]),
|
|
32255
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32256
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32257
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32901
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32902
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32258
32903
|
useEffect(function () {
|
|
32259
32904
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32260
32905
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32285,7 +32930,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32285
32930
|
});
|
|
32286
32931
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32287
32932
|
var _ref6 = _toArray(_ref5),
|
|
32288
|
-
resArr = _ref6.slice(0);
|
|
32933
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32289
32934
|
var configParams = {};
|
|
32290
32935
|
detailTablesSetting.map(function (item, index) {
|
|
32291
32936
|
var _resArr$index;
|
|
@@ -32630,11 +33275,11 @@ function getMetaData(_x) {
|
|
|
32630
33275
|
|
|
32631
33276
|
// 获取数据
|
|
32632
33277
|
function _getMetaData() {
|
|
32633
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32634
|
-
return
|
|
32635
|
-
while (1) switch (_context.
|
|
33278
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
33279
|
+
return _regenerator().w(function (_context) {
|
|
33280
|
+
while (1) switch (_context.n) {
|
|
32636
33281
|
case 0:
|
|
32637
|
-
return _context.
|
|
33282
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
32638
33283
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32639
33284
|
params: {
|
|
32640
33285
|
'qp-entityId-eq': id
|
|
@@ -32646,9 +33291,6 @@ function _getMetaData() {
|
|
|
32646
33291
|
reject([]);
|
|
32647
33292
|
});
|
|
32648
33293
|
}));
|
|
32649
|
-
case 1:
|
|
32650
|
-
case "end":
|
|
32651
|
-
return _context.stop();
|
|
32652
33294
|
}
|
|
32653
33295
|
}, _callee);
|
|
32654
33296
|
}));
|
|
@@ -32852,11 +33494,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32852
33494
|
tableState = _useState4[0],
|
|
32853
33495
|
setTableState = _useState4[1];
|
|
32854
33496
|
var handleOpen = /*#__PURE__*/function () {
|
|
32855
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33497
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
32856
33498
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32857
33499
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32858
|
-
return
|
|
32859
|
-
while (1) switch (_context.
|
|
33500
|
+
return _regenerator().w(function (_context) {
|
|
33501
|
+
while (1) switch (_context.n) {
|
|
32860
33502
|
case 0:
|
|
32861
33503
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32862
33504
|
isSearchForm: props.isSearchForm,
|
|
@@ -32864,16 +33506,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32864
33506
|
searchFormData: searchFormData
|
|
32865
33507
|
});
|
|
32866
33508
|
if (requestConfigNew) {
|
|
32867
|
-
_context.
|
|
33509
|
+
_context.n = 1;
|
|
32868
33510
|
break;
|
|
32869
33511
|
}
|
|
32870
|
-
return _context.
|
|
32871
|
-
case
|
|
33512
|
+
return _context.a(2);
|
|
33513
|
+
case 1:
|
|
32872
33514
|
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;
|
|
32873
|
-
_context.
|
|
33515
|
+
_context.n = 2;
|
|
32874
33516
|
return getMetaData(metaDataId);
|
|
32875
|
-
case
|
|
32876
|
-
metaData = _context.
|
|
33517
|
+
case 2:
|
|
33518
|
+
metaData = _context.v;
|
|
32877
33519
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32878
33520
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32879
33521
|
})) || [];
|
|
@@ -32913,9 +33555,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32913
33555
|
// @ts-ignore
|
|
32914
33556
|
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);
|
|
32915
33557
|
}
|
|
32916
|
-
case
|
|
32917
|
-
|
|
32918
|
-
return _context.stop();
|
|
33558
|
+
case 3:
|
|
33559
|
+
return _context.a(2);
|
|
32919
33560
|
}
|
|
32920
33561
|
}, _callee);
|
|
32921
33562
|
}));
|
|
@@ -33018,7 +33659,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33018
33659
|
}, [requestConfig, tableState.columns]);
|
|
33019
33660
|
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';
|
|
33020
33661
|
var handleOk = function handleOk(rowData) {
|
|
33021
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33662
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33022
33663
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33023
33664
|
//多选数据处理
|
|
33024
33665
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33029,9 +33670,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33029
33670
|
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()) || [];
|
|
33030
33671
|
var realSelectedRows = selectedRows;
|
|
33031
33672
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33032
|
-
var _queryTableRef$
|
|
33673
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33033
33674
|
// @ts-ignore
|
|
33034
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33675
|
+
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()) || [];
|
|
33035
33676
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33036
33677
|
return selectedKesys.includes(s[rowKey]);
|
|
33037
33678
|
});
|
|
@@ -33064,10 +33705,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33064
33705
|
});
|
|
33065
33706
|
}
|
|
33066
33707
|
mappings.map(function (item) {
|
|
33067
|
-
var _props$
|
|
33068
|
-
if (((_props$
|
|
33069
|
-
var _props$
|
|
33070
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33708
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33709
|
+
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]) {
|
|
33710
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33711
|
+
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];
|
|
33071
33712
|
}
|
|
33072
33713
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33073
33714
|
});
|
|
@@ -33122,10 +33763,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33122
33763
|
}
|
|
33123
33764
|
props.onCancel();
|
|
33124
33765
|
//@ts-ignore
|
|
33125
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33766
|
+
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();
|
|
33126
33767
|
};
|
|
33127
33768
|
var config = useMemo(function () {
|
|
33128
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33769
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33129
33770
|
var returnConfig = {
|
|
33130
33771
|
size: 'small',
|
|
33131
33772
|
needPageHeader: false,
|
|
@@ -33134,7 +33775,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33134
33775
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33135
33776
|
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) {
|
|
33136
33777
|
return v.key || v;
|
|
33137
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33778
|
+
})) || (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))
|
|
33138
33779
|
} : false,
|
|
33139
33780
|
remoteDataSource: remoteDataSource,
|
|
33140
33781
|
fields: tableState.fields,
|
|
@@ -33142,8 +33783,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33142
33783
|
rowKey: rowKey,
|
|
33143
33784
|
tableProps: !isView && {
|
|
33144
33785
|
rowClassName: function rowClassName(record) {
|
|
33145
|
-
var _props$
|
|
33146
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33786
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33787
|
+
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' : '';
|
|
33147
33788
|
},
|
|
33148
33789
|
onRow: function onRow(record) {
|
|
33149
33790
|
return {
|
|
@@ -33188,10 +33829,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33188
33829
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33189
33830
|
type: "default",
|
|
33190
33831
|
onClick: function onClick() {
|
|
33191
|
-
var _queryTableRef$
|
|
33832
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33192
33833
|
props.onCancel();
|
|
33193
33834
|
//@ts-ignore
|
|
33194
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33835
|
+
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();
|
|
33195
33836
|
}
|
|
33196
33837
|
}, "\u53D6\u6D88"))));
|
|
33197
33838
|
});
|
|
@@ -33415,19 +34056,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33415
34056
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33416
34057
|
handSource = _useState2[0],
|
|
33417
34058
|
setHandSource = _useState2[1];
|
|
33418
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34059
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33419
34060
|
var resData, data;
|
|
33420
|
-
return
|
|
33421
|
-
while (1) switch (_context.
|
|
34061
|
+
return _regenerator().w(function (_context) {
|
|
34062
|
+
while (1) switch (_context.n) {
|
|
33422
34063
|
case 0:
|
|
33423
34064
|
if (!(!source && initRequestSource)) {
|
|
33424
|
-
_context.
|
|
34065
|
+
_context.n = 2;
|
|
33425
34066
|
break;
|
|
33426
34067
|
}
|
|
33427
|
-
_context.
|
|
34068
|
+
_context.n = 1;
|
|
33428
34069
|
return initRequestSource();
|
|
33429
|
-
case
|
|
33430
|
-
resData = _context.
|
|
34070
|
+
case 1:
|
|
34071
|
+
resData = _context.v;
|
|
33431
34072
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33432
34073
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33433
34074
|
label: item.text,
|
|
@@ -33435,9 +34076,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33435
34076
|
});
|
|
33436
34077
|
})) || [];
|
|
33437
34078
|
setHandSource(data);
|
|
33438
|
-
case
|
|
33439
|
-
|
|
33440
|
-
return _context.stop();
|
|
34079
|
+
case 2:
|
|
34080
|
+
return _context.a(2);
|
|
33441
34081
|
}
|
|
33442
34082
|
}, _callee);
|
|
33443
34083
|
})), []);
|
|
@@ -33567,20 +34207,17 @@ function getRegularThresholdRange(_x) {
|
|
|
33567
34207
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33568
34208
|
}
|
|
33569
34209
|
function _getRegularThresholdRange() {
|
|
33570
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33571
|
-
return
|
|
33572
|
-
while (1) switch (_context.
|
|
34210
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
34211
|
+
return _regenerator().w(function (_context) {
|
|
34212
|
+
while (1) switch (_context.n) {
|
|
33573
34213
|
case 0:
|
|
33574
|
-
return _context.
|
|
34214
|
+
return _context.a(2, requestUtil({
|
|
33575
34215
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33576
34216
|
method: 'POST',
|
|
33577
34217
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33578
34218
|
queryIdentify: undefined
|
|
33579
34219
|
})
|
|
33580
34220
|
}));
|
|
33581
|
-
case 1:
|
|
33582
|
-
case "end":
|
|
33583
|
-
return _context.stop();
|
|
33584
34221
|
}
|
|
33585
34222
|
}, _callee);
|
|
33586
34223
|
}));
|
|
@@ -33721,24 +34358,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33721
34358
|
};
|
|
33722
34359
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33723
34360
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33724
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34361
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33725
34362
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33726
|
-
return
|
|
33727
|
-
while (1) switch (_context.
|
|
34363
|
+
return _regenerator().w(function (_context) {
|
|
34364
|
+
while (1) switch (_context.n) {
|
|
33728
34365
|
case 0:
|
|
33729
34366
|
if (queryIdentify) {
|
|
33730
|
-
_context.
|
|
34367
|
+
_context.n = 1;
|
|
33731
34368
|
break;
|
|
33732
34369
|
}
|
|
33733
|
-
return _context.
|
|
33734
|
-
case
|
|
34370
|
+
return _context.a(2);
|
|
34371
|
+
case 1:
|
|
33735
34372
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33736
34373
|
extraRequestUrl = '';
|
|
33737
34374
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33738
34375
|
if (!queryIdentityInfo.find(function (item) {
|
|
33739
34376
|
return item.identity == propertyCode;
|
|
33740
34377
|
})) {
|
|
33741
|
-
_context.
|
|
34378
|
+
_context.n = 3;
|
|
33742
34379
|
break;
|
|
33743
34380
|
}
|
|
33744
34381
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33752,15 +34389,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33752
34389
|
if (!needQueryList.some(function (item) {
|
|
33753
34390
|
return !querParams[item] || !querParams[item].length;
|
|
33754
34391
|
})) {
|
|
33755
|
-
_context.
|
|
34392
|
+
_context.n = 2;
|
|
33756
34393
|
break;
|
|
33757
34394
|
}
|
|
33758
|
-
return _context.
|
|
33759
|
-
case
|
|
34395
|
+
return _context.a(2);
|
|
34396
|
+
case 2:
|
|
33760
34397
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33761
34398
|
return item.identity == propertyCode;
|
|
33762
34399
|
}).requestUrl || '';
|
|
33763
|
-
case
|
|
34400
|
+
case 3:
|
|
33764
34401
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33765
34402
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33766
34403
|
querParams = {
|
|
@@ -33771,7 +34408,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33771
34408
|
// querParams = { dictCode: queryIdentify }
|
|
33772
34409
|
}
|
|
33773
34410
|
if (!extraRequestUrl) {
|
|
33774
|
-
_context.
|
|
34411
|
+
_context.n = 4;
|
|
33775
34412
|
break;
|
|
33776
34413
|
}
|
|
33777
34414
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33810,43 +34447,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33810
34447
|
return handleData;
|
|
33811
34448
|
}
|
|
33812
34449
|
});
|
|
33813
|
-
_context.
|
|
34450
|
+
_context.n = 8;
|
|
33814
34451
|
break;
|
|
33815
|
-
case
|
|
34452
|
+
case 4:
|
|
33816
34453
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33817
|
-
_context.
|
|
34454
|
+
_context.n = 5;
|
|
33818
34455
|
break;
|
|
33819
34456
|
}
|
|
33820
34457
|
_this.setState({
|
|
33821
34458
|
thresholdList: queryIdentify
|
|
33822
34459
|
});
|
|
33823
|
-
_context.
|
|
34460
|
+
_context.n = 8;
|
|
33824
34461
|
break;
|
|
33825
|
-
case
|
|
34462
|
+
case 5:
|
|
33826
34463
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33827
|
-
_context.
|
|
34464
|
+
_context.n = 6;
|
|
33828
34465
|
break;
|
|
33829
34466
|
}
|
|
33830
34467
|
// TODO待处理
|
|
33831
34468
|
_this.setState({
|
|
33832
34469
|
thresholdList: []
|
|
33833
34470
|
});
|
|
33834
|
-
_context.
|
|
34471
|
+
_context.n = 8;
|
|
33835
34472
|
break;
|
|
33836
|
-
case
|
|
34473
|
+
case 6:
|
|
33837
34474
|
querParams.queryIdentify = queryIdentify;
|
|
33838
|
-
_context.
|
|
34475
|
+
_context.n = 7;
|
|
33839
34476
|
return getRegularThresholdRange(querParams);
|
|
33840
|
-
case
|
|
33841
|
-
res = _context.
|
|
34477
|
+
case 7:
|
|
34478
|
+
res = _context.v;
|
|
33842
34479
|
if (handleError(res)) {
|
|
33843
34480
|
_this.setState({
|
|
33844
34481
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33845
34482
|
});
|
|
33846
34483
|
}
|
|
33847
|
-
case
|
|
33848
|
-
|
|
33849
|
-
return _context.stop();
|
|
34484
|
+
case 8:
|
|
34485
|
+
return _context.a(2);
|
|
33850
34486
|
}
|
|
33851
34487
|
}, _callee);
|
|
33852
34488
|
}));
|
|
@@ -34678,11 +35314,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34678
35314
|
isAll: true,
|
|
34679
35315
|
needNameAndCode: true,
|
|
34680
35316
|
notChangeOnSelect: true,
|
|
34681
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34682
|
-
return
|
|
34683
|
-
while (1) switch (_context2.
|
|
35317
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35318
|
+
return _regenerator().w(function (_context2) {
|
|
35319
|
+
while (1) switch (_context2.n) {
|
|
34684
35320
|
case 0:
|
|
34685
|
-
_context2.
|
|
35321
|
+
_context2.n = 1;
|
|
34686
35322
|
return request$2({
|
|
34687
35323
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34688
35324
|
method: 'get',
|
|
@@ -34699,11 +35335,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34699
35335
|
return handleData;
|
|
34700
35336
|
}
|
|
34701
35337
|
});
|
|
34702
|
-
case
|
|
34703
|
-
return _context2.
|
|
34704
|
-
case 3:
|
|
34705
|
-
case "end":
|
|
34706
|
-
return _context2.stop();
|
|
35338
|
+
case 1:
|
|
35339
|
+
return _context2.a(2, _context2.v);
|
|
34707
35340
|
}
|
|
34708
35341
|
}, _callee2);
|
|
34709
35342
|
})),
|
|
@@ -34727,11 +35360,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34727
35360
|
isAll: true,
|
|
34728
35361
|
needNameAndCode: true,
|
|
34729
35362
|
notChangeOnSelect: true,
|
|
34730
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34731
|
-
return
|
|
34732
|
-
while (1) switch (_context3.
|
|
35363
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35364
|
+
return _regenerator().w(function (_context3) {
|
|
35365
|
+
while (1) switch (_context3.n) {
|
|
34733
35366
|
case 0:
|
|
34734
|
-
_context3.
|
|
35367
|
+
_context3.n = 1;
|
|
34735
35368
|
return request$2({
|
|
34736
35369
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34737
35370
|
method: 'get',
|
|
@@ -34748,11 +35381,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34748
35381
|
return handleData;
|
|
34749
35382
|
}
|
|
34750
35383
|
});
|
|
34751
|
-
case
|
|
34752
|
-
return _context3.
|
|
34753
|
-
case 3:
|
|
34754
|
-
case "end":
|
|
34755
|
-
return _context3.stop();
|
|
35384
|
+
case 1:
|
|
35385
|
+
return _context3.a(2, _context3.v);
|
|
34756
35386
|
}
|
|
34757
35387
|
}, _callee3);
|
|
34758
35388
|
})),
|
|
@@ -34778,11 +35408,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34778
35408
|
isAll: true,
|
|
34779
35409
|
needNameAndCode: true,
|
|
34780
35410
|
notChangeOnSelect: true,
|
|
34781
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34782
|
-
return
|
|
34783
|
-
while (1) switch (_context4.
|
|
35411
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35412
|
+
return _regenerator().w(function (_context4) {
|
|
35413
|
+
while (1) switch (_context4.n) {
|
|
34784
35414
|
case 0:
|
|
34785
|
-
_context4.
|
|
35415
|
+
_context4.n = 1;
|
|
34786
35416
|
return request$2({
|
|
34787
35417
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34788
35418
|
method: 'get',
|
|
@@ -34799,11 +35429,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34799
35429
|
return handleData;
|
|
34800
35430
|
}
|
|
34801
35431
|
});
|
|
34802
|
-
case
|
|
34803
|
-
return _context4.
|
|
34804
|
-
case 3:
|
|
34805
|
-
case "end":
|
|
34806
|
-
return _context4.stop();
|
|
35432
|
+
case 1:
|
|
35433
|
+
return _context4.a(2, _context4.v);
|
|
34807
35434
|
}
|
|
34808
35435
|
}, _callee4);
|
|
34809
35436
|
})),
|
|
@@ -35490,8 +36117,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35490
36117
|
}
|
|
35491
36118
|
}));
|
|
35492
36119
|
} else {
|
|
35493
|
-
var
|
|
35494
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36120
|
+
var _values0;
|
|
36121
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35495
36122
|
return {
|
|
35496
36123
|
key: s,
|
|
35497
36124
|
label: valueNames[vIndex],
|
|
@@ -35701,7 +36328,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35701
36328
|
}
|
|
35702
36329
|
}
|
|
35703
36330
|
// 配送方式选择器
|
|
35704
|
-
if (dataChoiceBusinessType == 310) {
|
|
36331
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
35705
36332
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
35706
36333
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35707
36334
|
selectBusinessType: "deliveryMode",
|
|
@@ -35715,9 +36342,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35715
36342
|
disabled: disabled,
|
|
35716
36343
|
labelInValue: true,
|
|
35717
36344
|
value: values[0],
|
|
35718
|
-
requestConfig: {
|
|
36345
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36346
|
+
otherParams: {
|
|
36347
|
+
// 配送方式只选择标准配送方式
|
|
36348
|
+
'qp-recordChannnelCode-eq': 80
|
|
36349
|
+
}
|
|
36350
|
+
} : {}), {}, {
|
|
35719
36351
|
filterInit: 'qp-code-in'
|
|
35720
|
-
},
|
|
36352
|
+
}),
|
|
35721
36353
|
onChange: function onChange(value) {
|
|
35722
36354
|
if (dataInputBusinessType === 12) {
|
|
35723
36355
|
values[0] = value.map(function (i) {
|
|
@@ -35747,9 +36379,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35747
36379
|
disabled: disabled,
|
|
35748
36380
|
labelInValue: true,
|
|
35749
36381
|
value: values[1],
|
|
35750
|
-
requestConfig: {
|
|
36382
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36383
|
+
otherParams: {
|
|
36384
|
+
// 配送方式只选择标准配送方式
|
|
36385
|
+
'qp-recordChannnelCode-eq': 80
|
|
36386
|
+
}
|
|
36387
|
+
} : {}), {}, {
|
|
35751
36388
|
filterInit: 'qp-code-in'
|
|
35752
|
-
},
|
|
36389
|
+
}),
|
|
35753
36390
|
onChange: function onChange(value) {
|
|
35754
36391
|
if (dataInputBusinessType === 12) {
|
|
35755
36392
|
values[1] = value.map(function (i) {
|
|
@@ -35769,8 +36406,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35769
36406
|
}
|
|
35770
36407
|
}));
|
|
35771
36408
|
} else {
|
|
35772
|
-
var
|
|
35773
|
-
var
|
|
36409
|
+
var _values1;
|
|
36410
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
35774
36411
|
return {
|
|
35775
36412
|
key: s,
|
|
35776
36413
|
label: valueNames[vIndex],
|
|
@@ -35792,10 +36429,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35792
36429
|
} : {}),
|
|
35793
36430
|
disabled: disabled,
|
|
35794
36431
|
labelInValue: true,
|
|
35795
|
-
value:
|
|
35796
|
-
requestConfig: {
|
|
36432
|
+
value: _currentValue0,
|
|
36433
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36434
|
+
otherParams: {
|
|
36435
|
+
// 配送方式只选择标准配送方式
|
|
36436
|
+
'qp-recordChannnelCode-eq': 80
|
|
36437
|
+
}
|
|
36438
|
+
} : {}), {}, {
|
|
35797
36439
|
filterInit: 'qp-code-in'
|
|
35798
|
-
},
|
|
36440
|
+
}),
|
|
35799
36441
|
onChange: function onChange(value) {
|
|
35800
36442
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
35801
36443
|
values = value.map(function (i) {
|
|
@@ -35885,8 +36527,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35885
36527
|
}
|
|
35886
36528
|
}));
|
|
35887
36529
|
} else {
|
|
35888
|
-
var
|
|
35889
|
-
var
|
|
36530
|
+
var _values10;
|
|
36531
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35890
36532
|
return {
|
|
35891
36533
|
key: s,
|
|
35892
36534
|
label: valueNames[vIndex],
|
|
@@ -35908,7 +36550,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35908
36550
|
} : {}),
|
|
35909
36551
|
disabled: disabled,
|
|
35910
36552
|
labelInValue: true,
|
|
35911
|
-
value:
|
|
36553
|
+
value: _currentValue1,
|
|
35912
36554
|
requestConfig: {
|
|
35913
36555
|
filterInit: 'qp-code-in'
|
|
35914
36556
|
},
|
|
@@ -36001,8 +36643,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36001
36643
|
}
|
|
36002
36644
|
}));
|
|
36003
36645
|
} else {
|
|
36004
|
-
var
|
|
36005
|
-
var
|
|
36646
|
+
var _values11;
|
|
36647
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36006
36648
|
return {
|
|
36007
36649
|
key: s,
|
|
36008
36650
|
label: valueNames[vIndex],
|
|
@@ -36024,7 +36666,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36024
36666
|
} : {}),
|
|
36025
36667
|
disabled: disabled,
|
|
36026
36668
|
labelInValue: true,
|
|
36027
|
-
value:
|
|
36669
|
+
value: _currentValue10,
|
|
36028
36670
|
requestConfig: {
|
|
36029
36671
|
filterInit: 'qp-brandCode-in'
|
|
36030
36672
|
},
|
|
@@ -36215,8 +36857,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36215
36857
|
}
|
|
36216
36858
|
}));
|
|
36217
36859
|
} else {
|
|
36218
|
-
var
|
|
36219
|
-
var
|
|
36860
|
+
var _values12;
|
|
36861
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36220
36862
|
return {
|
|
36221
36863
|
key: s,
|
|
36222
36864
|
label: valueNames[vIndex]
|
|
@@ -36244,7 +36886,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36244
36886
|
isSearchForm: true,
|
|
36245
36887
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36246
36888
|
disabled: disabled,
|
|
36247
|
-
value:
|
|
36889
|
+
value: _currentValue11,
|
|
36248
36890
|
onChange: function onChange(value, sourceList) {
|
|
36249
36891
|
if (dataInputBusinessType === 12) {
|
|
36250
36892
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36564,9 +37206,9 @@ var App$1 = function App(_ref) {
|
|
|
36564
37206
|
UpdateState(res);
|
|
36565
37207
|
};
|
|
36566
37208
|
var _useState9 = useState(false),
|
|
36567
|
-
|
|
36568
|
-
isModalVisible =
|
|
36569
|
-
setIsModalVisible =
|
|
37209
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37210
|
+
isModalVisible = _useState0[0],
|
|
37211
|
+
setIsModalVisible = _useState0[1];
|
|
36570
37212
|
var showModal = function showModal() {
|
|
36571
37213
|
setIsModalVisible(true);
|
|
36572
37214
|
};
|
|
@@ -37047,27 +37689,26 @@ function RenderCompItem(props) {
|
|
|
37047
37689
|
dictData = _useState2[0],
|
|
37048
37690
|
setDictData = _useState2[1];
|
|
37049
37691
|
var getDictData = /*#__PURE__*/function () {
|
|
37050
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37692
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37051
37693
|
var _data$map;
|
|
37052
37694
|
var data;
|
|
37053
|
-
return
|
|
37054
|
-
while (1) switch (_context.
|
|
37695
|
+
return _regenerator().w(function (_context) {
|
|
37696
|
+
while (1) switch (_context.n) {
|
|
37055
37697
|
case 0:
|
|
37056
|
-
_context.
|
|
37698
|
+
_context.n = 1;
|
|
37057
37699
|
return request$2({
|
|
37058
37700
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37059
37701
|
});
|
|
37060
|
-
case
|
|
37061
|
-
data = _context.
|
|
37702
|
+
case 1:
|
|
37703
|
+
data = _context.v;
|
|
37062
37704
|
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) {
|
|
37063
37705
|
return {
|
|
37064
37706
|
text: item.dictItemName,
|
|
37065
37707
|
value: item.dictItemCode
|
|
37066
37708
|
};
|
|
37067
37709
|
}));
|
|
37068
|
-
case
|
|
37069
|
-
|
|
37070
|
-
return _context.stop();
|
|
37710
|
+
case 2:
|
|
37711
|
+
return _context.a(2);
|
|
37071
37712
|
}
|
|
37072
37713
|
}, _callee);
|
|
37073
37714
|
}));
|
|
@@ -37308,11 +37949,11 @@ function RenderCompItem(props) {
|
|
|
37308
37949
|
needNameAndCode: true,
|
|
37309
37950
|
notChangeOnSelect: true,
|
|
37310
37951
|
initRequestSource: function () {
|
|
37311
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37312
|
-
return
|
|
37313
|
-
while (1) switch (_context2.
|
|
37952
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37953
|
+
return _regenerator().w(function (_context2) {
|
|
37954
|
+
while (1) switch (_context2.n) {
|
|
37314
37955
|
case 0:
|
|
37315
|
-
_context2.
|
|
37956
|
+
_context2.n = 1;
|
|
37316
37957
|
return request$2({
|
|
37317
37958
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37318
37959
|
method: 'get',
|
|
@@ -37330,11 +37971,8 @@ function RenderCompItem(props) {
|
|
|
37330
37971
|
return handleData;
|
|
37331
37972
|
}
|
|
37332
37973
|
});
|
|
37333
|
-
case
|
|
37334
|
-
return _context2.
|
|
37335
|
-
case 3:
|
|
37336
|
-
case "end":
|
|
37337
|
-
return _context2.stop();
|
|
37974
|
+
case 1:
|
|
37975
|
+
return _context2.a(2, _context2.v);
|
|
37338
37976
|
}
|
|
37339
37977
|
}, _callee2);
|
|
37340
37978
|
}));
|
|
@@ -37499,7 +38137,7 @@ function RenderCompItem(props) {
|
|
|
37499
38137
|
getPopupContainer: function getPopupContainer() {
|
|
37500
38138
|
return document.body;
|
|
37501
38139
|
}
|
|
37502
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
38140
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
37503
38141
|
selectBusinessType: "deliveryMode",
|
|
37504
38142
|
selectProps: _objectSpread2({
|
|
37505
38143
|
style: styleCommon,
|
|
@@ -37511,9 +38149,14 @@ function RenderCompItem(props) {
|
|
|
37511
38149
|
disabled: disabled,
|
|
37512
38150
|
labelInValue: true,
|
|
37513
38151
|
value: showValue(ites.code),
|
|
37514
|
-
requestConfig: {
|
|
38152
|
+
requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
|
|
38153
|
+
otherParams: {
|
|
38154
|
+
// 配送方式只选择标准配送方式
|
|
38155
|
+
'qp-recordChannnelCode-eq': 80
|
|
38156
|
+
}
|
|
38157
|
+
} : {}), {}, {
|
|
37515
38158
|
filterInit: 'qp-code-in'
|
|
37516
|
-
},
|
|
38159
|
+
}),
|
|
37517
38160
|
onChange: function onChange(value) {
|
|
37518
38161
|
handleEdit(ites.code, value);
|
|
37519
38162
|
},
|
|
@@ -38124,7 +38767,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38124
38767
|
display: 'flex',
|
|
38125
38768
|
marginBottom: '0px',
|
|
38126
38769
|
padding: '10px 0px'
|
|
38127
|
-
}
|
|
38770
|
+
},
|
|
38771
|
+
key: itemDetail.elementId
|
|
38128
38772
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
38129
38773
|
className: 'logical_operate_content',
|
|
38130
38774
|
style: {
|
|
@@ -39384,13 +40028,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39384
40028
|
ruleTypeData = _useState8[0],
|
|
39385
40029
|
setRuleTypeData = _useState8[1];
|
|
39386
40030
|
var _useState9 = useState([]),
|
|
39387
|
-
|
|
39388
|
-
ruleReturnConfig =
|
|
39389
|
-
setRuleReturnConfig =
|
|
39390
|
-
var
|
|
39391
|
-
|
|
39392
|
-
templateData =
|
|
39393
|
-
setTemplateData =
|
|
40031
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40032
|
+
ruleReturnConfig = _useState0[0],
|
|
40033
|
+
setRuleReturnConfig = _useState0[1];
|
|
40034
|
+
var _useState1 = useState({}),
|
|
40035
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40036
|
+
templateData = _useState10[0],
|
|
40037
|
+
setTemplateData = _useState10[1];
|
|
39394
40038
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39395
40039
|
request$2({
|
|
39396
40040
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39726,25 +40370,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39726
40370
|
regularDataList = _useState8[0],
|
|
39727
40371
|
setRegularDataList = _useState8[1];
|
|
39728
40372
|
var _useState9 = useState([]),
|
|
39729
|
-
|
|
39730
|
-
baseRuleDetailList =
|
|
39731
|
-
setBaseRuleDetailList =
|
|
39732
|
-
var
|
|
40373
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40374
|
+
baseRuleDetailList = _useState0[0],
|
|
40375
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40376
|
+
var _useState1 = useState([]),
|
|
40377
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40378
|
+
systemVariableList = _useState10[0],
|
|
40379
|
+
setSystemVariableList = _useState10[1];
|
|
40380
|
+
var _useState11 = useState(false),
|
|
39733
40381
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39734
|
-
|
|
39735
|
-
|
|
40382
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40383
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39736
40384
|
var _useState13 = useState(false),
|
|
39737
40385
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39738
|
-
|
|
39739
|
-
|
|
40386
|
+
isGetRuleDataRes = _useState14[0],
|
|
40387
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
39740
40388
|
var _useState15 = useState(false),
|
|
39741
40389
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39742
|
-
|
|
39743
|
-
|
|
39744
|
-
var _useState17 = useState(false),
|
|
39745
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
39746
|
-
groupOtherPriorityList = _useState18[0],
|
|
39747
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40390
|
+
groupOtherPriorityList = _useState16[0],
|
|
40391
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
39748
40392
|
var baseRuleRef = useRef();
|
|
39749
40393
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39750
40394
|
// 查询规则组下所有规则实例
|
|
@@ -40068,4 +40712,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
40068
40712
|
}, children));
|
|
40069
40713
|
};
|
|
40070
40714
|
|
|
40071
|
-
|
|
40715
|
+
//操作日志
|
|
40716
|
+
var SystemLog = function SystemLog(_ref) {
|
|
40717
|
+
var modeType = _ref.modeType,
|
|
40718
|
+
code = _ref.code,
|
|
40719
|
+
containerName = _ref.containerName,
|
|
40720
|
+
_ref$renderLogRef = _ref.renderLogRef,
|
|
40721
|
+
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
40722
|
+
_ref$extraParams = _ref.extraParams,
|
|
40723
|
+
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
40724
|
+
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
40725
|
+
initialVisible: modeType != 'create',
|
|
40726
|
+
fields: [{
|
|
40727
|
+
name: 'table',
|
|
40728
|
+
label: false,
|
|
40729
|
+
itemLayout: {
|
|
40730
|
+
span: 24,
|
|
40731
|
+
labelCol: {
|
|
40732
|
+
span: 0
|
|
40733
|
+
},
|
|
40734
|
+
wrapperCol: {
|
|
40735
|
+
span: 24
|
|
40736
|
+
}
|
|
40737
|
+
},
|
|
40738
|
+
field: function field(ctx) {
|
|
40739
|
+
return code && /*#__PURE__*/React$1.createElement(Table$1, {
|
|
40740
|
+
remoteDataSource: {
|
|
40741
|
+
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
40742
|
+
convertParams: function convertParams(_ref2) {
|
|
40743
|
+
var params = _ref2.params;
|
|
40744
|
+
return _objectSpread2({
|
|
40745
|
+
pageSize: params.pageSize,
|
|
40746
|
+
currentPage: params.current
|
|
40747
|
+
}, extraParams);
|
|
40748
|
+
},
|
|
40749
|
+
converter: function converter(_ref3) {
|
|
40750
|
+
var data = _ref3.data;
|
|
40751
|
+
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40752
|
+
}
|
|
40753
|
+
},
|
|
40754
|
+
columns: [{
|
|
40755
|
+
title: '操作人',
|
|
40756
|
+
dataIndex: 'handlerName'
|
|
40757
|
+
}, {
|
|
40758
|
+
title: '操作名称',
|
|
40759
|
+
dataIndex: 'handlerType'
|
|
40760
|
+
}, {
|
|
40761
|
+
title: '操作时间',
|
|
40762
|
+
dataIndex: 'handlerTime',
|
|
40763
|
+
render: function render(_ref4) {
|
|
40764
|
+
var text = _ref4.text;
|
|
40765
|
+
return handleCommonTimeRender$1(text);
|
|
40766
|
+
}
|
|
40767
|
+
}, {
|
|
40768
|
+
title: '操作内容',
|
|
40769
|
+
dataIndex: 'logcontent'
|
|
40770
|
+
}],
|
|
40771
|
+
style: {
|
|
40772
|
+
width: '100%',
|
|
40773
|
+
marginTop: '-16px',
|
|
40774
|
+
padding: '0px'
|
|
40775
|
+
},
|
|
40776
|
+
rowKey: "id",
|
|
40777
|
+
scroll: {
|
|
40778
|
+
x: 'max-content'
|
|
40779
|
+
},
|
|
40780
|
+
pagination: {
|
|
40781
|
+
showTotal: function showTotal(total) {
|
|
40782
|
+
return "\u5171 ".concat(total, " \u6761");
|
|
40783
|
+
},
|
|
40784
|
+
showQuickJumper: true,
|
|
40785
|
+
hideOnSinglePage: true
|
|
40786
|
+
},
|
|
40787
|
+
ref: renderLogRef
|
|
40788
|
+
});
|
|
40789
|
+
}
|
|
40790
|
+
}]
|
|
40791
|
+
});
|
|
40792
|
+
};
|
|
40793
|
+
|
|
40794
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RenderCompItem, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, processDetailButtonsVisible, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|