@bit-sun/business-component 4.2.1-alpha.6-aiwei → 4.2.1-alpha.8-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1169 -770
- package/dist/index.js +1168 -769
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -10
- package/src/components/Functional/SearchSelect/index.tsx +32 -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, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
5
|
+
import _, { omit, uniqBy, escapeRegExp, isNil, trim, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } 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';
|
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
193
|
}
|
|
194
194
|
return i;
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
197
197
|
if (null == r) return {};
|
|
198
198
|
var t = {};
|
|
199
199
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (
|
|
200
|
+
if (e.includes(n)) continue;
|
|
201
201
|
t[n] = r[n];
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
@@ -207,113 +207,306 @@ 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
|
-
|
|
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
|
-
};
|
|
210
|
+
function _regeneratorRuntime() {
|
|
211
|
+
_regeneratorRuntime = function () {
|
|
212
|
+
return e;
|
|
213
|
+
};
|
|
214
|
+
var t,
|
|
215
|
+
e = {},
|
|
216
|
+
r = Object.prototype,
|
|
217
|
+
n = r.hasOwnProperty,
|
|
218
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
219
|
+
t[e] = r.value;
|
|
220
|
+
},
|
|
221
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
222
|
+
a = i.iterator || "@@iterator",
|
|
223
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
224
|
+
u = i.toStringTag || "@@toStringTag";
|
|
225
|
+
function define(t, e, r) {
|
|
226
|
+
return Object.defineProperty(t, e, {
|
|
227
|
+
value: r,
|
|
228
|
+
enumerable: !0,
|
|
229
|
+
configurable: !0,
|
|
230
|
+
writable: !0
|
|
231
|
+
}), t[e];
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
define({}, "");
|
|
235
|
+
} catch (t) {
|
|
236
|
+
define = function (t, e, r) {
|
|
237
|
+
return t[e] = r;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function wrap(t, e, r, n) {
|
|
241
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
242
|
+
a = Object.create(i.prototype),
|
|
243
|
+
c = new Context(n || []);
|
|
244
|
+
return o(a, "_invoke", {
|
|
245
|
+
value: makeInvokeMethod(t, r, c)
|
|
246
|
+
}), a;
|
|
247
|
+
}
|
|
248
|
+
function tryCatch(t, e, r) {
|
|
249
|
+
try {
|
|
250
|
+
return {
|
|
251
|
+
type: "normal",
|
|
252
|
+
arg: t.call(e, r)
|
|
253
|
+
};
|
|
254
|
+
} catch (t) {
|
|
255
|
+
return {
|
|
256
|
+
type: "throw",
|
|
257
|
+
arg: t
|
|
271
258
|
};
|
|
272
|
-
}
|
|
259
|
+
}
|
|
273
260
|
}
|
|
274
|
-
|
|
261
|
+
e.wrap = wrap;
|
|
262
|
+
var h = "suspendedStart",
|
|
263
|
+
l = "suspendedYield",
|
|
264
|
+
f = "executing",
|
|
265
|
+
s = "completed",
|
|
266
|
+
y = {};
|
|
275
267
|
function Generator() {}
|
|
276
268
|
function GeneratorFunction() {}
|
|
277
269
|
function GeneratorFunctionPrototype() {}
|
|
278
|
-
|
|
279
|
-
|
|
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 () {
|
|
270
|
+
var p = {};
|
|
271
|
+
define(p, a, function () {
|
|
287
272
|
return this;
|
|
288
|
-
})
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
273
|
+
});
|
|
274
|
+
var d = Object.getPrototypeOf,
|
|
275
|
+
v = d && d(d(values([])));
|
|
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
|
+
}
|
|
294
350
|
};
|
|
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
351
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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) {
|
|
404
|
+
return {
|
|
405
|
+
__await: t
|
|
406
|
+
};
|
|
407
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
408
|
+
return this;
|
|
409
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
410
|
+
void 0 === i && (i = Promise);
|
|
411
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
412
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
413
|
+
return t.done ? t.value : a.next();
|
|
414
|
+
});
|
|
415
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
416
|
+
return this;
|
|
417
|
+
}), define(g, "toString", function () {
|
|
418
|
+
return "[object Generator]";
|
|
419
|
+
}), e.keys = function (t) {
|
|
420
|
+
var e = Object(t),
|
|
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;
|
|
309
508
|
}
|
|
310
|
-
|
|
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);
|
|
509
|
+
}, e;
|
|
317
510
|
}
|
|
318
511
|
function _setPrototypeOf(t, e) {
|
|
319
512
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1386,22 +1579,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1386
1579
|
// sheepMap是表头字段中英文映射
|
|
1387
1580
|
// sheetCount:表的数量,默认一张
|
|
1388
1581
|
var resolveFile = /*#__PURE__*/function () {
|
|
1389
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1582
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1390
1583
|
var config,
|
|
1391
1584
|
data,
|
|
1392
1585
|
_args = arguments;
|
|
1393
|
-
return
|
|
1394
|
-
while (1) switch (_context.
|
|
1586
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1587
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1395
1588
|
case 0:
|
|
1396
1589
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1397
1590
|
sheetMap: [],
|
|
1398
1591
|
sheetCount: 1
|
|
1399
1592
|
};
|
|
1400
|
-
_context.
|
|
1593
|
+
_context.next = 3;
|
|
1401
1594
|
return analyseExcelToByte(file);
|
|
1402
|
-
case
|
|
1403
|
-
data = _context.
|
|
1404
|
-
return _context.
|
|
1595
|
+
case 3:
|
|
1596
|
+
data = _context.sent;
|
|
1597
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1405
1598
|
var workbook = read(data, {
|
|
1406
1599
|
type: 'binary'
|
|
1407
1600
|
});
|
|
@@ -1413,6 +1606,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1413
1606
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1414
1607
|
resolve(outdata);
|
|
1415
1608
|
}));
|
|
1609
|
+
case 5:
|
|
1610
|
+
case "end":
|
|
1611
|
+
return _context.stop();
|
|
1416
1612
|
}
|
|
1417
1613
|
}, _callee);
|
|
1418
1614
|
}));
|
|
@@ -1422,40 +1618,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1422
1618
|
}();
|
|
1423
1619
|
//读取文件
|
|
1424
1620
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1425
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1621
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1426
1622
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1427
|
-
return
|
|
1428
|
-
while (1) switch (_context2.
|
|
1623
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1624
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1429
1625
|
case 0:
|
|
1430
1626
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1431
1627
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1432
|
-
_context2.
|
|
1628
|
+
_context2.next = 15;
|
|
1433
1629
|
break;
|
|
1434
1630
|
}
|
|
1435
1631
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1436
|
-
_context2.
|
|
1632
|
+
_context2.next = 5;
|
|
1437
1633
|
return resolveFile(nowFile.originFileObj, {
|
|
1438
1634
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1439
1635
|
sheetCount: 1
|
|
1440
1636
|
});
|
|
1441
|
-
case
|
|
1442
|
-
data2 = _context2.
|
|
1637
|
+
case 5:
|
|
1638
|
+
data2 = _context2.sent;
|
|
1443
1639
|
data = data2[0];
|
|
1444
1640
|
if (data.length) {
|
|
1445
|
-
_context2.
|
|
1641
|
+
_context2.next = 10;
|
|
1446
1642
|
break;
|
|
1447
1643
|
}
|
|
1448
1644
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1449
|
-
return _context2.
|
|
1450
|
-
case
|
|
1645
|
+
return _context2.abrupt("return");
|
|
1646
|
+
case 10:
|
|
1451
1647
|
if (callback) callback(data);
|
|
1452
1648
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1453
|
-
return _context2.
|
|
1454
|
-
case
|
|
1649
|
+
return _context2.abrupt("return", data);
|
|
1650
|
+
case 15:
|
|
1455
1651
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1456
|
-
return _context2.
|
|
1457
|
-
case
|
|
1458
|
-
|
|
1652
|
+
return _context2.abrupt("return");
|
|
1653
|
+
case 17:
|
|
1654
|
+
case "end":
|
|
1655
|
+
return _context2.stop();
|
|
1459
1656
|
}
|
|
1460
1657
|
}, _callee2);
|
|
1461
1658
|
}));
|
|
@@ -2407,14 +2604,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2407
2604
|
return request$1(url, parms).then(handleResponseData);
|
|
2408
2605
|
};
|
|
2409
2606
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2410
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2411
|
-
return
|
|
2412
|
-
while (1) switch (_context.
|
|
2607
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2608
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2609
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2413
2610
|
case 0:
|
|
2414
|
-
return _context.
|
|
2611
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2415
2612
|
data: response,
|
|
2416
2613
|
status: response.status
|
|
2417
2614
|
}));
|
|
2615
|
+
case 1:
|
|
2616
|
+
case "end":
|
|
2617
|
+
return _context.stop();
|
|
2418
2618
|
}
|
|
2419
2619
|
}, _callee);
|
|
2420
2620
|
}));
|
|
@@ -2787,11 +2987,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2787
2987
|
data: luckysheet.transToCellData(newData)
|
|
2788
2988
|
});
|
|
2789
2989
|
};
|
|
2790
|
-
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
2990
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2791
2991
|
var _customerColumnsMappi;
|
|
2792
2992
|
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2793
|
-
return
|
|
2794
|
-
while (1) switch (_context.
|
|
2993
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2994
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2795
2995
|
case 0:
|
|
2796
2996
|
_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
2997
|
resultData = _this.getData().filter(function (d) {
|
|
@@ -2816,19 +3016,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2816
3016
|
}
|
|
2817
3017
|
// 调用回调函数
|
|
2818
3018
|
if (!beforeCheckCallback) {
|
|
2819
|
-
_context.
|
|
3019
|
+
_context.next = 12;
|
|
2820
3020
|
break;
|
|
2821
3021
|
}
|
|
2822
|
-
_context.
|
|
3022
|
+
_context.next = 9;
|
|
2823
3023
|
return beforeCheckCallback(resultData);
|
|
2824
|
-
case
|
|
2825
|
-
resultData = _context.
|
|
3024
|
+
case 9:
|
|
3025
|
+
resultData = _context.sent;
|
|
2826
3026
|
if (resultData) {
|
|
2827
|
-
_context.
|
|
3027
|
+
_context.next = 12;
|
|
2828
3028
|
break;
|
|
2829
3029
|
}
|
|
2830
|
-
return _context.
|
|
2831
|
-
case
|
|
3030
|
+
return _context.abrupt("return");
|
|
3031
|
+
case 12:
|
|
2832
3032
|
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2833
3033
|
columns: resultColumns,
|
|
2834
3034
|
data: resultData,
|
|
@@ -2884,8 +3084,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2884
3084
|
console.log(setExportData);
|
|
2885
3085
|
setExportData([123123]);
|
|
2886
3086
|
}).catch(function (err) {});
|
|
2887
|
-
case
|
|
2888
|
-
|
|
3087
|
+
case 13:
|
|
3088
|
+
case "end":
|
|
3089
|
+
return _context.stop();
|
|
2889
3090
|
}
|
|
2890
3091
|
}, _callee);
|
|
2891
3092
|
}));
|
|
@@ -4577,27 +4778,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4577
4778
|
popvalue = _useState8[0],
|
|
4578
4779
|
setPopValue = _useState8[1];
|
|
4579
4780
|
var _useState9 = useState([]),
|
|
4580
|
-
|
|
4581
|
-
source =
|
|
4582
|
-
setSource =
|
|
4781
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4782
|
+
source = _useState10[0],
|
|
4783
|
+
setSource = _useState10[1];
|
|
4583
4784
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4584
4785
|
getData();
|
|
4585
4786
|
}, {
|
|
4586
4787
|
wait: 1000
|
|
4587
4788
|
}),
|
|
4588
4789
|
run = _useDebounceFn.run;
|
|
4589
|
-
var
|
|
4590
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4591
|
-
fetching = _useState10[0],
|
|
4592
|
-
setFetching = _useState10[1];
|
|
4593
|
-
var _useState11 = useState(''),
|
|
4790
|
+
var _useState11 = useState(false),
|
|
4594
4791
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
var _useState13 = useState(
|
|
4792
|
+
fetching = _useState12[0],
|
|
4793
|
+
setFetching = _useState12[1];
|
|
4794
|
+
var _useState13 = useState(''),
|
|
4598
4795
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4599
|
-
|
|
4600
|
-
|
|
4796
|
+
searchValue = _useState14[0],
|
|
4797
|
+
setSearchValue = _useState14[1];
|
|
4798
|
+
var _useState15 = useState(resultSourceKey),
|
|
4799
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4800
|
+
uniqueValue = _useState16[0],
|
|
4801
|
+
setUniqueValue = _useState16[1];
|
|
4601
4802
|
useEffect(function () {
|
|
4602
4803
|
setPopValue(value);
|
|
4603
4804
|
onValueChange(value);
|
|
@@ -5014,21 +5215,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5014
5215
|
notCommonProperty = _useState8[0],
|
|
5015
5216
|
setNotCommonProperty = _useState8[1];
|
|
5016
5217
|
var _useState9 = useState(false),
|
|
5017
|
-
|
|
5018
|
-
visible =
|
|
5019
|
-
setVisible =
|
|
5020
|
-
var
|
|
5021
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5022
|
-
showNotCommon = _useState10[0],
|
|
5023
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5024
|
-
var _useState11 = useState([]),
|
|
5218
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5219
|
+
visible = _useState10[0],
|
|
5220
|
+
setVisible = _useState10[1];
|
|
5221
|
+
var _useState11 = useState(false),
|
|
5025
5222
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
var _useState13 = useState(
|
|
5223
|
+
showNotCommon = _useState12[0],
|
|
5224
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5225
|
+
var _useState13 = useState([]),
|
|
5029
5226
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5030
|
-
|
|
5031
|
-
|
|
5227
|
+
classifyOptionList = _useState14[0],
|
|
5228
|
+
setClassifyOptionList = _useState14[1];
|
|
5229
|
+
var _useState15 = useState('1'),
|
|
5230
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5231
|
+
listKey = _useState16[0],
|
|
5232
|
+
setListKey = _useState16[1];
|
|
5032
5233
|
useEffect(function () {
|
|
5033
5234
|
requestUtil({
|
|
5034
5235
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5323,7 +5524,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5323
5524
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5324
5525
|
searchStartLength = _ref.searchStartLength,
|
|
5325
5526
|
_ref$isQuery = _ref.isQuery,
|
|
5326
|
-
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery
|
|
5527
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
|
|
5528
|
+
_ref$requireSearchCon = _ref.requireSearchCondition,
|
|
5529
|
+
requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
|
|
5327
5530
|
var requestConfig = _objectSpread2({
|
|
5328
5531
|
url: url,
|
|
5329
5532
|
method: method,
|
|
@@ -5411,29 +5614,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5411
5614
|
scrollPage = _useState8[0],
|
|
5412
5615
|
setScrollPage = _useState8[1];
|
|
5413
5616
|
var _useState9 = useState(0),
|
|
5414
|
-
|
|
5415
|
-
itemsTotal =
|
|
5416
|
-
setItemsTotal =
|
|
5417
|
-
var
|
|
5418
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5419
|
-
fetching = _useState10[0],
|
|
5420
|
-
setFetching = _useState10[1];
|
|
5421
|
-
var _useState11 = useState(''),
|
|
5617
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5618
|
+
itemsTotal = _useState10[0],
|
|
5619
|
+
setItemsTotal = _useState10[1];
|
|
5620
|
+
var _useState11 = useState(false),
|
|
5422
5621
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
var _useState13 = useState(
|
|
5622
|
+
fetching = _useState12[0],
|
|
5623
|
+
setFetching = _useState12[1];
|
|
5624
|
+
var _useState13 = useState(''),
|
|
5426
5625
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
var _useState15 = useState(
|
|
5626
|
+
searchValue = _useState14[0],
|
|
5627
|
+
setSearchValue = _useState14[1];
|
|
5628
|
+
var _useState15 = useState(false),
|
|
5430
5629
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
var _useState17 = useState(
|
|
5630
|
+
isModalVisible = _useState16[0],
|
|
5631
|
+
setIsModalVisible = _useState16[1];
|
|
5632
|
+
var _useState17 = useState(initVal),
|
|
5434
5633
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5435
|
-
|
|
5436
|
-
|
|
5634
|
+
popvalue = _useState18[0],
|
|
5635
|
+
setPopValue = _useState18[1];
|
|
5636
|
+
var _useState19 = useState(resultSourceKey),
|
|
5637
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5638
|
+
uniqueValue = _useState20[0],
|
|
5639
|
+
setUniqueValue = _useState20[1];
|
|
5437
5640
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5438
5641
|
// 优化搜索参数 支持传多个
|
|
5439
5642
|
var searchParams = {};
|
|
@@ -5462,58 +5665,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5462
5665
|
var _Form$useForm = Form.useForm(),
|
|
5463
5666
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5464
5667
|
form = _Form$useForm2[0];
|
|
5465
|
-
var _useState19 = useState(true),
|
|
5466
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5467
|
-
collapsed = _useState20[0],
|
|
5468
|
-
setCollapsed = _useState20[1];
|
|
5469
5668
|
var _useState21 = useState(true),
|
|
5470
5669
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
var _useState23 = useState(
|
|
5670
|
+
collapsed = _useState22[0],
|
|
5671
|
+
setCollapsed = _useState22[1];
|
|
5672
|
+
var _useState23 = useState(true),
|
|
5474
5673
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
var _useState25 = useState(
|
|
5674
|
+
caretLeftFlag = _useState24[0],
|
|
5675
|
+
setCaretLeftFlag = _useState24[1];
|
|
5676
|
+
var _useState25 = useState([]),
|
|
5478
5677
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
var _useState27 = useState(
|
|
5678
|
+
tableData = _useState26[0],
|
|
5679
|
+
setTableData = _useState26[1];
|
|
5680
|
+
var _useState27 = useState(tableInitPagination),
|
|
5482
5681
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5483
|
-
|
|
5484
|
-
|
|
5682
|
+
tablePagination = _useState28[0],
|
|
5683
|
+
setTablePagination = _useState28[1];
|
|
5485
5684
|
var _useState29 = useState([]),
|
|
5486
5685
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
var _useState31 = useState(
|
|
5686
|
+
selectedRowKeys = _useState30[0],
|
|
5687
|
+
setSelectedRowKeys = _useState30[1];
|
|
5688
|
+
var _useState31 = useState([]),
|
|
5490
5689
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5491
|
-
|
|
5492
|
-
|
|
5690
|
+
selectedRows = _useState32[0],
|
|
5691
|
+
setSelectedRows = _useState32[1];
|
|
5493
5692
|
var _useState33 = useState(false),
|
|
5494
5693
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
var _useState35 = useState(
|
|
5694
|
+
checkedAll = _useState34[0],
|
|
5695
|
+
setCheckedAll = _useState34[1];
|
|
5696
|
+
var _useState35 = useState(false),
|
|
5498
5697
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
var _useState37 = useState(
|
|
5698
|
+
indeterminate = _useState36[0],
|
|
5699
|
+
setIndeterminate = _useState36[1];
|
|
5700
|
+
var _useState37 = useState({}),
|
|
5502
5701
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
var _useState39 = useState(
|
|
5702
|
+
tableFormParams = _useState38[0],
|
|
5703
|
+
setTableFormParams = _useState38[1];
|
|
5704
|
+
var _useState39 = useState(false),
|
|
5506
5705
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
var _useState41 = useState(
|
|
5706
|
+
tooltipVisible = _useState40[0],
|
|
5707
|
+
setTooltipVisible = _useState40[1];
|
|
5708
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5510
5709
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5511
|
-
|
|
5512
|
-
|
|
5710
|
+
tableShowColumns = _useState42[0],
|
|
5711
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5513
5712
|
var _useState43 = useState(false),
|
|
5514
5713
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5515
|
-
|
|
5516
|
-
|
|
5714
|
+
confirmLoading = _useState44[0],
|
|
5715
|
+
setConfirmLoading = _useState44[1];
|
|
5716
|
+
var _useState45 = useState(false),
|
|
5717
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5718
|
+
modalSearched = _useState46[0],
|
|
5719
|
+
setModalSearched = _useState46[1];
|
|
5517
5720
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5518
5721
|
setItems(list);
|
|
5519
5722
|
setItemsTotal(total);
|
|
@@ -5886,6 +6089,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5886
6089
|
};
|
|
5887
6090
|
var onSearchTable = function onSearchTable() {
|
|
5888
6091
|
var params = form.getFieldsValue();
|
|
6092
|
+
// 必须选择一个值
|
|
6093
|
+
if (requireSearchCondition) {
|
|
6094
|
+
var hasValidValue = Object.values(params).some(function (value) {
|
|
6095
|
+
return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
|
|
6096
|
+
});
|
|
6097
|
+
if (!hasValidValue) {
|
|
6098
|
+
message$1.warning('请至少选择一个搜索条件');
|
|
6099
|
+
return;
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
5889
6102
|
setModalSearched(true);
|
|
5890
6103
|
setTableFormParams(params);
|
|
5891
6104
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
@@ -5991,7 +6204,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5991
6204
|
})) || [];
|
|
5992
6205
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5993
6206
|
return searchList.map(function (i, index) {
|
|
5994
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6207
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5995
6208
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5996
6209
|
span: ColSpan,
|
|
5997
6210
|
key: i
|
|
@@ -6089,7 +6302,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6089
6302
|
disabled: setDisabled(i.name)
|
|
6090
6303
|
}))));
|
|
6091
6304
|
}
|
|
6092
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6305
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
6093
6306
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6094
6307
|
span: ColSpan,
|
|
6095
6308
|
key: i.name
|
|
@@ -6103,7 +6316,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6103
6316
|
}
|
|
6104
6317
|
})));
|
|
6105
6318
|
}
|
|
6106
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6319
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6107
6320
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6108
6321
|
span: ColSpan,
|
|
6109
6322
|
key: i.name
|
|
@@ -6113,8 +6326,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6113
6326
|
key: i.name
|
|
6114
6327
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6115
6328
|
}
|
|
6116
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6117
|
-
var _i$
|
|
6329
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6330
|
+
var _i$field13;
|
|
6118
6331
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6119
6332
|
span: ColSpan,
|
|
6120
6333
|
key: i.name
|
|
@@ -6127,9 +6340,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6127
6340
|
width: '100%'
|
|
6128
6341
|
},
|
|
6129
6342
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6130
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6343
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6131
6344
|
}
|
|
6132
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6345
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6133
6346
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6134
6347
|
span: ColSpan,
|
|
6135
6348
|
key: i.name
|
|
@@ -6158,7 +6371,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6158
6371
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6159
6372
|
allowClear: true,
|
|
6160
6373
|
maxLength: 100
|
|
6161
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6374
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6162
6375
|
disabled: setDisabled(i.name)
|
|
6163
6376
|
}))));
|
|
6164
6377
|
});
|
|
@@ -6180,7 +6393,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6180
6393
|
});
|
|
6181
6394
|
};
|
|
6182
6395
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6183
|
-
var
|
|
6396
|
+
var _modalTableProps$tabl;
|
|
6397
|
+
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6398
|
+
var canExpand = hasMoreQueryFields(modalTableProps);
|
|
6399
|
+
var collapsedList = modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableSearchForm) === null || _modalTableProps$tabl === void 0 ? void 0 : _modalTableProps$tabl.slice(0, viCount);
|
|
6400
|
+
var baseHeight = getTableHeigth(collapsedList);
|
|
6401
|
+
var rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan).totalRows;
|
|
6402
|
+
var rowsExpandedData = getFormRowInfo(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan);
|
|
6403
|
+
var rowsExpanded = rowsExpandedData.totalRows;
|
|
6404
|
+
var isMoreAction = false;
|
|
6405
|
+
if (24 / (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan) - rowsExpandedData.emptyArray.length === 1) {
|
|
6406
|
+
rowsExpanded++;
|
|
6407
|
+
isMoreAction = true;
|
|
6408
|
+
}
|
|
6409
|
+
var extraRows = !collapsed && canExpand ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
|
|
6410
|
+
var tableBoxHeighth = baseHeight;
|
|
6411
|
+
if (isMoreAction && extraRows > 0) {
|
|
6412
|
+
tableBoxHeighth = tableBoxHeighth + (extraRows - 1 ? extraRows - 1 : 0) * 34 + 32;
|
|
6413
|
+
} else {
|
|
6414
|
+
tableBoxHeighth = tableBoxHeighth + extraRows * 34;
|
|
6415
|
+
}
|
|
6184
6416
|
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6185
6417
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6186
6418
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
@@ -7478,132 +7710,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7478
7710
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7479
7711
|
form = _Form$useForm2[0];
|
|
7480
7712
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7481
|
-
|
|
7482
|
-
tableSearchForm =
|
|
7483
|
-
setTableSearchForm =
|
|
7484
|
-
var
|
|
7485
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7486
|
-
caretLeftFlag = _useState10[0],
|
|
7487
|
-
setCaretLeftFlag = _useState10[1];
|
|
7488
|
-
var _useState11 = useState([]),
|
|
7713
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7714
|
+
tableSearchForm = _useState10[0],
|
|
7715
|
+
setTableSearchForm = _useState10[1];
|
|
7716
|
+
var _useState11 = useState(true),
|
|
7489
7717
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
var _useState13 = useState(
|
|
7718
|
+
caretLeftFlag = _useState12[0],
|
|
7719
|
+
setCaretLeftFlag = _useState12[1];
|
|
7720
|
+
var _useState13 = useState([]),
|
|
7721
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7722
|
+
tableData = _useState14[0],
|
|
7723
|
+
setTableData = _useState14[1];
|
|
7724
|
+
var _useState15 = useState(_objectSpread2({
|
|
7493
7725
|
total: 0,
|
|
7494
7726
|
size: "small",
|
|
7495
7727
|
current: 1,
|
|
7496
7728
|
pageSize: tableInitPageSize
|
|
7497
7729
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7498
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7499
|
-
tablePagination = _useState14[0],
|
|
7500
|
-
setTablePagination = _useState14[1];
|
|
7501
|
-
var _useState15 = useState([]),
|
|
7502
7730
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
var _useState17 = useState(
|
|
7731
|
+
tablePagination = _useState16[0],
|
|
7732
|
+
setTablePagination = _useState16[1];
|
|
7733
|
+
var _useState17 = useState([]),
|
|
7506
7734
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
var _useState19 = useState(
|
|
7735
|
+
selectedRowKeys = _useState18[0],
|
|
7736
|
+
setSelectedRowKeys = _useState18[1];
|
|
7737
|
+
var _useState19 = useState({}),
|
|
7510
7738
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7511
|
-
|
|
7512
|
-
|
|
7739
|
+
tableFormParams = _useState20[0],
|
|
7740
|
+
setTableFormParams = _useState20[1];
|
|
7513
7741
|
var _useState21 = useState(false),
|
|
7514
7742
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
var _useState23 = useState(
|
|
7743
|
+
confirmLoading = _useState22[0],
|
|
7744
|
+
setConfirmLoading = _useState22[1];
|
|
7745
|
+
var _useState23 = useState(false),
|
|
7518
7746
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7519
|
-
|
|
7520
|
-
|
|
7747
|
+
confirmContinueLoading = _useState24[0],
|
|
7748
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7521
7749
|
var _useState25 = useState([]),
|
|
7522
7750
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7523
|
-
|
|
7524
|
-
|
|
7751
|
+
selectColumns = _useState26[0],
|
|
7752
|
+
setSelectColumns = _useState26[1];
|
|
7525
7753
|
var _useState27 = useState([]),
|
|
7526
7754
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7527
|
-
|
|
7528
|
-
|
|
7755
|
+
showColumns = _useState28[0],
|
|
7756
|
+
setShowColumns = _useState28[1];
|
|
7529
7757
|
var _useState29 = useState([]),
|
|
7530
7758
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7531
|
-
|
|
7532
|
-
|
|
7759
|
+
tableColumns = _useState30[0],
|
|
7760
|
+
setTableColumns = _useState30[1];
|
|
7761
|
+
var _useState31 = useState([]),
|
|
7762
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7763
|
+
showToChooseColumns = _useState32[0],
|
|
7764
|
+
setShowToChooseColumns = _useState32[1];
|
|
7533
7765
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7534
7766
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7535
7767
|
// FIXME: 特殊业务逻辑
|
|
7536
7768
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7537
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7538
|
-
var result
|
|
7539
|
-
return
|
|
7540
|
-
while (1) switch (_context.
|
|
7769
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7770
|
+
var result;
|
|
7771
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7772
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7541
7773
|
case 0:
|
|
7542
7774
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7543
7775
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7544
7776
|
}))) {
|
|
7545
|
-
_context.
|
|
7777
|
+
_context.next = 3;
|
|
7546
7778
|
break;
|
|
7547
7779
|
}
|
|
7548
7780
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7549
|
-
return _context.
|
|
7550
|
-
case
|
|
7781
|
+
return _context.abrupt("return", false);
|
|
7782
|
+
case 3:
|
|
7551
7783
|
if (!(bType == 'spu')) {
|
|
7552
|
-
_context.
|
|
7784
|
+
_context.next = 26;
|
|
7553
7785
|
break;
|
|
7554
7786
|
}
|
|
7555
7787
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7556
7788
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7557
7789
|
}))) {
|
|
7558
|
-
_context.
|
|
7790
|
+
_context.next = 7;
|
|
7559
7791
|
break;
|
|
7560
7792
|
}
|
|
7561
7793
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7562
|
-
return _context.
|
|
7563
|
-
case
|
|
7794
|
+
return _context.abrupt("return", false);
|
|
7795
|
+
case 7:
|
|
7564
7796
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7565
|
-
_context.
|
|
7797
|
+
_context.next = 10;
|
|
7566
7798
|
break;
|
|
7567
7799
|
}
|
|
7568
7800
|
message$1.warning('请先选择颜色!');
|
|
7569
|
-
return _context.
|
|
7570
|
-
case
|
|
7801
|
+
return _context.abrupt("return", false);
|
|
7802
|
+
case 10:
|
|
7571
7803
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7572
7804
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7573
7805
|
}))) {
|
|
7574
|
-
_context.
|
|
7806
|
+
_context.next = 13;
|
|
7575
7807
|
break;
|
|
7576
7808
|
}
|
|
7577
7809
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7578
|
-
return _context.
|
|
7579
|
-
case
|
|
7810
|
+
return _context.abrupt("return", false);
|
|
7811
|
+
case 13:
|
|
7580
7812
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7581
|
-
_context.
|
|
7813
|
+
_context.next = 26;
|
|
7582
7814
|
break;
|
|
7583
7815
|
}
|
|
7584
7816
|
result = true;
|
|
7585
|
-
_context.
|
|
7586
|
-
_context.
|
|
7817
|
+
_context.prev = 15;
|
|
7818
|
+
_context.next = 18;
|
|
7587
7819
|
return checkSpuMatchCode({
|
|
7588
7820
|
skcCode: recordItem[recordKey],
|
|
7589
7821
|
matchingCode: changeValue,
|
|
7590
7822
|
ext1: recordItem.colorName
|
|
7591
7823
|
});
|
|
7592
|
-
case
|
|
7593
|
-
result = _context.
|
|
7824
|
+
case 18:
|
|
7825
|
+
result = _context.sent;
|
|
7594
7826
|
result = true;
|
|
7595
|
-
_context.
|
|
7827
|
+
_context.next = 25;
|
|
7596
7828
|
break;
|
|
7597
|
-
case
|
|
7598
|
-
_context.
|
|
7599
|
-
|
|
7600
|
-
result = typeof
|
|
7601
|
-
case
|
|
7602
|
-
return _context.
|
|
7603
|
-
case
|
|
7604
|
-
return _context.
|
|
7605
|
-
|
|
7606
|
-
|
|
7829
|
+
case 22:
|
|
7830
|
+
_context.prev = 22;
|
|
7831
|
+
_context.t0 = _context["catch"](15);
|
|
7832
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7833
|
+
case 25:
|
|
7834
|
+
return _context.abrupt("return", result);
|
|
7835
|
+
case 26:
|
|
7836
|
+
return _context.abrupt("return", true);
|
|
7837
|
+
case 27:
|
|
7838
|
+
case "end":
|
|
7839
|
+
return _context.stop();
|
|
7840
|
+
}
|
|
7841
|
+
}, _callee, null, [[15, 22]]);
|
|
7607
7842
|
}));
|
|
7608
7843
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7609
7844
|
return _ref2.apply(this, arguments);
|
|
@@ -7694,16 +7929,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
7694
7929
|
e.target.blur();
|
|
7695
7930
|
},
|
|
7696
7931
|
onBlur: function () {
|
|
7697
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7932
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7698
7933
|
var value;
|
|
7699
|
-
return
|
|
7700
|
-
while (1) switch (_context2.
|
|
7934
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7935
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7701
7936
|
case 0:
|
|
7702
7937
|
value = e.target.value;
|
|
7703
7938
|
record[item.dataIndex] = value;
|
|
7704
7939
|
editRecord(record);
|
|
7705
|
-
case
|
|
7706
|
-
|
|
7940
|
+
case 3:
|
|
7941
|
+
case "end":
|
|
7942
|
+
return _context2.stop();
|
|
7707
7943
|
}
|
|
7708
7944
|
}, _callee2);
|
|
7709
7945
|
}));
|
|
@@ -7863,10 +8099,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7863
8099
|
}
|
|
7864
8100
|
_dom6 = null;
|
|
7865
8101
|
} else if (e.keyCode === 38) {
|
|
7866
|
-
var _e$nativeEvent$path$
|
|
8102
|
+
var _e$nativeEvent$path$10;
|
|
7867
8103
|
e.stopPropagation();
|
|
7868
8104
|
e.preventDefault();
|
|
7869
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8105
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7870
8106
|
if (dom1) {
|
|
7871
8107
|
// dom1.value=""
|
|
7872
8108
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7900,19 +8136,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7900
8136
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7901
8137
|
value: text || null,
|
|
7902
8138
|
onChange: function () {
|
|
7903
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7904
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7905
|
-
return
|
|
7906
|
-
while (1) switch (_context3.
|
|
8139
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8140
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8141
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8142
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7907
8143
|
case 0:
|
|
7908
8144
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7909
8145
|
return d[selectKey] == value;
|
|
7910
8146
|
})) || {};
|
|
7911
8147
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7912
|
-
_context3.
|
|
8148
|
+
_context3.next = 6;
|
|
7913
8149
|
break;
|
|
7914
8150
|
}
|
|
7915
|
-
_context3.
|
|
8151
|
+
_context3.next = 4;
|
|
7916
8152
|
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, {
|
|
7917
8153
|
record: record,
|
|
7918
8154
|
index: index,
|
|
@@ -7922,10 +8158,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7922
8158
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7923
8159
|
editRecord: editRecord
|
|
7924
8160
|
});
|
|
7925
|
-
case
|
|
7926
|
-
_context3.
|
|
8161
|
+
case 4:
|
|
8162
|
+
_context3.next = 25;
|
|
7927
8163
|
break;
|
|
7928
|
-
case
|
|
8164
|
+
case 6:
|
|
7929
8165
|
// 更新当前行数据函数
|
|
7930
8166
|
changeValue = function changeValue(v, dSSItem) {
|
|
7931
8167
|
var _item$dataSourceSelec;
|
|
@@ -7938,12 +8174,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7938
8174
|
}
|
|
7939
8175
|
}; // 处理校验,默认不校验
|
|
7940
8176
|
isCheckPass = true;
|
|
7941
|
-
_context3.
|
|
8177
|
+
_context3.prev = 8;
|
|
7942
8178
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7943
|
-
_context3.
|
|
8179
|
+
_context3.next = 15;
|
|
7944
8180
|
break;
|
|
7945
8181
|
}
|
|
7946
|
-
_context3.
|
|
8182
|
+
_context3.next = 12;
|
|
7947
8183
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7948
8184
|
record: record,
|
|
7949
8185
|
index: index,
|
|
@@ -7952,23 +8188,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7952
8188
|
changeValue: value,
|
|
7953
8189
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7954
8190
|
});
|
|
7955
|
-
case
|
|
7956
|
-
isCheckPass = _context3.
|
|
7957
|
-
_context3.
|
|
8191
|
+
case 12:
|
|
8192
|
+
isCheckPass = _context3.sent;
|
|
8193
|
+
_context3.next = 19;
|
|
7958
8194
|
break;
|
|
7959
|
-
case
|
|
7960
|
-
_context3.
|
|
8195
|
+
case 15:
|
|
8196
|
+
_context3.next = 17;
|
|
7961
8197
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7962
|
-
case
|
|
7963
|
-
isConformToTheRules = _context3.
|
|
8198
|
+
case 17:
|
|
8199
|
+
isConformToTheRules = _context3.sent;
|
|
7964
8200
|
isCheckPass = !isConformToTheRules;
|
|
7965
|
-
case
|
|
7966
|
-
_context3.
|
|
8201
|
+
case 19:
|
|
8202
|
+
_context3.next = 23;
|
|
7967
8203
|
break;
|
|
7968
|
-
case
|
|
7969
|
-
_context3.
|
|
7970
|
-
|
|
7971
|
-
case
|
|
8204
|
+
case 21:
|
|
8205
|
+
_context3.prev = 21;
|
|
8206
|
+
_context3.t0 = _context3["catch"](8);
|
|
8207
|
+
case 23:
|
|
7972
8208
|
if (isCheckPass) {
|
|
7973
8209
|
changeValue(value, dataSourceSelectItem);
|
|
7974
8210
|
} else {
|
|
@@ -7976,10 +8212,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
7976
8212
|
}
|
|
7977
8213
|
// 更新已选表格函数
|
|
7978
8214
|
editRecord(record);
|
|
7979
|
-
case
|
|
7980
|
-
|
|
8215
|
+
case 25:
|
|
8216
|
+
case "end":
|
|
8217
|
+
return _context3.stop();
|
|
7981
8218
|
}
|
|
7982
|
-
}, _callee3, null, [[
|
|
8219
|
+
}, _callee3, null, [[8, 21]]);
|
|
7983
8220
|
}));
|
|
7984
8221
|
function onChange(_x8) {
|
|
7985
8222
|
return _onChange.apply(this, arguments);
|
|
@@ -9370,29 +9607,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9370
9607
|
dataIndex: 'propertyNameAndValue'
|
|
9371
9608
|
}];
|
|
9372
9609
|
var _useState9 = useState(false),
|
|
9373
|
-
|
|
9374
|
-
isModalVisible =
|
|
9375
|
-
setIsModalVisible =
|
|
9376
|
-
var
|
|
9610
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9611
|
+
isModalVisible = _useState10[0],
|
|
9612
|
+
setIsModalVisible = _useState10[1];
|
|
9613
|
+
var _useState11 = useState([{
|
|
9377
9614
|
hovered: false
|
|
9378
9615
|
}]),
|
|
9379
|
-
|
|
9380
|
-
data =
|
|
9381
|
-
setData =
|
|
9616
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9617
|
+
data = _useState12[0],
|
|
9618
|
+
setData = _useState12[1];
|
|
9382
9619
|
var tableRef = useRef(null);
|
|
9383
9620
|
var codeSelected = tableCode;
|
|
9384
|
-
var
|
|
9385
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9386
|
-
loading = _useState12[0],
|
|
9387
|
-
setLoading = _useState12[1];
|
|
9388
|
-
var _useState13 = useState([]),
|
|
9621
|
+
var _useState13 = useState(false),
|
|
9389
9622
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9390
|
-
|
|
9391
|
-
|
|
9623
|
+
loading = _useState14[0],
|
|
9624
|
+
setLoading = _useState14[1];
|
|
9392
9625
|
var _useState15 = useState([]),
|
|
9393
9626
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9394
|
-
|
|
9395
|
-
|
|
9627
|
+
selectColumns = _useState16[0],
|
|
9628
|
+
setSelectColumns = _useState16[1];
|
|
9629
|
+
var _useState17 = useState([]),
|
|
9630
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9631
|
+
showColumns = _useState18[0],
|
|
9632
|
+
setShowColumns = _useState18[1];
|
|
9396
9633
|
useEffect(function () {
|
|
9397
9634
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9398
9635
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9508,42 +9745,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9508
9745
|
});
|
|
9509
9746
|
};
|
|
9510
9747
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9511
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9748
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9512
9749
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9513
|
-
return
|
|
9514
|
-
while (1) switch (_context.
|
|
9750
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9751
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9515
9752
|
case 0:
|
|
9516
9753
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9517
|
-
_context.
|
|
9754
|
+
_context.next = 3;
|
|
9518
9755
|
break;
|
|
9519
9756
|
}
|
|
9520
9757
|
message$1.warning('至少录入一条数据');
|
|
9521
|
-
return _context.
|
|
9522
|
-
case
|
|
9758
|
+
return _context.abrupt("return");
|
|
9759
|
+
case 3:
|
|
9523
9760
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9524
9761
|
return d.skuCode && d.name;
|
|
9525
9762
|
})) {
|
|
9526
|
-
_context.
|
|
9763
|
+
_context.next = 6;
|
|
9527
9764
|
break;
|
|
9528
9765
|
}
|
|
9529
9766
|
message$1.warning('录入商品不存在');
|
|
9530
|
-
return _context.
|
|
9531
|
-
case
|
|
9767
|
+
return _context.abrupt("return");
|
|
9768
|
+
case 6:
|
|
9532
9769
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9533
9770
|
return d.count;
|
|
9534
9771
|
})) {
|
|
9535
|
-
_context.
|
|
9772
|
+
_context.next = 9;
|
|
9536
9773
|
break;
|
|
9537
9774
|
}
|
|
9538
9775
|
message$1.warning('请填写商品数量!');
|
|
9539
|
-
return _context.
|
|
9540
|
-
case
|
|
9541
|
-
_context.
|
|
9776
|
+
return _context.abrupt("return");
|
|
9777
|
+
case 9:
|
|
9778
|
+
_context.next = 11;
|
|
9542
9779
|
return isSkuCanEntry(data);
|
|
9543
|
-
case
|
|
9544
|
-
canEntryObject = _context.
|
|
9780
|
+
case 11:
|
|
9781
|
+
canEntryObject = _context.sent;
|
|
9545
9782
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9546
|
-
_context.
|
|
9783
|
+
_context.next = 16;
|
|
9547
9784
|
break;
|
|
9548
9785
|
}
|
|
9549
9786
|
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) {
|
|
@@ -9553,8 +9790,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9553
9790
|
content: messageInfo,
|
|
9554
9791
|
duration: 6
|
|
9555
9792
|
});
|
|
9556
|
-
return _context.
|
|
9557
|
-
case
|
|
9793
|
+
return _context.abrupt("return");
|
|
9794
|
+
case 16:
|
|
9558
9795
|
setLoading(true);
|
|
9559
9796
|
onSaveCallback(data).then(function (res) {
|
|
9560
9797
|
{
|
|
@@ -9572,8 +9809,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9572
9809
|
message$1.error(Error);
|
|
9573
9810
|
setLoading(false);
|
|
9574
9811
|
});
|
|
9575
|
-
case
|
|
9576
|
-
|
|
9812
|
+
case 18:
|
|
9813
|
+
case "end":
|
|
9814
|
+
return _context.stop();
|
|
9577
9815
|
}
|
|
9578
9816
|
}, _callee);
|
|
9579
9817
|
}));
|
|
@@ -11882,18 +12120,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11882
12120
|
name: 'qp-code-like',
|
|
11883
12121
|
label: '客户编码'
|
|
11884
12122
|
}, {
|
|
11885
|
-
name: 'qp-createOrgCode-
|
|
12123
|
+
name: 'qp-createOrgCode-in',
|
|
11886
12124
|
type: 'select',
|
|
11887
12125
|
label: '创建组织',
|
|
11888
12126
|
field: {
|
|
11889
12127
|
type: 'select',
|
|
11890
12128
|
props: {
|
|
11891
|
-
|
|
12129
|
+
mode: 'multiple',
|
|
11892
12130
|
notFoundContent: '暂无数据',
|
|
11893
12131
|
allowClear: true,
|
|
11894
12132
|
showSearch: true,
|
|
11895
12133
|
showArrow: true,
|
|
11896
|
-
|
|
12134
|
+
maxTagCount: 1,
|
|
11897
12135
|
optionFilterProp: 'children',
|
|
11898
12136
|
filterOption: function filterOption(input, option) {
|
|
11899
12137
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -11964,17 +12202,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11964
12202
|
}
|
|
11965
12203
|
}
|
|
11966
12204
|
}];
|
|
11967
|
-
var
|
|
12205
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11968
12206
|
querySelectHeadersList: querySelectHeadersList,
|
|
11969
12207
|
extralHeaders: extralHeaders
|
|
11970
12208
|
});
|
|
11971
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
12209
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11972
12210
|
'qp-status-eq': 10,
|
|
11973
12211
|
'qp-isMain-eq': 1,
|
|
11974
12212
|
'qp-type-in': '1,2'
|
|
11975
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11976
12214
|
'qp-status-eq': 1
|
|
11977
|
-
}, getQueryHeadersItem(
|
|
12215
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11978
12216
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11979
12217
|
var allList = firstElement && [firstElement, firstElement];
|
|
11980
12218
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12160,7 +12398,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12160
12398
|
}
|
|
12161
12399
|
}
|
|
12162
12400
|
}];
|
|
12163
|
-
var
|
|
12401
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12164
12402
|
querySelectHeadersList: querySelectHeadersList,
|
|
12165
12403
|
extralHeaders: extralHeaders
|
|
12166
12404
|
});
|
|
@@ -12168,21 +12406,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12168
12406
|
pageSize: 5000,
|
|
12169
12407
|
currentPage: 1,
|
|
12170
12408
|
'qp-companyType-eq': '30'
|
|
12171
|
-
}, getQueryHeadersItem(
|
|
12409
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12172
12410
|
pageSize: 5000,
|
|
12173
12411
|
currentPage: 1,
|
|
12174
12412
|
'qp-companyType-eq': '20'
|
|
12175
|
-
}, getQueryHeadersItem(
|
|
12413
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12176
12414
|
// pageSize: 5000,
|
|
12177
12415
|
// currentPage: 1,
|
|
12178
12416
|
'qp-status-eq': '1'
|
|
12179
|
-
}, getQueryHeadersItem(
|
|
12417
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12180
12418
|
pageSize: 5000,
|
|
12181
12419
|
currentPage: 1
|
|
12182
|
-
}, getQueryHeadersItem(
|
|
12420
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12183
12421
|
pageSize: 5000,
|
|
12184
12422
|
currentPage: 1
|
|
12185
|
-
}, getQueryHeadersItem(
|
|
12423
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12186
12424
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12187
12425
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12188
12426
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12371,26 +12609,102 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12371
12609
|
}
|
|
12372
12610
|
}, {
|
|
12373
12611
|
name: 'qp-manageSupervisor-like',
|
|
12612
|
+
type: 'select',
|
|
12374
12613
|
label: '管理督导',
|
|
12375
|
-
|
|
12614
|
+
field: {
|
|
12615
|
+
type: 'select',
|
|
12616
|
+
props: {
|
|
12617
|
+
notFoundContent: '暂无数据',
|
|
12618
|
+
allowClear: true,
|
|
12619
|
+
showSearch: true,
|
|
12620
|
+
showArrow: true,
|
|
12621
|
+
maxTagCount: 1,
|
|
12622
|
+
optionFilterProp: 'children',
|
|
12623
|
+
filterOption: function filterOption(input, option) {
|
|
12624
|
+
var _option$value;
|
|
12625
|
+
debugger;
|
|
12626
|
+
return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
|
|
12627
|
+
}
|
|
12628
|
+
}
|
|
12629
|
+
}
|
|
12376
12630
|
}, {
|
|
12377
12631
|
name: 'qp-directSupervisor-like',
|
|
12632
|
+
type: 'select',
|
|
12378
12633
|
label: '直接督导',
|
|
12379
|
-
|
|
12634
|
+
field: {
|
|
12635
|
+
type: 'select',
|
|
12636
|
+
props: {
|
|
12637
|
+
notFoundContent: '暂无数据',
|
|
12638
|
+
allowClear: true,
|
|
12639
|
+
showSearch: true,
|
|
12640
|
+
showArrow: true,
|
|
12641
|
+
maxTagCount: 1,
|
|
12642
|
+
optionFilterProp: 'children',
|
|
12643
|
+
filterOption: function filterOption(input, option) {
|
|
12644
|
+
var _option$value2;
|
|
12645
|
+
return ((_option$value2 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value2 !== void 0 ? _option$value2 : '').toLowerCase().includes(input.toLowerCase());
|
|
12646
|
+
}
|
|
12647
|
+
}
|
|
12648
|
+
}
|
|
12380
12649
|
}, {
|
|
12381
12650
|
name: 'qp-distributionItem-like',
|
|
12651
|
+
type: 'select',
|
|
12382
12652
|
label: '分销商品',
|
|
12383
|
-
|
|
12653
|
+
field: {
|
|
12654
|
+
type: 'select',
|
|
12655
|
+
props: {
|
|
12656
|
+
notFoundContent: '暂无数据',
|
|
12657
|
+
allowClear: true,
|
|
12658
|
+
showSearch: true,
|
|
12659
|
+
showArrow: true,
|
|
12660
|
+
maxTagCount: 1,
|
|
12661
|
+
optionFilterProp: 'children',
|
|
12662
|
+
filterOption: function filterOption(input, option) {
|
|
12663
|
+
var _option$value3;
|
|
12664
|
+
return ((_option$value3 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value3 !== void 0 ? _option$value3 : '').toLowerCase().includes(input.toLowerCase());
|
|
12665
|
+
}
|
|
12666
|
+
}
|
|
12667
|
+
}
|
|
12384
12668
|
}, {
|
|
12385
12669
|
name: 'qp-headItem-like',
|
|
12670
|
+
type: 'select',
|
|
12386
12671
|
label: '总部商品',
|
|
12387
|
-
|
|
12672
|
+
field: {
|
|
12673
|
+
type: 'select',
|
|
12674
|
+
props: {
|
|
12675
|
+
notFoundContent: '暂无数据',
|
|
12676
|
+
allowClear: true,
|
|
12677
|
+
showSearch: true,
|
|
12678
|
+
showArrow: true,
|
|
12679
|
+
maxTagCount: 1,
|
|
12680
|
+
optionFilterProp: 'children',
|
|
12681
|
+
filterOption: function filterOption(input, option) {
|
|
12682
|
+
var _option$value4;
|
|
12683
|
+
return ((_option$value4 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value4 !== void 0 ? _option$value4 : '').toLowerCase().includes(input.toLowerCase());
|
|
12684
|
+
}
|
|
12685
|
+
}
|
|
12686
|
+
}
|
|
12388
12687
|
}, {
|
|
12389
12688
|
name: 'qp-storeChannelName-like',
|
|
12689
|
+
type: 'select',
|
|
12390
12690
|
label: '管理模式',
|
|
12391
|
-
|
|
12691
|
+
field: {
|
|
12692
|
+
type: 'select',
|
|
12693
|
+
props: {
|
|
12694
|
+
notFoundContent: '暂无数据',
|
|
12695
|
+
allowClear: true,
|
|
12696
|
+
showSearch: true,
|
|
12697
|
+
showArrow: true,
|
|
12698
|
+
maxTagCount: 1,
|
|
12699
|
+
optionFilterProp: 'children',
|
|
12700
|
+
filterOption: function filterOption(input, option) {
|
|
12701
|
+
var _option$value5;
|
|
12702
|
+
return ((_option$value5 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value5 !== void 0 ? _option$value5 : '').toLowerCase().includes(input.toLowerCase());
|
|
12703
|
+
}
|
|
12704
|
+
}
|
|
12705
|
+
}
|
|
12392
12706
|
}];
|
|
12393
|
-
var
|
|
12707
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12394
12708
|
querySelectHeadersList: querySelectHeadersList,
|
|
12395
12709
|
extralHeaders: extralHeaders
|
|
12396
12710
|
});
|
|
@@ -12398,18 +12712,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12398
12712
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12399
12713
|
'qp-realOrg-eq': true,
|
|
12400
12714
|
'qp-status-eq': 10
|
|
12401
|
-
}, getQueryHeadersItem(
|
|
12715
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12402
12716
|
'qp-status-eq': 10,
|
|
12403
12717
|
'qp-isMain-eq': 1,
|
|
12404
12718
|
'qp-type-in': '1,2'
|
|
12405
|
-
}, getQueryHeadersItem(
|
|
12719
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12406
12720
|
'qp-status-eq': 1
|
|
12407
|
-
}, getQueryHeadersItem(
|
|
12721
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12408
12722
|
pageSize: 5000,
|
|
12409
12723
|
currentPage: 1,
|
|
12410
12724
|
'ctl-withAuth': true
|
|
12411
|
-
}, getQueryHeadersItem(
|
|
12412
|
-
var _x$3, _x$3$data$, _x$3$data$$channelInf;
|
|
12725
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
12726
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12413
12727
|
var newData1 = [];
|
|
12414
12728
|
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
12415
12729
|
newData1.push({
|
|
@@ -12428,6 +12742,46 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12428
12742
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12429
12743
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12430
12744
|
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12745
|
+
var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
|
|
12746
|
+
// 新增label属性
|
|
12747
|
+
(_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
|
|
12748
|
+
r.label = r === null || r === void 0 ? void 0 : r.value;
|
|
12749
|
+
});
|
|
12750
|
+
var opList = Array.isArray(opRaw) ? opRaw : (opRaw === null || opRaw === void 0 ? void 0 : opRaw.items) || (opRaw === null || opRaw === void 0 ? void 0 : opRaw.list) || [];
|
|
12751
|
+
if (Array.isArray(opList) && Array.isArray(opList[0]) && !((_opList$ = opList[0]) === null || _opList$ === void 0 ? void 0 : _opList$.field)) {
|
|
12752
|
+
opList = opList[0];
|
|
12753
|
+
}
|
|
12754
|
+
var m1 = (_opList2 = opList) === null || _opList2 === void 0 ? void 0 : _opList2.filter(function (r) {
|
|
12755
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'manage_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12756
|
+
});
|
|
12757
|
+
var m2 = (_opList3 = opList) === null || _opList3 === void 0 ? void 0 : _opList3.filter(function (r) {
|
|
12758
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'direct_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12759
|
+
});
|
|
12760
|
+
var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
|
|
12761
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12762
|
+
});
|
|
12763
|
+
debugger;
|
|
12764
|
+
var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
|
|
12765
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12766
|
+
});
|
|
12767
|
+
var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
|
|
12768
|
+
return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
|
|
12769
|
+
});
|
|
12770
|
+
tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
|
|
12771
|
+
initialSource: m1
|
|
12772
|
+
});
|
|
12773
|
+
tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
|
|
12774
|
+
initialSource: m2
|
|
12775
|
+
});
|
|
12776
|
+
tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
|
|
12777
|
+
initialSource: m3
|
|
12778
|
+
});
|
|
12779
|
+
tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
|
|
12780
|
+
initialSource: m4
|
|
12781
|
+
});
|
|
12782
|
+
tableSearchForm[12] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
|
|
12783
|
+
initialSource: m5
|
|
12784
|
+
});
|
|
12431
12785
|
});
|
|
12432
12786
|
modalTableProps = _objectSpread2({
|
|
12433
12787
|
modalTableTitle: '选择商店',
|
|
@@ -12686,7 +13040,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12686
13040
|
name: 'qp-officeTelephone-like',
|
|
12687
13041
|
label: '手机号'
|
|
12688
13042
|
}];
|
|
12689
|
-
var
|
|
13043
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12690
13044
|
querySelectHeadersList: querySelectHeadersList,
|
|
12691
13045
|
extralHeaders: extralHeaders
|
|
12692
13046
|
});
|
|
@@ -12694,7 +13048,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12694
13048
|
pageSize: 5000,
|
|
12695
13049
|
currentPage: 1,
|
|
12696
13050
|
'qp-companyType-eq': 20
|
|
12697
|
-
}, getQueryHeadersItem(
|
|
13051
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12698
13052
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12699
13053
|
});
|
|
12700
13054
|
modalTableProps = _objectSpread2({
|
|
@@ -12803,13 +13157,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12803
13157
|
name: 'qp-phone-like',
|
|
12804
13158
|
label: '手机号'
|
|
12805
13159
|
}]);
|
|
12806
|
-
var
|
|
13160
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12807
13161
|
querySelectHeadersList: querySelectHeadersList,
|
|
12808
13162
|
extralHeaders: extralHeaders
|
|
12809
13163
|
});
|
|
12810
13164
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12811
13165
|
'orgViewCode': 'administrative-organization-view'
|
|
12812
|
-
}, getQueryHeadersItem(
|
|
13166
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12813
13167
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12814
13168
|
});
|
|
12815
13169
|
modalTableProps = _objectSpread2({
|
|
@@ -12956,17 +13310,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12956
13310
|
name: 'qp-remark-like',
|
|
12957
13311
|
label: '备注'
|
|
12958
13312
|
}];
|
|
12959
|
-
var
|
|
13313
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12960
13314
|
querySelectHeadersList: querySelectHeadersList,
|
|
12961
13315
|
extralHeaders: extralHeaders
|
|
12962
13316
|
});
|
|
12963
13317
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12964
13318
|
pageSize: 5000,
|
|
12965
13319
|
currentPage: 1
|
|
12966
|
-
}, getQueryHeadersItem(
|
|
13320
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12967
13321
|
pageSize: 5000,
|
|
12968
13322
|
currentPage: 1
|
|
12969
|
-
}, getQueryHeadersItem(
|
|
13323
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12970
13324
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12971
13325
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12972
13326
|
});
|
|
@@ -13136,14 +13490,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13136
13490
|
}
|
|
13137
13491
|
}
|
|
13138
13492
|
}];
|
|
13139
|
-
var
|
|
13493
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13140
13494
|
querySelectHeadersList: querySelectHeadersList,
|
|
13141
13495
|
extralHeaders: extralHeaders
|
|
13142
13496
|
});
|
|
13143
13497
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13144
13498
|
pageSize: 5000,
|
|
13145
13499
|
currentPage: 1
|
|
13146
|
-
}, getQueryHeadersItem(
|
|
13500
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13147
13501
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13148
13502
|
});
|
|
13149
13503
|
modalTableProps = _objectSpread2({
|
|
@@ -13240,7 +13594,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13240
13594
|
}
|
|
13241
13595
|
}
|
|
13242
13596
|
}];
|
|
13243
|
-
var
|
|
13597
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13244
13598
|
querySelectHeadersList: querySelectHeadersList,
|
|
13245
13599
|
extralHeaders: extralHeaders
|
|
13246
13600
|
});
|
|
@@ -13248,7 +13602,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13248
13602
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13249
13603
|
'qp-realOrg-eq': true,
|
|
13250
13604
|
'qp-status-eq': 10
|
|
13251
|
-
}, getQueryHeadersItem(
|
|
13605
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13252
13606
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13253
13607
|
});
|
|
13254
13608
|
modalTableProps = _objectSpread2({
|
|
@@ -13354,13 +13708,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13354
13708
|
},
|
|
13355
13709
|
initialSource: nodeType
|
|
13356
13710
|
}];
|
|
13357
|
-
var
|
|
13711
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13358
13712
|
querySelectHeadersList: querySelectHeadersList,
|
|
13359
13713
|
extralHeaders: extralHeaders
|
|
13360
13714
|
});
|
|
13361
13715
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13362
13716
|
'qp-status-eq': 10
|
|
13363
|
-
}, getQueryHeadersItem(
|
|
13717
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13364
13718
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13365
13719
|
});
|
|
13366
13720
|
modalTableProps = _objectSpread2({
|
|
@@ -13686,13 +14040,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13686
14040
|
},
|
|
13687
14041
|
initialSource: nodeType
|
|
13688
14042
|
}];
|
|
13689
|
-
var
|
|
14043
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13690
14044
|
querySelectHeadersList: querySelectHeadersList,
|
|
13691
14045
|
extralHeaders: extralHeaders
|
|
13692
14046
|
});
|
|
13693
14047
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13694
14048
|
'qp-status-eq': 10
|
|
13695
|
-
}, getQueryHeadersItem(
|
|
14049
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13696
14050
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13697
14051
|
});
|
|
13698
14052
|
modalTableProps = _objectSpread2({
|
|
@@ -14637,9 +14991,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14637
14991
|
value = _useState8[0],
|
|
14638
14992
|
setValue = _useState8[1];
|
|
14639
14993
|
var _useState9 = useState([]),
|
|
14640
|
-
|
|
14641
|
-
propertyList =
|
|
14642
|
-
setPropertyList =
|
|
14994
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14995
|
+
propertyList = _useState10[0],
|
|
14996
|
+
setPropertyList = _useState10[1];
|
|
14643
14997
|
useEffect(function () {
|
|
14644
14998
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14645
14999
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15062,7 +15416,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15062
15416
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
15063
15417
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
15064
15418
|
localstorage = _storageKeyString$spl2[0],
|
|
15065
|
-
restKeyArrays =
|
|
15419
|
+
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15066
15420
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
15067
15421
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15068
15422
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15163,45 +15517,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15163
15517
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
15164
15518
|
headers: headers
|
|
15165
15519
|
}).then(/*#__PURE__*/function () {
|
|
15166
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15520
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
15167
15521
|
var _ctx$form;
|
|
15168
15522
|
var resData, coverData, data, dataList;
|
|
15169
|
-
return
|
|
15170
|
-
while (1) switch (_context.
|
|
15523
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15524
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15171
15525
|
case 0:
|
|
15172
15526
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15173
15527
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15174
|
-
_context.
|
|
15528
|
+
_context.next = 13;
|
|
15175
15529
|
break;
|
|
15176
15530
|
}
|
|
15177
15531
|
data = resData.data;
|
|
15178
15532
|
if (!remoteSource.converter) {
|
|
15179
|
-
_context.
|
|
15533
|
+
_context.next = 9;
|
|
15180
15534
|
break;
|
|
15181
15535
|
}
|
|
15182
|
-
_context.
|
|
15536
|
+
_context.next = 6;
|
|
15183
15537
|
return remoteSource.converter({
|
|
15184
15538
|
data: [data]
|
|
15185
15539
|
});
|
|
15186
|
-
case
|
|
15187
|
-
coverData = _context.
|
|
15188
|
-
_context.
|
|
15540
|
+
case 6:
|
|
15541
|
+
coverData = _context.sent;
|
|
15542
|
+
_context.next = 11;
|
|
15189
15543
|
break;
|
|
15190
|
-
case
|
|
15544
|
+
case 9:
|
|
15191
15545
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15192
15546
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15193
15547
|
return _mapSearchTree(ites);
|
|
15194
15548
|
}) || [];
|
|
15195
|
-
case
|
|
15196
|
-
_context.
|
|
15549
|
+
case 11:
|
|
15550
|
+
_context.next = 14;
|
|
15197
15551
|
break;
|
|
15198
|
-
case
|
|
15552
|
+
case 13:
|
|
15199
15553
|
coverData = [];
|
|
15200
|
-
case
|
|
15554
|
+
case 14:
|
|
15201
15555
|
setTreeData(coverData);
|
|
15202
15556
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15203
|
-
case
|
|
15204
|
-
|
|
15557
|
+
case 16:
|
|
15558
|
+
case "end":
|
|
15559
|
+
return _context.stop();
|
|
15205
15560
|
}
|
|
15206
15561
|
}, _callee);
|
|
15207
15562
|
}));
|
|
@@ -19509,37 +19864,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19509
19864
|
};
|
|
19510
19865
|
var refs = useRef(null);
|
|
19511
19866
|
var _useState9 = useState(''),
|
|
19512
|
-
|
|
19513
|
-
pagePath =
|
|
19514
|
-
setPagePath =
|
|
19867
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19868
|
+
pagePath = _useState10[0],
|
|
19869
|
+
setPagePath = _useState10[1];
|
|
19515
19870
|
var _useLocation = useLocation(),
|
|
19516
19871
|
pathname = _useLocation.pathname,
|
|
19517
19872
|
_useLocation$state = _useLocation.state;
|
|
19518
|
-
var
|
|
19519
|
-
|
|
19520
|
-
isFullScreen =
|
|
19521
|
-
setIsFnllScreen =
|
|
19873
|
+
var _useState11 = useState(false),
|
|
19874
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19875
|
+
isFullScreen = _useState12[0],
|
|
19876
|
+
setIsFnllScreen = _useState12[1];
|
|
19522
19877
|
// @ts-nocheck
|
|
19523
19878
|
var value = props;
|
|
19524
19879
|
var _props$fields = props.fields,
|
|
19525
19880
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19526
|
-
var
|
|
19527
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
19528
|
-
showColumn = _useState12[0],
|
|
19529
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
19530
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19531
|
-
var _useState13 = useState(originSearchFields),
|
|
19881
|
+
var _useState13 = useState([]),
|
|
19532
19882
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
19533
|
-
|
|
19534
|
-
|
|
19535
|
-
var
|
|
19883
|
+
showColumn = _useState14[0],
|
|
19884
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19885
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19886
|
+
var _useState15 = useState(originSearchFields),
|
|
19536
19887
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
var _useState17 = useState(
|
|
19888
|
+
showSearchFields = _useState16[0],
|
|
19889
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19890
|
+
var _useState17 = useState([]),
|
|
19540
19891
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19541
|
-
|
|
19542
|
-
|
|
19892
|
+
showExportColumn = _useState18[0],
|
|
19893
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19894
|
+
var _useState19 = useState(''),
|
|
19895
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19896
|
+
height = _useState20[0],
|
|
19897
|
+
setHeight = _useState20[1];
|
|
19543
19898
|
var sortTableRef = useRef(null);
|
|
19544
19899
|
var searchTableRef = useRef(null);
|
|
19545
19900
|
var exportTableRef = useRef(null);
|
|
@@ -20167,7 +20522,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20167
20522
|
if (!match) return null;
|
|
20168
20523
|
var _match = _toArray(match),
|
|
20169
20524
|
url = _match[0],
|
|
20170
|
-
values =
|
|
20525
|
+
values = _match.slice(1);
|
|
20171
20526
|
var isExact = pathname === url;
|
|
20172
20527
|
if (exact && !isExact) return null;
|
|
20173
20528
|
return {
|
|
@@ -20587,19 +20942,22 @@ function outLogin(_x) {
|
|
|
20587
20942
|
return _outLogin.apply(this, arguments);
|
|
20588
20943
|
}
|
|
20589
20944
|
function _outLogin() {
|
|
20590
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20945
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20591
20946
|
var res;
|
|
20592
|
-
return
|
|
20593
|
-
while (1) switch (_context.
|
|
20947
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20948
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20594
20949
|
case 0:
|
|
20595
|
-
_context.
|
|
20950
|
+
_context.next = 2;
|
|
20596
20951
|
return requestUtil({
|
|
20597
20952
|
url: '/user/web/loginOut',
|
|
20598
20953
|
method: 'GET'
|
|
20599
20954
|
});
|
|
20600
|
-
case
|
|
20601
|
-
res = _context.
|
|
20602
|
-
return _context.
|
|
20955
|
+
case 2:
|
|
20956
|
+
res = _context.sent;
|
|
20957
|
+
return _context.abrupt("return", res);
|
|
20958
|
+
case 4:
|
|
20959
|
+
case "end":
|
|
20960
|
+
return _context.stop();
|
|
20603
20961
|
}
|
|
20604
20962
|
}, _callee);
|
|
20605
20963
|
}));
|
|
@@ -20726,20 +21084,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20726
21084
|
});
|
|
20727
21085
|
};
|
|
20728
21086
|
var loginOut = /*#__PURE__*/function () {
|
|
20729
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
21087
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20730
21088
|
var sessionId;
|
|
20731
|
-
return
|
|
20732
|
-
while (1) switch (_context.
|
|
21089
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21090
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20733
21091
|
case 0:
|
|
20734
|
-
_context.
|
|
21092
|
+
_context.next = 2;
|
|
20735
21093
|
return getSessionId();
|
|
20736
|
-
case
|
|
20737
|
-
sessionId = _context.
|
|
20738
|
-
_context.
|
|
21094
|
+
case 2:
|
|
21095
|
+
sessionId = _context.sent;
|
|
21096
|
+
_context.next = 5;
|
|
20739
21097
|
return outLogin({
|
|
20740
21098
|
sessionId: sessionId
|
|
20741
21099
|
});
|
|
20742
|
-
case
|
|
21100
|
+
case 5:
|
|
20743
21101
|
// @ts-ignore
|
|
20744
21102
|
if (BUILD_TYPE) {
|
|
20745
21103
|
message$1.success('退出登录成功');
|
|
@@ -20749,8 +21107,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20749
21107
|
} else {
|
|
20750
21108
|
setLoginOutPath();
|
|
20751
21109
|
}
|
|
20752
|
-
case
|
|
20753
|
-
|
|
21110
|
+
case 6:
|
|
21111
|
+
case "end":
|
|
21112
|
+
return _context.stop();
|
|
20754
21113
|
}
|
|
20755
21114
|
}, _callee);
|
|
20756
21115
|
}));
|
|
@@ -20837,15 +21196,18 @@ function getStoreByName(_x) {
|
|
|
20837
21196
|
return _getStoreByName.apply(this, arguments);
|
|
20838
21197
|
}
|
|
20839
21198
|
function _getStoreByName() {
|
|
20840
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20841
|
-
return
|
|
20842
|
-
while (1) switch (_context.
|
|
21199
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
21200
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21201
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20843
21202
|
case 0:
|
|
20844
|
-
return _context.
|
|
21203
|
+
return _context.abrupt("return", requestUtil({
|
|
20845
21204
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20846
21205
|
method: 'GET',
|
|
20847
21206
|
params: _objectSpread2({}, params)
|
|
20848
21207
|
}));
|
|
21208
|
+
case 1:
|
|
21209
|
+
case "end":
|
|
21210
|
+
return _context.stop();
|
|
20849
21211
|
}
|
|
20850
21212
|
}, _callee);
|
|
20851
21213
|
}));
|
|
@@ -20880,33 +21242,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20880
21242
|
openSelect = _useState8[0],
|
|
20881
21243
|
setOpenSelect = _useState8[1];
|
|
20882
21244
|
var _useState9 = useState([]),
|
|
20883
|
-
|
|
20884
|
-
options =
|
|
20885
|
-
setOptions =
|
|
20886
|
-
var
|
|
20887
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20888
|
-
rescouse = _useState10[0],
|
|
20889
|
-
setRescouse = _useState10[1];
|
|
20890
|
-
var _useState11 = useState(''),
|
|
21245
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21246
|
+
options = _useState10[0],
|
|
21247
|
+
setOptions = _useState10[1];
|
|
21248
|
+
var _useState11 = useState([]),
|
|
20891
21249
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
var _useState13 = useState(
|
|
21250
|
+
rescouse = _useState12[0],
|
|
21251
|
+
setRescouse = _useState12[1];
|
|
21252
|
+
var _useState13 = useState(''),
|
|
21253
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
21254
|
+
searchValue = _useState14[0],
|
|
21255
|
+
setSearchValue = _useState14[1];
|
|
21256
|
+
var _useState15 = useState([{
|
|
20895
21257
|
label: name,
|
|
20896
21258
|
value: code
|
|
20897
21259
|
}]),
|
|
20898
|
-
|
|
20899
|
-
store =
|
|
20900
|
-
setStore =
|
|
21260
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
21261
|
+
store = _useState16[0],
|
|
21262
|
+
setStore = _useState16[1];
|
|
20901
21263
|
function fetchUserList(_x, _x2) {
|
|
20902
21264
|
return _fetchUserList.apply(this, arguments);
|
|
20903
21265
|
}
|
|
20904
21266
|
function _fetchUserList() {
|
|
20905
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20906
|
-
return
|
|
20907
|
-
while (1) switch (_context3.
|
|
21267
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
21268
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
21269
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20908
21270
|
case 0:
|
|
20909
|
-
return _context3.
|
|
21271
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20910
21272
|
orgName: storeName ? storeName : undefined,
|
|
20911
21273
|
platCompanyCode: init ? undefined : key,
|
|
20912
21274
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20925,6 +21287,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20925
21287
|
};
|
|
20926
21288
|
});
|
|
20927
21289
|
}));
|
|
21290
|
+
case 1:
|
|
21291
|
+
case "end":
|
|
21292
|
+
return _context3.stop();
|
|
20928
21293
|
}
|
|
20929
21294
|
}, _callee3);
|
|
20930
21295
|
}));
|
|
@@ -20947,19 +21312,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20947
21312
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20948
21313
|
}, [debounceTimeout, key]);
|
|
20949
21314
|
var changeInput = /*#__PURE__*/function () {
|
|
20950
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21315
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20951
21316
|
var res;
|
|
20952
|
-
return
|
|
20953
|
-
while (1) switch (_context.
|
|
21317
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21318
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20954
21319
|
case 0:
|
|
20955
|
-
_context.
|
|
21320
|
+
_context.next = 2;
|
|
20956
21321
|
return debounceFetcher(str);
|
|
20957
|
-
case
|
|
20958
|
-
res = _context.
|
|
21322
|
+
case 2:
|
|
21323
|
+
res = _context.sent;
|
|
20959
21324
|
setOptions(res);
|
|
20960
21325
|
setRescouse(res);
|
|
20961
|
-
case
|
|
20962
|
-
|
|
21326
|
+
case 5:
|
|
21327
|
+
case "end":
|
|
21328
|
+
return _context.stop();
|
|
20963
21329
|
}
|
|
20964
21330
|
}, _callee);
|
|
20965
21331
|
}));
|
|
@@ -20968,15 +21334,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20968
21334
|
};
|
|
20969
21335
|
}();
|
|
20970
21336
|
useEffect(function () {
|
|
20971
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21337
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20972
21338
|
var res;
|
|
20973
|
-
return
|
|
20974
|
-
while (1) switch (_context2.
|
|
21339
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21340
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20975
21341
|
case 0:
|
|
20976
|
-
_context2.
|
|
21342
|
+
_context2.next = 2;
|
|
20977
21343
|
return fetchUserList(undefined, true);
|
|
20978
|
-
case
|
|
20979
|
-
res = _context2.
|
|
21344
|
+
case 2:
|
|
21345
|
+
res = _context2.sent;
|
|
20980
21346
|
res.map(function (item, indexNumber) {
|
|
20981
21347
|
if (item.label === name) {
|
|
20982
21348
|
setIndex(indexNumber);
|
|
@@ -20992,8 +21358,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20992
21358
|
});
|
|
20993
21359
|
setOptions(res);
|
|
20994
21360
|
setRescouse(res);
|
|
20995
|
-
case
|
|
20996
|
-
|
|
21361
|
+
case 6:
|
|
21362
|
+
case "end":
|
|
21363
|
+
return _context2.stop();
|
|
20997
21364
|
}
|
|
20998
21365
|
}, _callee2);
|
|
20999
21366
|
}))();
|
|
@@ -22042,25 +22409,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22042
22409
|
currentOneLevel = _useState8[0],
|
|
22043
22410
|
setCurrentOneLevel = _useState8[1];
|
|
22044
22411
|
var _useState9 = useState([]),
|
|
22045
|
-
|
|
22046
|
-
SearhData =
|
|
22047
|
-
setSearchMenuData =
|
|
22048
|
-
var
|
|
22049
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
22050
|
-
rightMenuHeight = _useState10[0],
|
|
22051
|
-
setHeight = _useState10[1];
|
|
22052
|
-
var _useState11 = useState(900),
|
|
22412
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
22413
|
+
SearhData = _useState10[0],
|
|
22414
|
+
setSearchMenuData = _useState10[1];
|
|
22415
|
+
var _useState11 = useState(600),
|
|
22053
22416
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
var _useState13 = useState(
|
|
22417
|
+
rightMenuHeight = _useState12[0],
|
|
22418
|
+
setHeight = _useState12[1];
|
|
22419
|
+
var _useState13 = useState(900),
|
|
22057
22420
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22058
|
-
|
|
22059
|
-
|
|
22421
|
+
drawHeight = _useState14[0],
|
|
22422
|
+
setDrawHeight = _useState14[1];
|
|
22060
22423
|
var _useState15 = useState(false),
|
|
22061
22424
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22062
|
-
|
|
22063
|
-
|
|
22425
|
+
moreBtnShow = _useState16[0],
|
|
22426
|
+
setMoreBtnShow = _useState16[1];
|
|
22427
|
+
var _useState17 = useState(false),
|
|
22428
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
22429
|
+
showScroll = _useState18[0],
|
|
22430
|
+
setShowScroll = _useState18[1];
|
|
22064
22431
|
useEffect(function () {
|
|
22065
22432
|
var _originRoutes$find;
|
|
22066
22433
|
getMenuContentHeight();
|
|
@@ -23671,11 +24038,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23671
24038
|
},
|
|
23672
24039
|
menu: {
|
|
23673
24040
|
request: function () {
|
|
23674
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23675
|
-
return
|
|
23676
|
-
while (1) switch (_context.
|
|
24041
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
24042
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
24043
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23677
24044
|
case 0:
|
|
23678
|
-
return _context.
|
|
24045
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
24046
|
+
case 1:
|
|
24047
|
+
case "end":
|
|
24048
|
+
return _context.stop();
|
|
23679
24049
|
}
|
|
23680
24050
|
}, _callee);
|
|
23681
24051
|
}));
|
|
@@ -24080,31 +24450,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24080
24450
|
multiTableData = _useState8[0],
|
|
24081
24451
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24082
24452
|
var _useState9 = useState(10),
|
|
24083
|
-
|
|
24084
|
-
viewCount =
|
|
24085
|
-
setViewCount =
|
|
24453
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24454
|
+
viewCount = _useState10[0],
|
|
24455
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
24086
24456
|
var itemWidth = 100; // 表格每一项宽度
|
|
24087
|
-
var
|
|
24088
|
-
|
|
24089
|
-
realColHeaderWidth =
|
|
24090
|
-
setLeftWidth =
|
|
24457
|
+
var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24458
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24459
|
+
realColHeaderWidth = _useState12[0],
|
|
24460
|
+
setLeftWidth = _useState12[1];
|
|
24091
24461
|
var viewPort = useRef(null);
|
|
24092
24462
|
var topScrollBar = useRef(null);
|
|
24093
24463
|
var leftTableRef = useRef(null);
|
|
24094
24464
|
//起始渲染item
|
|
24095
|
-
var
|
|
24096
|
-
|
|
24097
|
-
startIndex =
|
|
24098
|
-
setStartIndex =
|
|
24465
|
+
var _useState13 = useState(0),
|
|
24466
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24467
|
+
startIndex = _useState14[0],
|
|
24468
|
+
setStartIndex = _useState14[1];
|
|
24099
24469
|
//结束渲染item
|
|
24100
24470
|
var endIndex = useMemo(function () {
|
|
24101
24471
|
return startIndex + viewCount;
|
|
24102
24472
|
}, [startIndex, viewCount]);
|
|
24103
24473
|
//表格偏移量
|
|
24104
|
-
var
|
|
24105
|
-
|
|
24106
|
-
offsetWidth =
|
|
24107
|
-
setOffset =
|
|
24474
|
+
var _useState15 = useState(0),
|
|
24475
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24476
|
+
offsetWidth = _useState16[0],
|
|
24477
|
+
setOffset = _useState16[1];
|
|
24108
24478
|
useEffect(function () {
|
|
24109
24479
|
setTimeout(function () {
|
|
24110
24480
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31408,11 +31778,11 @@ var valueType = {
|
|
|
31408
31778
|
};
|
|
31409
31779
|
|
|
31410
31780
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31411
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31412
|
-
return
|
|
31413
|
-
while (1) switch (_context.
|
|
31781
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31782
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31783
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31414
31784
|
case 0:
|
|
31415
|
-
_context.
|
|
31785
|
+
_context.next = 2;
|
|
31416
31786
|
return request$2({
|
|
31417
31787
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31418
31788
|
converter: function converter(_ref2) {
|
|
@@ -31425,8 +31795,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31425
31795
|
});
|
|
31426
31796
|
}
|
|
31427
31797
|
});
|
|
31428
|
-
case
|
|
31429
|
-
return _context.
|
|
31798
|
+
case 2:
|
|
31799
|
+
return _context.abrupt("return", _context.sent);
|
|
31800
|
+
case 3:
|
|
31801
|
+
case "end":
|
|
31802
|
+
return _context.stop();
|
|
31430
31803
|
}
|
|
31431
31804
|
}, _callee);
|
|
31432
31805
|
}));
|
|
@@ -31473,12 +31846,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31473
31846
|
value: false
|
|
31474
31847
|
}];
|
|
31475
31848
|
var ref = useRef();
|
|
31476
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31477
|
-
var _ref$current, source
|
|
31478
|
-
return
|
|
31479
|
-
while (1) switch (_context.
|
|
31849
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31850
|
+
var _ref$current, source;
|
|
31851
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31852
|
+
while (1) switch (_context.prev = _context.next) {
|
|
31480
31853
|
case 0:
|
|
31481
|
-
_context.
|
|
31854
|
+
_context.next = 2;
|
|
31482
31855
|
return setIsShowAndType(function (prev) {
|
|
31483
31856
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31484
31857
|
return {
|
|
@@ -31489,39 +31862,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31489
31862
|
}
|
|
31490
31863
|
return prev;
|
|
31491
31864
|
});
|
|
31492
|
-
case
|
|
31865
|
+
case 2:
|
|
31493
31866
|
if (!record.dictionaryCode) {
|
|
31494
|
-
_context.
|
|
31867
|
+
_context.next = 17;
|
|
31495
31868
|
break;
|
|
31496
31869
|
}
|
|
31497
31870
|
if (!(record.choiceType == 20)) {
|
|
31498
|
-
_context.
|
|
31871
|
+
_context.next = 7;
|
|
31499
31872
|
break;
|
|
31500
31873
|
}
|
|
31501
|
-
|
|
31502
|
-
_context.
|
|
31874
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31875
|
+
_context.next = 15;
|
|
31503
31876
|
break;
|
|
31504
|
-
case
|
|
31877
|
+
case 7:
|
|
31505
31878
|
if (!(record.choiceType == 30)) {
|
|
31506
|
-
_context.
|
|
31879
|
+
_context.next = 13;
|
|
31507
31880
|
break;
|
|
31508
31881
|
}
|
|
31509
|
-
_context.
|
|
31882
|
+
_context.next = 10;
|
|
31510
31883
|
return getDynamicDict(record.dictionaryCode);
|
|
31511
|
-
case
|
|
31512
|
-
|
|
31513
|
-
_context.
|
|
31884
|
+
case 10:
|
|
31885
|
+
_context.t1 = _context.sent;
|
|
31886
|
+
_context.next = 14;
|
|
31514
31887
|
break;
|
|
31515
|
-
case
|
|
31516
|
-
|
|
31517
|
-
case
|
|
31518
|
-
|
|
31519
|
-
case
|
|
31520
|
-
source =
|
|
31888
|
+
case 13:
|
|
31889
|
+
_context.t1 = [];
|
|
31890
|
+
case 14:
|
|
31891
|
+
_context.t0 = _context.t1;
|
|
31892
|
+
case 15:
|
|
31893
|
+
source = _context.t0;
|
|
31521
31894
|
// @ts-ignore
|
|
31522
31895
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31523
|
-
case
|
|
31524
|
-
|
|
31896
|
+
case 17:
|
|
31897
|
+
case "end":
|
|
31898
|
+
return _context.stop();
|
|
31525
31899
|
}
|
|
31526
31900
|
}, _callee);
|
|
31527
31901
|
})));
|
|
@@ -31586,10 +31960,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31586
31960
|
source: {
|
|
31587
31961
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31588
31962
|
type: function () {
|
|
31589
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31963
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
31590
31964
|
var form, values, name, relates, source;
|
|
31591
|
-
return
|
|
31592
|
-
while (1) switch (_context2.
|
|
31965
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31966
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31593
31967
|
case 0:
|
|
31594
31968
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31595
31969
|
if (values[0]) {
|
|
@@ -31598,18 +31972,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31598
31972
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31599
31973
|
}
|
|
31600
31974
|
if (!values[1]) {
|
|
31601
|
-
_context2.
|
|
31975
|
+
_context2.next = 9;
|
|
31602
31976
|
break;
|
|
31603
31977
|
}
|
|
31604
|
-
_context2.
|
|
31978
|
+
_context2.next = 5;
|
|
31605
31979
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31606
|
-
case
|
|
31607
|
-
source = _context2.
|
|
31980
|
+
case 5:
|
|
31981
|
+
source = _context2.sent;
|
|
31608
31982
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31609
31983
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31610
31984
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31611
|
-
case
|
|
31612
|
-
|
|
31985
|
+
case 9:
|
|
31986
|
+
case "end":
|
|
31987
|
+
return _context2.stop();
|
|
31613
31988
|
}
|
|
31614
31989
|
}, _callee2);
|
|
31615
31990
|
}));
|
|
@@ -32065,25 +32440,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32065
32440
|
source: {
|
|
32066
32441
|
relates: ['choiceType', 'inputType'],
|
|
32067
32442
|
type: function () {
|
|
32068
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32443
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
32069
32444
|
var values, name, form, source;
|
|
32070
|
-
return
|
|
32071
|
-
while (1) switch (_context3.
|
|
32445
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32446
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
32072
32447
|
case 0:
|
|
32073
|
-
values =
|
|
32448
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
32074
32449
|
if (values[1] === 40) {
|
|
32075
32450
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32076
32451
|
form.setFieldVisible(name, false);
|
|
32077
32452
|
}
|
|
32078
32453
|
if (!(values[0] === 30)) {
|
|
32079
|
-
_context3.
|
|
32454
|
+
_context3.next = 10;
|
|
32080
32455
|
break;
|
|
32081
32456
|
}
|
|
32082
|
-
_context3.
|
|
32457
|
+
_context3.next = 5;
|
|
32083
32458
|
return request$2({
|
|
32084
32459
|
url: '/basic/dictDynamicItem/queryList',
|
|
32085
|
-
converter: function converter(
|
|
32086
|
-
var data =
|
|
32460
|
+
converter: function converter(_ref11) {
|
|
32461
|
+
var data = _ref11.data;
|
|
32087
32462
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32088
32463
|
return {
|
|
32089
32464
|
text: d.dictCode,
|
|
@@ -32092,16 +32467,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32092
32467
|
});
|
|
32093
32468
|
}
|
|
32094
32469
|
});
|
|
32095
|
-
case
|
|
32096
|
-
source = _context3.
|
|
32470
|
+
case 5:
|
|
32471
|
+
source = _context3.sent;
|
|
32097
32472
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32098
32473
|
form.setFieldVisible(name, true);
|
|
32099
|
-
_context3.
|
|
32474
|
+
_context3.next = 11;
|
|
32100
32475
|
break;
|
|
32101
|
-
case
|
|
32476
|
+
case 10:
|
|
32102
32477
|
form.setFieldVisible(name, false);
|
|
32103
|
-
case
|
|
32104
|
-
|
|
32478
|
+
case 11:
|
|
32479
|
+
case "end":
|
|
32480
|
+
return _context3.stop();
|
|
32105
32481
|
}
|
|
32106
32482
|
}, _callee3);
|
|
32107
32483
|
}));
|
|
@@ -32116,8 +32492,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32116
32492
|
name: 'enumeration',
|
|
32117
32493
|
label: '维护自定义选项',
|
|
32118
32494
|
field: {
|
|
32119
|
-
type: function type(
|
|
32120
|
-
var form =
|
|
32495
|
+
type: function type(_ref12) {
|
|
32496
|
+
var form = _ref12.form;
|
|
32121
32497
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
32122
32498
|
type: 'link',
|
|
32123
32499
|
onClick: function onClick() {
|
|
@@ -32143,10 +32519,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32143
32519
|
dependency: {
|
|
32144
32520
|
source: {
|
|
32145
32521
|
relates: ['choiceType'],
|
|
32146
|
-
type: function type(
|
|
32147
|
-
var values =
|
|
32148
|
-
name =
|
|
32149
|
-
form =
|
|
32522
|
+
type: function type(_ref13) {
|
|
32523
|
+
var values = _ref13.values,
|
|
32524
|
+
name = _ref13.name,
|
|
32525
|
+
form = _ref13.form;
|
|
32150
32526
|
if (values[0] === 10) {
|
|
32151
32527
|
form.setFieldVisible(name, true);
|
|
32152
32528
|
} else {
|
|
@@ -32162,10 +32538,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32162
32538
|
dependency: {
|
|
32163
32539
|
visible: {
|
|
32164
32540
|
relates: ['choiceType'],
|
|
32165
|
-
type: function type(
|
|
32166
|
-
var name =
|
|
32167
|
-
values =
|
|
32168
|
-
form =
|
|
32541
|
+
type: function type(_ref14) {
|
|
32542
|
+
var name = _ref14.name,
|
|
32543
|
+
values = _ref14.values,
|
|
32544
|
+
form = _ref14.form;
|
|
32169
32545
|
if (values[0] == 330) {
|
|
32170
32546
|
form.setFieldVisible(name, true);
|
|
32171
32547
|
} else {
|
|
@@ -32189,8 +32565,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32189
32565
|
params: {
|
|
32190
32566
|
'qp-businessType-eq': record.businessType
|
|
32191
32567
|
},
|
|
32192
|
-
converter: function converter(
|
|
32193
|
-
var data =
|
|
32568
|
+
converter: function converter(_ref15) {
|
|
32569
|
+
var data = _ref15.data;
|
|
32194
32570
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32195
32571
|
return {
|
|
32196
32572
|
text: d.name,
|
|
@@ -32230,8 +32606,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32230
32606
|
'qp-businessType-eq': record.businessType,
|
|
32231
32607
|
'qp-status-eq': 1
|
|
32232
32608
|
},
|
|
32233
|
-
converter: function converter(
|
|
32234
|
-
var data =
|
|
32609
|
+
converter: function converter(_ref16) {
|
|
32610
|
+
var data = _ref16.data;
|
|
32235
32611
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32236
32612
|
var _d$code;
|
|
32237
32613
|
return {
|
|
@@ -32259,8 +32635,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32259
32635
|
remoteSource: {
|
|
32260
32636
|
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),
|
|
32261
32637
|
method: 'get',
|
|
32262
|
-
converter: function converter(
|
|
32263
|
-
var data =
|
|
32638
|
+
converter: function converter(_ref17) {
|
|
32639
|
+
var data = _ref17.data;
|
|
32264
32640
|
if (lineDetail.moduleType == 1) {
|
|
32265
32641
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32266
32642
|
return {
|
|
@@ -32286,16 +32662,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32286
32662
|
width: 900,
|
|
32287
32663
|
maskClosable: false,
|
|
32288
32664
|
onOk: function () {
|
|
32289
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32665
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32290
32666
|
var _ref$current4, _res$editableStatus;
|
|
32291
32667
|
var res, _res$defaultValue;
|
|
32292
|
-
return
|
|
32293
|
-
while (1) switch (_context4.
|
|
32668
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32669
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
32294
32670
|
case 0:
|
|
32295
|
-
_context4.
|
|
32671
|
+
_context4.next = 2;
|
|
32296
32672
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32297
|
-
case
|
|
32298
|
-
res = _context4.
|
|
32673
|
+
case 2:
|
|
32674
|
+
res = _context4.sent;
|
|
32299
32675
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32300
32676
|
res.fieldGroup = record.fieldGroup;
|
|
32301
32677
|
res.businessType = record.businessType;
|
|
@@ -32322,7 +32698,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32322
32698
|
delete res.formula;
|
|
32323
32699
|
delete res.showValue;
|
|
32324
32700
|
if (!(mode === 'create')) {
|
|
32325
|
-
_context4.
|
|
32701
|
+
_context4.next = 18;
|
|
32326
32702
|
break;
|
|
32327
32703
|
}
|
|
32328
32704
|
request$2({
|
|
@@ -32334,8 +32710,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32334
32710
|
onParentOk();
|
|
32335
32711
|
}
|
|
32336
32712
|
});
|
|
32337
|
-
return _context4.
|
|
32338
|
-
case
|
|
32713
|
+
return _context4.abrupt("return");
|
|
32714
|
+
case 18:
|
|
32339
32715
|
request$2({
|
|
32340
32716
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32341
32717
|
method: 'PATCH',
|
|
@@ -32345,8 +32721,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32345
32721
|
onParentOk();
|
|
32346
32722
|
}
|
|
32347
32723
|
});
|
|
32348
|
-
case
|
|
32349
|
-
|
|
32724
|
+
case 19:
|
|
32725
|
+
case "end":
|
|
32726
|
+
return _context4.stop();
|
|
32350
32727
|
}
|
|
32351
32728
|
}, _callee4);
|
|
32352
32729
|
}));
|
|
@@ -32802,21 +33179,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32802
33179
|
jsonEditorVal = _useState8[0],
|
|
32803
33180
|
setJsonEditorVal = _useState8[1];
|
|
32804
33181
|
var _useState9 = useState({}),
|
|
32805
|
-
|
|
32806
|
-
moduleParams =
|
|
32807
|
-
setModuleParams =
|
|
32808
|
-
var
|
|
32809
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32810
|
-
activeKey = _useState10[0],
|
|
32811
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32812
|
-
var _useState11 = useState({}),
|
|
33182
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
33183
|
+
moduleParams = _useState10[0],
|
|
33184
|
+
setModuleParams = _useState10[1];
|
|
33185
|
+
var _useState11 = useState('main'),
|
|
32813
33186
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
var _useState13 = useState(
|
|
33187
|
+
activeKey = _useState12[0],
|
|
33188
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
33189
|
+
var _useState13 = useState({}),
|
|
32817
33190
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32818
|
-
|
|
32819
|
-
|
|
33191
|
+
tablesConfigParams = _useState14[0],
|
|
33192
|
+
setTablesConfigParams = _useState14[1];
|
|
33193
|
+
var _useState15 = useState([]),
|
|
33194
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
33195
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
33196
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32820
33197
|
useEffect(function () {
|
|
32821
33198
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32822
33199
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32847,7 +33224,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32847
33224
|
});
|
|
32848
33225
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32849
33226
|
var _ref6 = _toArray(_ref5),
|
|
32850
|
-
resArr =
|
|
33227
|
+
resArr = _ref6.slice(0);
|
|
32851
33228
|
var configParams = {};
|
|
32852
33229
|
detailTablesSetting.map(function (item, index) {
|
|
32853
33230
|
var _resArr$index;
|
|
@@ -33192,11 +33569,11 @@ function getMetaData(_x) {
|
|
|
33192
33569
|
|
|
33193
33570
|
// 获取数据
|
|
33194
33571
|
function _getMetaData() {
|
|
33195
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33196
|
-
return
|
|
33197
|
-
while (1) switch (_context.
|
|
33572
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33573
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33574
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33198
33575
|
case 0:
|
|
33199
|
-
return _context.
|
|
33576
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
33200
33577
|
request$3('/basic/entityProperty/listNoPage', {
|
|
33201
33578
|
params: {
|
|
33202
33579
|
'qp-entityId-eq': id
|
|
@@ -33208,6 +33585,9 @@ function _getMetaData() {
|
|
|
33208
33585
|
reject([]);
|
|
33209
33586
|
});
|
|
33210
33587
|
}));
|
|
33588
|
+
case 1:
|
|
33589
|
+
case "end":
|
|
33590
|
+
return _context.stop();
|
|
33211
33591
|
}
|
|
33212
33592
|
}, _callee);
|
|
33213
33593
|
}));
|
|
@@ -33411,11 +33791,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33411
33791
|
tableState = _useState4[0],
|
|
33412
33792
|
setTableState = _useState4[1];
|
|
33413
33793
|
var handleOpen = /*#__PURE__*/function () {
|
|
33414
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33794
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33415
33795
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33416
33796
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33417
|
-
return
|
|
33418
|
-
while (1) switch (_context.
|
|
33797
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33798
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33419
33799
|
case 0:
|
|
33420
33800
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33421
33801
|
isSearchForm: props.isSearchForm,
|
|
@@ -33423,16 +33803,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33423
33803
|
searchFormData: searchFormData
|
|
33424
33804
|
});
|
|
33425
33805
|
if (requestConfigNew) {
|
|
33426
|
-
_context.
|
|
33806
|
+
_context.next = 3;
|
|
33427
33807
|
break;
|
|
33428
33808
|
}
|
|
33429
|
-
return _context.
|
|
33430
|
-
case
|
|
33809
|
+
return _context.abrupt("return");
|
|
33810
|
+
case 3:
|
|
33431
33811
|
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;
|
|
33432
|
-
_context.
|
|
33812
|
+
_context.next = 6;
|
|
33433
33813
|
return getMetaData(metaDataId);
|
|
33434
|
-
case
|
|
33435
|
-
metaData = _context.
|
|
33814
|
+
case 6:
|
|
33815
|
+
metaData = _context.sent;
|
|
33436
33816
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33437
33817
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33438
33818
|
})) || [];
|
|
@@ -33472,8 +33852,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33472
33852
|
// @ts-ignore
|
|
33473
33853
|
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);
|
|
33474
33854
|
}
|
|
33475
|
-
case
|
|
33476
|
-
|
|
33855
|
+
case 14:
|
|
33856
|
+
case "end":
|
|
33857
|
+
return _context.stop();
|
|
33477
33858
|
}
|
|
33478
33859
|
}, _callee);
|
|
33479
33860
|
}));
|
|
@@ -33576,7 +33957,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33576
33957
|
}, [requestConfig, tableState.columns]);
|
|
33577
33958
|
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';
|
|
33578
33959
|
var handleOk = function handleOk(rowData) {
|
|
33579
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33960
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
33580
33961
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33581
33962
|
//多选数据处理
|
|
33582
33963
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33587,9 +33968,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33587
33968
|
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()) || [];
|
|
33588
33969
|
var realSelectedRows = selectedRows;
|
|
33589
33970
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33590
|
-
var _queryTableRef$
|
|
33971
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
33591
33972
|
// @ts-ignore
|
|
33592
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33973
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
|
|
33593
33974
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33594
33975
|
return selectedKesys.includes(s[rowKey]);
|
|
33595
33976
|
});
|
|
@@ -33622,10 +34003,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33622
34003
|
});
|
|
33623
34004
|
}
|
|
33624
34005
|
mappings.map(function (item) {
|
|
33625
|
-
var _props$
|
|
33626
|
-
if (((_props$
|
|
33627
|
-
var _props$
|
|
33628
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
34006
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
34007
|
+
if (((_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel]) {
|
|
34008
|
+
var _props$customSelector14, _props$customSelector15;
|
|
34009
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
|
|
33629
34010
|
}
|
|
33630
34011
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33631
34012
|
});
|
|
@@ -33680,10 +34061,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33680
34061
|
}
|
|
33681
34062
|
props.onCancel();
|
|
33682
34063
|
//@ts-ignore
|
|
33683
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34064
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
|
|
33684
34065
|
};
|
|
33685
34066
|
var config = useMemo(function () {
|
|
33686
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
34067
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33687
34068
|
var returnConfig = {
|
|
33688
34069
|
size: 'small',
|
|
33689
34070
|
needPageHeader: false,
|
|
@@ -33692,7 +34073,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33692
34073
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33693
34074
|
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) {
|
|
33694
34075
|
return v.key || v;
|
|
33695
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
34076
|
+
})) || (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))
|
|
33696
34077
|
} : false,
|
|
33697
34078
|
remoteDataSource: remoteDataSource,
|
|
33698
34079
|
fields: tableState.fields,
|
|
@@ -33700,8 +34081,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33700
34081
|
rowKey: rowKey,
|
|
33701
34082
|
tableProps: !isView && {
|
|
33702
34083
|
rowClassName: function rowClassName(record) {
|
|
33703
|
-
var _props$
|
|
33704
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
34084
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
34085
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33705
34086
|
},
|
|
33706
34087
|
onRow: function onRow(record) {
|
|
33707
34088
|
return {
|
|
@@ -33746,10 +34127,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33746
34127
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33747
34128
|
type: "default",
|
|
33748
34129
|
onClick: function onClick() {
|
|
33749
|
-
var _queryTableRef$
|
|
34130
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33750
34131
|
props.onCancel();
|
|
33751
34132
|
//@ts-ignore
|
|
33752
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
34133
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
|
|
33753
34134
|
}
|
|
33754
34135
|
}, "\u53D6\u6D88"))));
|
|
33755
34136
|
});
|
|
@@ -33973,19 +34354,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33973
34354
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33974
34355
|
handSource = _useState2[0],
|
|
33975
34356
|
setHandSource = _useState2[1];
|
|
33976
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34357
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33977
34358
|
var resData, data;
|
|
33978
|
-
return
|
|
33979
|
-
while (1) switch (_context.
|
|
34359
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34360
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33980
34361
|
case 0:
|
|
33981
34362
|
if (!(!source && initRequestSource)) {
|
|
33982
|
-
_context.
|
|
34363
|
+
_context.next = 6;
|
|
33983
34364
|
break;
|
|
33984
34365
|
}
|
|
33985
|
-
_context.
|
|
34366
|
+
_context.next = 3;
|
|
33986
34367
|
return initRequestSource();
|
|
33987
|
-
case
|
|
33988
|
-
resData = _context.
|
|
34368
|
+
case 3:
|
|
34369
|
+
resData = _context.sent;
|
|
33989
34370
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33990
34371
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33991
34372
|
label: item.text,
|
|
@@ -33993,8 +34374,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33993
34374
|
});
|
|
33994
34375
|
})) || [];
|
|
33995
34376
|
setHandSource(data);
|
|
33996
|
-
case
|
|
33997
|
-
|
|
34377
|
+
case 6:
|
|
34378
|
+
case "end":
|
|
34379
|
+
return _context.stop();
|
|
33998
34380
|
}
|
|
33999
34381
|
}, _callee);
|
|
34000
34382
|
})), []);
|
|
@@ -34124,17 +34506,20 @@ function getRegularThresholdRange(_x) {
|
|
|
34124
34506
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34125
34507
|
}
|
|
34126
34508
|
function _getRegularThresholdRange() {
|
|
34127
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34128
|
-
return
|
|
34129
|
-
while (1) switch (_context.
|
|
34509
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
34510
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34511
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34130
34512
|
case 0:
|
|
34131
|
-
return _context.
|
|
34513
|
+
return _context.abrupt("return", requestUtil({
|
|
34132
34514
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34133
34515
|
method: 'POST',
|
|
34134
34516
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34135
34517
|
queryIdentify: undefined
|
|
34136
34518
|
})
|
|
34137
34519
|
}));
|
|
34520
|
+
case 1:
|
|
34521
|
+
case "end":
|
|
34522
|
+
return _context.stop();
|
|
34138
34523
|
}
|
|
34139
34524
|
}, _callee);
|
|
34140
34525
|
}));
|
|
@@ -34275,24 +34660,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34275
34660
|
};
|
|
34276
34661
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34277
34662
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34278
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34663
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34279
34664
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34280
|
-
return
|
|
34281
|
-
while (1) switch (_context.
|
|
34665
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34666
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34282
34667
|
case 0:
|
|
34283
34668
|
if (queryIdentify) {
|
|
34284
|
-
_context.
|
|
34669
|
+
_context.next = 2;
|
|
34285
34670
|
break;
|
|
34286
34671
|
}
|
|
34287
|
-
return _context.
|
|
34288
|
-
case
|
|
34672
|
+
return _context.abrupt("return");
|
|
34673
|
+
case 2:
|
|
34289
34674
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34290
34675
|
extraRequestUrl = '';
|
|
34291
34676
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34292
34677
|
if (!queryIdentityInfo.find(function (item) {
|
|
34293
34678
|
return item.identity == propertyCode;
|
|
34294
34679
|
})) {
|
|
34295
|
-
_context.
|
|
34680
|
+
_context.next = 10;
|
|
34296
34681
|
break;
|
|
34297
34682
|
}
|
|
34298
34683
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34306,15 +34691,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34306
34691
|
if (!needQueryList.some(function (item) {
|
|
34307
34692
|
return !querParams[item] || !querParams[item].length;
|
|
34308
34693
|
})) {
|
|
34309
|
-
_context.
|
|
34694
|
+
_context.next = 9;
|
|
34310
34695
|
break;
|
|
34311
34696
|
}
|
|
34312
|
-
return _context.
|
|
34313
|
-
case
|
|
34697
|
+
return _context.abrupt("return");
|
|
34698
|
+
case 9:
|
|
34314
34699
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34315
34700
|
return item.identity == propertyCode;
|
|
34316
34701
|
}).requestUrl || '';
|
|
34317
|
-
case
|
|
34702
|
+
case 10:
|
|
34318
34703
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34319
34704
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34320
34705
|
querParams = {
|
|
@@ -34325,7 +34710,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34325
34710
|
// querParams = { dictCode: queryIdentify }
|
|
34326
34711
|
}
|
|
34327
34712
|
if (!extraRequestUrl) {
|
|
34328
|
-
_context.
|
|
34713
|
+
_context.next = 16;
|
|
34329
34714
|
break;
|
|
34330
34715
|
}
|
|
34331
34716
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34364,42 +34749,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34364
34749
|
return handleData;
|
|
34365
34750
|
}
|
|
34366
34751
|
});
|
|
34367
|
-
_context.
|
|
34752
|
+
_context.next = 29;
|
|
34368
34753
|
break;
|
|
34369
|
-
case
|
|
34754
|
+
case 16:
|
|
34370
34755
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34371
|
-
_context.
|
|
34756
|
+
_context.next = 20;
|
|
34372
34757
|
break;
|
|
34373
34758
|
}
|
|
34374
34759
|
_this.setState({
|
|
34375
34760
|
thresholdList: queryIdentify
|
|
34376
34761
|
});
|
|
34377
|
-
_context.
|
|
34762
|
+
_context.next = 29;
|
|
34378
34763
|
break;
|
|
34379
|
-
case
|
|
34764
|
+
case 20:
|
|
34380
34765
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34381
|
-
_context.
|
|
34766
|
+
_context.next = 24;
|
|
34382
34767
|
break;
|
|
34383
34768
|
}
|
|
34384
34769
|
// TODO待处理
|
|
34385
34770
|
_this.setState({
|
|
34386
34771
|
thresholdList: []
|
|
34387
34772
|
});
|
|
34388
|
-
_context.
|
|
34773
|
+
_context.next = 29;
|
|
34389
34774
|
break;
|
|
34390
|
-
case
|
|
34775
|
+
case 24:
|
|
34391
34776
|
querParams.queryIdentify = queryIdentify;
|
|
34392
|
-
_context.
|
|
34777
|
+
_context.next = 27;
|
|
34393
34778
|
return getRegularThresholdRange(querParams);
|
|
34394
|
-
case
|
|
34395
|
-
res = _context.
|
|
34779
|
+
case 27:
|
|
34780
|
+
res = _context.sent;
|
|
34396
34781
|
if (handleError(res)) {
|
|
34397
34782
|
_this.setState({
|
|
34398
34783
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34399
34784
|
});
|
|
34400
34785
|
}
|
|
34401
|
-
case
|
|
34402
|
-
|
|
34786
|
+
case 29:
|
|
34787
|
+
case "end":
|
|
34788
|
+
return _context.stop();
|
|
34403
34789
|
}
|
|
34404
34790
|
}, _callee);
|
|
34405
34791
|
}));
|
|
@@ -35231,11 +35617,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35231
35617
|
isAll: true,
|
|
35232
35618
|
needNameAndCode: true,
|
|
35233
35619
|
notChangeOnSelect: true,
|
|
35234
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35235
|
-
return
|
|
35236
|
-
while (1) switch (_context2.
|
|
35620
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35621
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35622
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
35237
35623
|
case 0:
|
|
35238
|
-
_context2.
|
|
35624
|
+
_context2.next = 2;
|
|
35239
35625
|
return request$2({
|
|
35240
35626
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35241
35627
|
method: 'get',
|
|
@@ -35252,8 +35638,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35252
35638
|
return handleData;
|
|
35253
35639
|
}
|
|
35254
35640
|
});
|
|
35255
|
-
case
|
|
35256
|
-
return _context2.
|
|
35641
|
+
case 2:
|
|
35642
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35643
|
+
case 3:
|
|
35644
|
+
case "end":
|
|
35645
|
+
return _context2.stop();
|
|
35257
35646
|
}
|
|
35258
35647
|
}, _callee2);
|
|
35259
35648
|
})),
|
|
@@ -35277,11 +35666,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35277
35666
|
isAll: true,
|
|
35278
35667
|
needNameAndCode: true,
|
|
35279
35668
|
notChangeOnSelect: true,
|
|
35280
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35281
|
-
return
|
|
35282
|
-
while (1) switch (_context3.
|
|
35669
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35670
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35671
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
35283
35672
|
case 0:
|
|
35284
|
-
_context3.
|
|
35673
|
+
_context3.next = 2;
|
|
35285
35674
|
return request$2({
|
|
35286
35675
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35287
35676
|
method: 'get',
|
|
@@ -35298,8 +35687,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35298
35687
|
return handleData;
|
|
35299
35688
|
}
|
|
35300
35689
|
});
|
|
35301
|
-
case
|
|
35302
|
-
return _context3.
|
|
35690
|
+
case 2:
|
|
35691
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35692
|
+
case 3:
|
|
35693
|
+
case "end":
|
|
35694
|
+
return _context3.stop();
|
|
35303
35695
|
}
|
|
35304
35696
|
}, _callee3);
|
|
35305
35697
|
})),
|
|
@@ -35325,11 +35717,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35325
35717
|
isAll: true,
|
|
35326
35718
|
needNameAndCode: true,
|
|
35327
35719
|
notChangeOnSelect: true,
|
|
35328
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35329
|
-
return
|
|
35330
|
-
while (1) switch (_context4.
|
|
35720
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35721
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35722
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
35331
35723
|
case 0:
|
|
35332
|
-
_context4.
|
|
35724
|
+
_context4.next = 2;
|
|
35333
35725
|
return request$2({
|
|
35334
35726
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35335
35727
|
method: 'get',
|
|
@@ -35346,8 +35738,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35346
35738
|
return handleData;
|
|
35347
35739
|
}
|
|
35348
35740
|
});
|
|
35349
|
-
case
|
|
35350
|
-
return _context4.
|
|
35741
|
+
case 2:
|
|
35742
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35743
|
+
case 3:
|
|
35744
|
+
case "end":
|
|
35745
|
+
return _context4.stop();
|
|
35351
35746
|
}
|
|
35352
35747
|
}, _callee4);
|
|
35353
35748
|
})),
|
|
@@ -36034,8 +36429,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36034
36429
|
}
|
|
36035
36430
|
}));
|
|
36036
36431
|
} else {
|
|
36037
|
-
var
|
|
36038
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36432
|
+
var _values10;
|
|
36433
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36039
36434
|
return {
|
|
36040
36435
|
key: s,
|
|
36041
36436
|
label: valueNames[vIndex],
|
|
@@ -36323,8 +36718,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36323
36718
|
}
|
|
36324
36719
|
}));
|
|
36325
36720
|
} else {
|
|
36326
|
-
var
|
|
36327
|
-
var
|
|
36721
|
+
var _values11;
|
|
36722
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36328
36723
|
return {
|
|
36329
36724
|
key: s,
|
|
36330
36725
|
label: valueNames[vIndex],
|
|
@@ -36346,7 +36741,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36346
36741
|
} : {}),
|
|
36347
36742
|
disabled: disabled,
|
|
36348
36743
|
labelInValue: true,
|
|
36349
|
-
value:
|
|
36744
|
+
value: _currentValue10,
|
|
36350
36745
|
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36351
36746
|
otherParams: {
|
|
36352
36747
|
// 配送方式只选择标准配送方式
|
|
@@ -36444,8 +36839,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36444
36839
|
}
|
|
36445
36840
|
}));
|
|
36446
36841
|
} else {
|
|
36447
|
-
var
|
|
36448
|
-
var
|
|
36842
|
+
var _values12;
|
|
36843
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36449
36844
|
return {
|
|
36450
36845
|
key: s,
|
|
36451
36846
|
label: valueNames[vIndex],
|
|
@@ -36467,7 +36862,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36467
36862
|
} : {}),
|
|
36468
36863
|
disabled: disabled,
|
|
36469
36864
|
labelInValue: true,
|
|
36470
|
-
value:
|
|
36865
|
+
value: _currentValue11,
|
|
36471
36866
|
requestConfig: {
|
|
36472
36867
|
filterInit: 'qp-code-in'
|
|
36473
36868
|
},
|
|
@@ -36560,8 +36955,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36560
36955
|
}
|
|
36561
36956
|
}));
|
|
36562
36957
|
} else {
|
|
36563
|
-
var
|
|
36564
|
-
var
|
|
36958
|
+
var _values13;
|
|
36959
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
36565
36960
|
return {
|
|
36566
36961
|
key: s,
|
|
36567
36962
|
label: valueNames[vIndex],
|
|
@@ -36583,7 +36978,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36583
36978
|
} : {}),
|
|
36584
36979
|
disabled: disabled,
|
|
36585
36980
|
labelInValue: true,
|
|
36586
|
-
value:
|
|
36981
|
+
value: _currentValue12,
|
|
36587
36982
|
requestConfig: {
|
|
36588
36983
|
filterInit: 'qp-brandCode-in'
|
|
36589
36984
|
},
|
|
@@ -36774,8 +37169,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36774
37169
|
}
|
|
36775
37170
|
}));
|
|
36776
37171
|
} else {
|
|
36777
|
-
var
|
|
36778
|
-
var
|
|
37172
|
+
var _values14;
|
|
37173
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36779
37174
|
return {
|
|
36780
37175
|
key: s,
|
|
36781
37176
|
label: valueNames[vIndex]
|
|
@@ -36803,7 +37198,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36803
37198
|
isSearchForm: true,
|
|
36804
37199
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36805
37200
|
disabled: disabled,
|
|
36806
|
-
value:
|
|
37201
|
+
value: _currentValue13,
|
|
36807
37202
|
onChange: function onChange(value, sourceList) {
|
|
36808
37203
|
if (dataInputBusinessType === 12) {
|
|
36809
37204
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37123,9 +37518,9 @@ var App$1 = function App(_ref) {
|
|
|
37123
37518
|
UpdateState(res);
|
|
37124
37519
|
};
|
|
37125
37520
|
var _useState9 = useState(false),
|
|
37126
|
-
|
|
37127
|
-
isModalVisible =
|
|
37128
|
-
setIsModalVisible =
|
|
37521
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37522
|
+
isModalVisible = _useState10[0],
|
|
37523
|
+
setIsModalVisible = _useState10[1];
|
|
37129
37524
|
var showModal = function showModal() {
|
|
37130
37525
|
setIsModalVisible(true);
|
|
37131
37526
|
};
|
|
@@ -37606,26 +38001,27 @@ function RenderCompItem(props) {
|
|
|
37606
38001
|
dictData = _useState2[0],
|
|
37607
38002
|
setDictData = _useState2[1];
|
|
37608
38003
|
var getDictData = /*#__PURE__*/function () {
|
|
37609
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
38004
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
37610
38005
|
var _data$map;
|
|
37611
38006
|
var data;
|
|
37612
|
-
return
|
|
37613
|
-
while (1) switch (_context.
|
|
38007
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38008
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37614
38009
|
case 0:
|
|
37615
|
-
_context.
|
|
38010
|
+
_context.next = 2;
|
|
37616
38011
|
return request$2({
|
|
37617
38012
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37618
38013
|
});
|
|
37619
|
-
case
|
|
37620
|
-
data = _context.
|
|
38014
|
+
case 2:
|
|
38015
|
+
data = _context.sent;
|
|
37621
38016
|
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) {
|
|
37622
38017
|
return {
|
|
37623
38018
|
text: item.dictItemName,
|
|
37624
38019
|
value: item.dictItemCode
|
|
37625
38020
|
};
|
|
37626
38021
|
}));
|
|
37627
|
-
case
|
|
37628
|
-
|
|
38022
|
+
case 4:
|
|
38023
|
+
case "end":
|
|
38024
|
+
return _context.stop();
|
|
37629
38025
|
}
|
|
37630
38026
|
}, _callee);
|
|
37631
38027
|
}));
|
|
@@ -37866,11 +38262,11 @@ function RenderCompItem(props) {
|
|
|
37866
38262
|
needNameAndCode: true,
|
|
37867
38263
|
notChangeOnSelect: true,
|
|
37868
38264
|
initRequestSource: function () {
|
|
37869
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37870
|
-
return
|
|
37871
|
-
while (1) switch (_context2.
|
|
38265
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
38266
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
38267
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37872
38268
|
case 0:
|
|
37873
|
-
_context2.
|
|
38269
|
+
_context2.next = 2;
|
|
37874
38270
|
return request$2({
|
|
37875
38271
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37876
38272
|
method: 'get',
|
|
@@ -37888,8 +38284,11 @@ function RenderCompItem(props) {
|
|
|
37888
38284
|
return handleData;
|
|
37889
38285
|
}
|
|
37890
38286
|
});
|
|
37891
|
-
case
|
|
37892
|
-
return _context2.
|
|
38287
|
+
case 2:
|
|
38288
|
+
return _context2.abrupt("return", _context2.sent);
|
|
38289
|
+
case 3:
|
|
38290
|
+
case "end":
|
|
38291
|
+
return _context2.stop();
|
|
37893
38292
|
}
|
|
37894
38293
|
}, _callee2);
|
|
37895
38294
|
}));
|
|
@@ -39945,13 +40344,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39945
40344
|
ruleTypeData = _useState8[0],
|
|
39946
40345
|
setRuleTypeData = _useState8[1];
|
|
39947
40346
|
var _useState9 = useState([]),
|
|
39948
|
-
|
|
39949
|
-
ruleReturnConfig =
|
|
39950
|
-
setRuleReturnConfig =
|
|
39951
|
-
var
|
|
39952
|
-
|
|
39953
|
-
templateData =
|
|
39954
|
-
setTemplateData =
|
|
40347
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40348
|
+
ruleReturnConfig = _useState10[0],
|
|
40349
|
+
setRuleReturnConfig = _useState10[1];
|
|
40350
|
+
var _useState11 = useState({}),
|
|
40351
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
40352
|
+
templateData = _useState12[0],
|
|
40353
|
+
setTemplateData = _useState12[1];
|
|
39955
40354
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39956
40355
|
request$2({
|
|
39957
40356
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40287,25 +40686,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40287
40686
|
regularDataList = _useState8[0],
|
|
40288
40687
|
setRegularDataList = _useState8[1];
|
|
40289
40688
|
var _useState9 = useState([]),
|
|
40290
|
-
|
|
40291
|
-
baseRuleDetailList =
|
|
40292
|
-
setBaseRuleDetailList =
|
|
40293
|
-
var
|
|
40294
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
40295
|
-
systemVariableList = _useState10[0],
|
|
40296
|
-
setSystemVariableList = _useState10[1];
|
|
40297
|
-
var _useState11 = useState(false),
|
|
40689
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40690
|
+
baseRuleDetailList = _useState10[0],
|
|
40691
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40692
|
+
var _useState11 = useState([]),
|
|
40298
40693
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40299
|
-
|
|
40300
|
-
|
|
40694
|
+
systemVariableList = _useState12[0],
|
|
40695
|
+
setSystemVariableList = _useState12[1];
|
|
40301
40696
|
var _useState13 = useState(false),
|
|
40302
40697
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40303
|
-
|
|
40304
|
-
|
|
40698
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40699
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40305
40700
|
var _useState15 = useState(false),
|
|
40306
40701
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40307
|
-
|
|
40308
|
-
|
|
40702
|
+
isGetRuleDataRes = _useState16[0],
|
|
40703
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40704
|
+
var _useState17 = useState(false),
|
|
40705
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40706
|
+
groupOtherPriorityList = _useState18[0],
|
|
40707
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
40309
40708
|
var baseRuleRef = useRef();
|
|
40310
40709
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40311
40710
|
// 查询规则组下所有规则实例
|