@bit-sun/business-component 4.2.1-alpha.7-aiwei → 4.2.1-alpha.8-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1026 -762
- package/dist/index.js +1026 -762
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +3 -3
- package/src/components/Functional/SearchSelect/index.tsx +13 -0
package/dist/index.esm.js
CHANGED
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var 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
|
});
|
|
@@ -7497,132 +7710,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7497
7710
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7498
7711
|
form = _Form$useForm2[0];
|
|
7499
7712
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7500
|
-
|
|
7501
|
-
tableSearchForm =
|
|
7502
|
-
setTableSearchForm =
|
|
7503
|
-
var
|
|
7504
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7505
|
-
caretLeftFlag = _useState10[0],
|
|
7506
|
-
setCaretLeftFlag = _useState10[1];
|
|
7507
|
-
var _useState11 = useState([]),
|
|
7713
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7714
|
+
tableSearchForm = _useState10[0],
|
|
7715
|
+
setTableSearchForm = _useState10[1];
|
|
7716
|
+
var _useState11 = useState(true),
|
|
7508
7717
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
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({
|
|
7512
7725
|
total: 0,
|
|
7513
7726
|
size: "small",
|
|
7514
7727
|
current: 1,
|
|
7515
7728
|
pageSize: tableInitPageSize
|
|
7516
7729
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7517
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7518
|
-
tablePagination = _useState14[0],
|
|
7519
|
-
setTablePagination = _useState14[1];
|
|
7520
|
-
var _useState15 = useState([]),
|
|
7521
7730
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
var _useState17 = useState(
|
|
7731
|
+
tablePagination = _useState16[0],
|
|
7732
|
+
setTablePagination = _useState16[1];
|
|
7733
|
+
var _useState17 = useState([]),
|
|
7525
7734
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
var _useState19 = useState(
|
|
7735
|
+
selectedRowKeys = _useState18[0],
|
|
7736
|
+
setSelectedRowKeys = _useState18[1];
|
|
7737
|
+
var _useState19 = useState({}),
|
|
7529
7738
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7530
|
-
|
|
7531
|
-
|
|
7739
|
+
tableFormParams = _useState20[0],
|
|
7740
|
+
setTableFormParams = _useState20[1];
|
|
7532
7741
|
var _useState21 = useState(false),
|
|
7533
7742
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
var _useState23 = useState(
|
|
7743
|
+
confirmLoading = _useState22[0],
|
|
7744
|
+
setConfirmLoading = _useState22[1];
|
|
7745
|
+
var _useState23 = useState(false),
|
|
7537
7746
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7538
|
-
|
|
7539
|
-
|
|
7747
|
+
confirmContinueLoading = _useState24[0],
|
|
7748
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7540
7749
|
var _useState25 = useState([]),
|
|
7541
7750
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7542
|
-
|
|
7543
|
-
|
|
7751
|
+
selectColumns = _useState26[0],
|
|
7752
|
+
setSelectColumns = _useState26[1];
|
|
7544
7753
|
var _useState27 = useState([]),
|
|
7545
7754
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7546
|
-
|
|
7547
|
-
|
|
7755
|
+
showColumns = _useState28[0],
|
|
7756
|
+
setShowColumns = _useState28[1];
|
|
7548
7757
|
var _useState29 = useState([]),
|
|
7549
7758
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7550
|
-
|
|
7551
|
-
|
|
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];
|
|
7552
7765
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7553
7766
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7554
7767
|
// FIXME: 特殊业务逻辑
|
|
7555
7768
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7556
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7557
|
-
var result
|
|
7558
|
-
return
|
|
7559
|
-
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) {
|
|
7560
7773
|
case 0:
|
|
7561
7774
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7562
7775
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7563
7776
|
}))) {
|
|
7564
|
-
_context.
|
|
7777
|
+
_context.next = 3;
|
|
7565
7778
|
break;
|
|
7566
7779
|
}
|
|
7567
7780
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7568
|
-
return _context.
|
|
7569
|
-
case
|
|
7781
|
+
return _context.abrupt("return", false);
|
|
7782
|
+
case 3:
|
|
7570
7783
|
if (!(bType == 'spu')) {
|
|
7571
|
-
_context.
|
|
7784
|
+
_context.next = 26;
|
|
7572
7785
|
break;
|
|
7573
7786
|
}
|
|
7574
7787
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7575
7788
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7576
7789
|
}))) {
|
|
7577
|
-
_context.
|
|
7790
|
+
_context.next = 7;
|
|
7578
7791
|
break;
|
|
7579
7792
|
}
|
|
7580
7793
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7581
|
-
return _context.
|
|
7582
|
-
case
|
|
7794
|
+
return _context.abrupt("return", false);
|
|
7795
|
+
case 7:
|
|
7583
7796
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7584
|
-
_context.
|
|
7797
|
+
_context.next = 10;
|
|
7585
7798
|
break;
|
|
7586
7799
|
}
|
|
7587
7800
|
message$1.warning('请先选择颜色!');
|
|
7588
|
-
return _context.
|
|
7589
|
-
case
|
|
7801
|
+
return _context.abrupt("return", false);
|
|
7802
|
+
case 10:
|
|
7590
7803
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7591
7804
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7592
7805
|
}))) {
|
|
7593
|
-
_context.
|
|
7806
|
+
_context.next = 13;
|
|
7594
7807
|
break;
|
|
7595
7808
|
}
|
|
7596
7809
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7597
|
-
return _context.
|
|
7598
|
-
case
|
|
7810
|
+
return _context.abrupt("return", false);
|
|
7811
|
+
case 13:
|
|
7599
7812
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7600
|
-
_context.
|
|
7813
|
+
_context.next = 26;
|
|
7601
7814
|
break;
|
|
7602
7815
|
}
|
|
7603
7816
|
result = true;
|
|
7604
|
-
_context.
|
|
7605
|
-
_context.
|
|
7817
|
+
_context.prev = 15;
|
|
7818
|
+
_context.next = 18;
|
|
7606
7819
|
return checkSpuMatchCode({
|
|
7607
7820
|
skcCode: recordItem[recordKey],
|
|
7608
7821
|
matchingCode: changeValue,
|
|
7609
7822
|
ext1: recordItem.colorName
|
|
7610
7823
|
});
|
|
7611
|
-
case
|
|
7612
|
-
result = _context.
|
|
7824
|
+
case 18:
|
|
7825
|
+
result = _context.sent;
|
|
7613
7826
|
result = true;
|
|
7614
|
-
_context.
|
|
7827
|
+
_context.next = 25;
|
|
7615
7828
|
break;
|
|
7616
|
-
case
|
|
7617
|
-
_context.
|
|
7618
|
-
|
|
7619
|
-
result = typeof
|
|
7620
|
-
case
|
|
7621
|
-
return _context.
|
|
7622
|
-
case
|
|
7623
|
-
return _context.
|
|
7624
|
-
|
|
7625
|
-
|
|
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]]);
|
|
7626
7842
|
}));
|
|
7627
7843
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7628
7844
|
return _ref2.apply(this, arguments);
|
|
@@ -7713,16 +7929,17 @@ var AddSelect = function AddSelect(props) {
|
|
|
7713
7929
|
e.target.blur();
|
|
7714
7930
|
},
|
|
7715
7931
|
onBlur: function () {
|
|
7716
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7932
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7717
7933
|
var value;
|
|
7718
|
-
return
|
|
7719
|
-
while (1) switch (_context2.
|
|
7934
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7935
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7720
7936
|
case 0:
|
|
7721
7937
|
value = e.target.value;
|
|
7722
7938
|
record[item.dataIndex] = value;
|
|
7723
7939
|
editRecord(record);
|
|
7724
|
-
case
|
|
7725
|
-
|
|
7940
|
+
case 3:
|
|
7941
|
+
case "end":
|
|
7942
|
+
return _context2.stop();
|
|
7726
7943
|
}
|
|
7727
7944
|
}, _callee2);
|
|
7728
7945
|
}));
|
|
@@ -7882,10 +8099,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7882
8099
|
}
|
|
7883
8100
|
_dom6 = null;
|
|
7884
8101
|
} else if (e.keyCode === 38) {
|
|
7885
|
-
var _e$nativeEvent$path$
|
|
8102
|
+
var _e$nativeEvent$path$10;
|
|
7886
8103
|
e.stopPropagation();
|
|
7887
8104
|
e.preventDefault();
|
|
7888
|
-
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];
|
|
7889
8106
|
if (dom1) {
|
|
7890
8107
|
// dom1.value=""
|
|
7891
8108
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7919,19 +8136,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7919
8136
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7920
8137
|
value: text || null,
|
|
7921
8138
|
onChange: function () {
|
|
7922
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7923
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7924
|
-
return
|
|
7925
|
-
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) {
|
|
7926
8143
|
case 0:
|
|
7927
8144
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7928
8145
|
return d[selectKey] == value;
|
|
7929
8146
|
})) || {};
|
|
7930
8147
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7931
|
-
_context3.
|
|
8148
|
+
_context3.next = 6;
|
|
7932
8149
|
break;
|
|
7933
8150
|
}
|
|
7934
|
-
_context3.
|
|
8151
|
+
_context3.next = 4;
|
|
7935
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, {
|
|
7936
8153
|
record: record,
|
|
7937
8154
|
index: index,
|
|
@@ -7941,10 +8158,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7941
8158
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7942
8159
|
editRecord: editRecord
|
|
7943
8160
|
});
|
|
7944
|
-
case
|
|
7945
|
-
_context3.
|
|
8161
|
+
case 4:
|
|
8162
|
+
_context3.next = 25;
|
|
7946
8163
|
break;
|
|
7947
|
-
case
|
|
8164
|
+
case 6:
|
|
7948
8165
|
// 更新当前行数据函数
|
|
7949
8166
|
changeValue = function changeValue(v, dSSItem) {
|
|
7950
8167
|
var _item$dataSourceSelec;
|
|
@@ -7957,12 +8174,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7957
8174
|
}
|
|
7958
8175
|
}; // 处理校验,默认不校验
|
|
7959
8176
|
isCheckPass = true;
|
|
7960
|
-
_context3.
|
|
8177
|
+
_context3.prev = 8;
|
|
7961
8178
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7962
|
-
_context3.
|
|
8179
|
+
_context3.next = 15;
|
|
7963
8180
|
break;
|
|
7964
8181
|
}
|
|
7965
|
-
_context3.
|
|
8182
|
+
_context3.next = 12;
|
|
7966
8183
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7967
8184
|
record: record,
|
|
7968
8185
|
index: index,
|
|
@@ -7971,23 +8188,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7971
8188
|
changeValue: value,
|
|
7972
8189
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7973
8190
|
});
|
|
7974
|
-
case
|
|
7975
|
-
isCheckPass = _context3.
|
|
7976
|
-
_context3.
|
|
8191
|
+
case 12:
|
|
8192
|
+
isCheckPass = _context3.sent;
|
|
8193
|
+
_context3.next = 19;
|
|
7977
8194
|
break;
|
|
7978
|
-
case
|
|
7979
|
-
_context3.
|
|
8195
|
+
case 15:
|
|
8196
|
+
_context3.next = 17;
|
|
7980
8197
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7981
|
-
case
|
|
7982
|
-
isConformToTheRules = _context3.
|
|
8198
|
+
case 17:
|
|
8199
|
+
isConformToTheRules = _context3.sent;
|
|
7983
8200
|
isCheckPass = !isConformToTheRules;
|
|
7984
|
-
case
|
|
7985
|
-
_context3.
|
|
8201
|
+
case 19:
|
|
8202
|
+
_context3.next = 23;
|
|
7986
8203
|
break;
|
|
7987
|
-
case
|
|
7988
|
-
_context3.
|
|
7989
|
-
|
|
7990
|
-
case
|
|
8204
|
+
case 21:
|
|
8205
|
+
_context3.prev = 21;
|
|
8206
|
+
_context3.t0 = _context3["catch"](8);
|
|
8207
|
+
case 23:
|
|
7991
8208
|
if (isCheckPass) {
|
|
7992
8209
|
changeValue(value, dataSourceSelectItem);
|
|
7993
8210
|
} else {
|
|
@@ -7995,10 +8212,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
7995
8212
|
}
|
|
7996
8213
|
// 更新已选表格函数
|
|
7997
8214
|
editRecord(record);
|
|
7998
|
-
case
|
|
7999
|
-
|
|
8215
|
+
case 25:
|
|
8216
|
+
case "end":
|
|
8217
|
+
return _context3.stop();
|
|
8000
8218
|
}
|
|
8001
|
-
}, _callee3, null, [[
|
|
8219
|
+
}, _callee3, null, [[8, 21]]);
|
|
8002
8220
|
}));
|
|
8003
8221
|
function onChange(_x8) {
|
|
8004
8222
|
return _onChange.apply(this, arguments);
|
|
@@ -9389,29 +9607,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9389
9607
|
dataIndex: 'propertyNameAndValue'
|
|
9390
9608
|
}];
|
|
9391
9609
|
var _useState9 = useState(false),
|
|
9392
|
-
|
|
9393
|
-
isModalVisible =
|
|
9394
|
-
setIsModalVisible =
|
|
9395
|
-
var
|
|
9610
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9611
|
+
isModalVisible = _useState10[0],
|
|
9612
|
+
setIsModalVisible = _useState10[1];
|
|
9613
|
+
var _useState11 = useState([{
|
|
9396
9614
|
hovered: false
|
|
9397
9615
|
}]),
|
|
9398
|
-
|
|
9399
|
-
data =
|
|
9400
|
-
setData =
|
|
9616
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9617
|
+
data = _useState12[0],
|
|
9618
|
+
setData = _useState12[1];
|
|
9401
9619
|
var tableRef = useRef(null);
|
|
9402
9620
|
var codeSelected = tableCode;
|
|
9403
|
-
var
|
|
9404
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9405
|
-
loading = _useState12[0],
|
|
9406
|
-
setLoading = _useState12[1];
|
|
9407
|
-
var _useState13 = useState([]),
|
|
9621
|
+
var _useState13 = useState(false),
|
|
9408
9622
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9409
|
-
|
|
9410
|
-
|
|
9623
|
+
loading = _useState14[0],
|
|
9624
|
+
setLoading = _useState14[1];
|
|
9411
9625
|
var _useState15 = useState([]),
|
|
9412
9626
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9413
|
-
|
|
9414
|
-
|
|
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];
|
|
9415
9633
|
useEffect(function () {
|
|
9416
9634
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9417
9635
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9527,42 +9745,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9527
9745
|
});
|
|
9528
9746
|
};
|
|
9529
9747
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9530
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9748
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9531
9749
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9532
|
-
return
|
|
9533
|
-
while (1) switch (_context.
|
|
9750
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9751
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9534
9752
|
case 0:
|
|
9535
9753
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9536
|
-
_context.
|
|
9754
|
+
_context.next = 3;
|
|
9537
9755
|
break;
|
|
9538
9756
|
}
|
|
9539
9757
|
message$1.warning('至少录入一条数据');
|
|
9540
|
-
return _context.
|
|
9541
|
-
case
|
|
9758
|
+
return _context.abrupt("return");
|
|
9759
|
+
case 3:
|
|
9542
9760
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9543
9761
|
return d.skuCode && d.name;
|
|
9544
9762
|
})) {
|
|
9545
|
-
_context.
|
|
9763
|
+
_context.next = 6;
|
|
9546
9764
|
break;
|
|
9547
9765
|
}
|
|
9548
9766
|
message$1.warning('录入商品不存在');
|
|
9549
|
-
return _context.
|
|
9550
|
-
case
|
|
9767
|
+
return _context.abrupt("return");
|
|
9768
|
+
case 6:
|
|
9551
9769
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9552
9770
|
return d.count;
|
|
9553
9771
|
})) {
|
|
9554
|
-
_context.
|
|
9772
|
+
_context.next = 9;
|
|
9555
9773
|
break;
|
|
9556
9774
|
}
|
|
9557
9775
|
message$1.warning('请填写商品数量!');
|
|
9558
|
-
return _context.
|
|
9559
|
-
case
|
|
9560
|
-
_context.
|
|
9776
|
+
return _context.abrupt("return");
|
|
9777
|
+
case 9:
|
|
9778
|
+
_context.next = 11;
|
|
9561
9779
|
return isSkuCanEntry(data);
|
|
9562
|
-
case
|
|
9563
|
-
canEntryObject = _context.
|
|
9780
|
+
case 11:
|
|
9781
|
+
canEntryObject = _context.sent;
|
|
9564
9782
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9565
|
-
_context.
|
|
9783
|
+
_context.next = 16;
|
|
9566
9784
|
break;
|
|
9567
9785
|
}
|
|
9568
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) {
|
|
@@ -9572,8 +9790,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9572
9790
|
content: messageInfo,
|
|
9573
9791
|
duration: 6
|
|
9574
9792
|
});
|
|
9575
|
-
return _context.
|
|
9576
|
-
case
|
|
9793
|
+
return _context.abrupt("return");
|
|
9794
|
+
case 16:
|
|
9577
9795
|
setLoading(true);
|
|
9578
9796
|
onSaveCallback(data).then(function (res) {
|
|
9579
9797
|
{
|
|
@@ -9591,8 +9809,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9591
9809
|
message$1.error(Error);
|
|
9592
9810
|
setLoading(false);
|
|
9593
9811
|
});
|
|
9594
|
-
case
|
|
9595
|
-
|
|
9812
|
+
case 18:
|
|
9813
|
+
case "end":
|
|
9814
|
+
return _context.stop();
|
|
9596
9815
|
}
|
|
9597
9816
|
}, _callee);
|
|
9598
9817
|
}));
|
|
@@ -11901,18 +12120,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11901
12120
|
name: 'qp-code-like',
|
|
11902
12121
|
label: '客户编码'
|
|
11903
12122
|
}, {
|
|
11904
|
-
name: 'qp-createOrgCode-
|
|
12123
|
+
name: 'qp-createOrgCode-in',
|
|
11905
12124
|
type: 'select',
|
|
11906
12125
|
label: '创建组织',
|
|
11907
12126
|
field: {
|
|
11908
12127
|
type: 'select',
|
|
11909
12128
|
props: {
|
|
11910
|
-
|
|
12129
|
+
mode: 'multiple',
|
|
11911
12130
|
notFoundContent: '暂无数据',
|
|
11912
12131
|
allowClear: true,
|
|
11913
12132
|
showSearch: true,
|
|
11914
12133
|
showArrow: true,
|
|
11915
|
-
|
|
12134
|
+
maxTagCount: 1,
|
|
11916
12135
|
optionFilterProp: 'children',
|
|
11917
12136
|
filterOption: function filterOption(input, option) {
|
|
11918
12137
|
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
@@ -11983,17 +12202,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11983
12202
|
}
|
|
11984
12203
|
}
|
|
11985
12204
|
}];
|
|
11986
|
-
var
|
|
12205
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11987
12206
|
querySelectHeadersList: querySelectHeadersList,
|
|
11988
12207
|
extralHeaders: extralHeaders
|
|
11989
12208
|
});
|
|
11990
|
-
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", {
|
|
11991
12210
|
'qp-status-eq': 10,
|
|
11992
12211
|
'qp-isMain-eq': 1,
|
|
11993
12212
|
'qp-type-in': '1,2'
|
|
11994
|
-
}, getQueryHeadersItem(
|
|
12213
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11995
12214
|
'qp-status-eq': 1
|
|
11996
|
-
}, getQueryHeadersItem(
|
|
12215
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11997
12216
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11998
12217
|
var allList = firstElement && [firstElement, firstElement];
|
|
11999
12218
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12179,7 +12398,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12179
12398
|
}
|
|
12180
12399
|
}
|
|
12181
12400
|
}];
|
|
12182
|
-
var
|
|
12401
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12183
12402
|
querySelectHeadersList: querySelectHeadersList,
|
|
12184
12403
|
extralHeaders: extralHeaders
|
|
12185
12404
|
});
|
|
@@ -12187,21 +12406,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12187
12406
|
pageSize: 5000,
|
|
12188
12407
|
currentPage: 1,
|
|
12189
12408
|
'qp-companyType-eq': '30'
|
|
12190
|
-
}, getQueryHeadersItem(
|
|
12409
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12191
12410
|
pageSize: 5000,
|
|
12192
12411
|
currentPage: 1,
|
|
12193
12412
|
'qp-companyType-eq': '20'
|
|
12194
|
-
}, getQueryHeadersItem(
|
|
12413
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12195
12414
|
// pageSize: 5000,
|
|
12196
12415
|
// currentPage: 1,
|
|
12197
12416
|
'qp-status-eq': '1'
|
|
12198
|
-
}, getQueryHeadersItem(
|
|
12417
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12199
12418
|
pageSize: 5000,
|
|
12200
12419
|
currentPage: 1
|
|
12201
|
-
}, getQueryHeadersItem(
|
|
12420
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12202
12421
|
pageSize: 5000,
|
|
12203
12422
|
currentPage: 1
|
|
12204
|
-
}, getQueryHeadersItem(
|
|
12423
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12205
12424
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12206
12425
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12207
12426
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12485,7 +12704,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12485
12704
|
}
|
|
12486
12705
|
}
|
|
12487
12706
|
}];
|
|
12488
|
-
var
|
|
12707
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12489
12708
|
querySelectHeadersList: querySelectHeadersList,
|
|
12490
12709
|
extralHeaders: extralHeaders
|
|
12491
12710
|
});
|
|
@@ -12493,17 +12712,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12493
12712
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12494
12713
|
'qp-realOrg-eq': true,
|
|
12495
12714
|
'qp-status-eq': 10
|
|
12496
|
-
}, getQueryHeadersItem(
|
|
12715
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12497
12716
|
'qp-status-eq': 10,
|
|
12498
12717
|
'qp-isMain-eq': 1,
|
|
12499
12718
|
'qp-type-in': '1,2'
|
|
12500
|
-
}, getQueryHeadersItem(
|
|
12719
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12501
12720
|
'qp-status-eq': 1
|
|
12502
|
-
}, getQueryHeadersItem(
|
|
12721
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12503
12722
|
pageSize: 5000,
|
|
12504
12723
|
currentPage: 1,
|
|
12505
12724
|
'ctl-withAuth': true
|
|
12506
|
-
}, getQueryHeadersItem(
|
|
12725
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
12507
12726
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12508
12727
|
var newData1 = [];
|
|
12509
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) {
|
|
@@ -12821,7 +13040,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12821
13040
|
name: 'qp-officeTelephone-like',
|
|
12822
13041
|
label: '手机号'
|
|
12823
13042
|
}];
|
|
12824
|
-
var
|
|
13043
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12825
13044
|
querySelectHeadersList: querySelectHeadersList,
|
|
12826
13045
|
extralHeaders: extralHeaders
|
|
12827
13046
|
});
|
|
@@ -12829,7 +13048,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12829
13048
|
pageSize: 5000,
|
|
12830
13049
|
currentPage: 1,
|
|
12831
13050
|
'qp-companyType-eq': 20
|
|
12832
|
-
}, getQueryHeadersItem(
|
|
13051
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12833
13052
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12834
13053
|
});
|
|
12835
13054
|
modalTableProps = _objectSpread2({
|
|
@@ -12938,13 +13157,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12938
13157
|
name: 'qp-phone-like',
|
|
12939
13158
|
label: '手机号'
|
|
12940
13159
|
}]);
|
|
12941
|
-
var
|
|
13160
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12942
13161
|
querySelectHeadersList: querySelectHeadersList,
|
|
12943
13162
|
extralHeaders: extralHeaders
|
|
12944
13163
|
});
|
|
12945
13164
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12946
13165
|
'orgViewCode': 'administrative-organization-view'
|
|
12947
|
-
}, getQueryHeadersItem(
|
|
13166
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12948
13167
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12949
13168
|
});
|
|
12950
13169
|
modalTableProps = _objectSpread2({
|
|
@@ -13091,17 +13310,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13091
13310
|
name: 'qp-remark-like',
|
|
13092
13311
|
label: '备注'
|
|
13093
13312
|
}];
|
|
13094
|
-
var
|
|
13313
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13095
13314
|
querySelectHeadersList: querySelectHeadersList,
|
|
13096
13315
|
extralHeaders: extralHeaders
|
|
13097
13316
|
});
|
|
13098
13317
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
13099
13318
|
pageSize: 5000,
|
|
13100
13319
|
currentPage: 1
|
|
13101
|
-
}, getQueryHeadersItem(
|
|
13320
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
13102
13321
|
pageSize: 5000,
|
|
13103
13322
|
currentPage: 1
|
|
13104
|
-
}, getQueryHeadersItem(
|
|
13323
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
13105
13324
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13106
13325
|
formatSource(x, 1, 5, tableSearchForm);
|
|
13107
13326
|
});
|
|
@@ -13271,14 +13490,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13271
13490
|
}
|
|
13272
13491
|
}
|
|
13273
13492
|
}];
|
|
13274
|
-
var
|
|
13493
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13275
13494
|
querySelectHeadersList: querySelectHeadersList,
|
|
13276
13495
|
extralHeaders: extralHeaders
|
|
13277
13496
|
});
|
|
13278
13497
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13279
13498
|
pageSize: 5000,
|
|
13280
13499
|
currentPage: 1
|
|
13281
|
-
}, getQueryHeadersItem(
|
|
13500
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13282
13501
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13283
13502
|
});
|
|
13284
13503
|
modalTableProps = _objectSpread2({
|
|
@@ -13375,7 +13594,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13375
13594
|
}
|
|
13376
13595
|
}
|
|
13377
13596
|
}];
|
|
13378
|
-
var
|
|
13597
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13379
13598
|
querySelectHeadersList: querySelectHeadersList,
|
|
13380
13599
|
extralHeaders: extralHeaders
|
|
13381
13600
|
});
|
|
@@ -13383,7 +13602,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13383
13602
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13384
13603
|
'qp-realOrg-eq': true,
|
|
13385
13604
|
'qp-status-eq': 10
|
|
13386
|
-
}, getQueryHeadersItem(
|
|
13605
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13387
13606
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13388
13607
|
});
|
|
13389
13608
|
modalTableProps = _objectSpread2({
|
|
@@ -13489,13 +13708,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13489
13708
|
},
|
|
13490
13709
|
initialSource: nodeType
|
|
13491
13710
|
}];
|
|
13492
|
-
var
|
|
13711
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
13493
13712
|
querySelectHeadersList: querySelectHeadersList,
|
|
13494
13713
|
extralHeaders: extralHeaders
|
|
13495
13714
|
});
|
|
13496
13715
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13497
13716
|
'qp-status-eq': 10
|
|
13498
|
-
}, getQueryHeadersItem(
|
|
13717
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13499
13718
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13500
13719
|
});
|
|
13501
13720
|
modalTableProps = _objectSpread2({
|
|
@@ -13821,13 +14040,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13821
14040
|
},
|
|
13822
14041
|
initialSource: nodeType
|
|
13823
14042
|
}];
|
|
13824
|
-
var
|
|
14043
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13825
14044
|
querySelectHeadersList: querySelectHeadersList,
|
|
13826
14045
|
extralHeaders: extralHeaders
|
|
13827
14046
|
});
|
|
13828
14047
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13829
14048
|
'qp-status-eq': 10
|
|
13830
|
-
}, getQueryHeadersItem(
|
|
14049
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13831
14050
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13832
14051
|
});
|
|
13833
14052
|
modalTableProps = _objectSpread2({
|
|
@@ -14772,9 +14991,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14772
14991
|
value = _useState8[0],
|
|
14773
14992
|
setValue = _useState8[1];
|
|
14774
14993
|
var _useState9 = useState([]),
|
|
14775
|
-
|
|
14776
|
-
propertyList =
|
|
14777
|
-
setPropertyList =
|
|
14994
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14995
|
+
propertyList = _useState10[0],
|
|
14996
|
+
setPropertyList = _useState10[1];
|
|
14778
14997
|
useEffect(function () {
|
|
14779
14998
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14780
14999
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15197,7 +15416,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15197
15416
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
15198
15417
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
15199
15418
|
localstorage = _storageKeyString$spl2[0],
|
|
15200
|
-
restKeyArrays =
|
|
15419
|
+
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15201
15420
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
15202
15421
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15203
15422
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15298,45 +15517,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15298
15517
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
15299
15518
|
headers: headers
|
|
15300
15519
|
}).then(/*#__PURE__*/function () {
|
|
15301
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15520
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
15302
15521
|
var _ctx$form;
|
|
15303
15522
|
var resData, coverData, data, dataList;
|
|
15304
|
-
return
|
|
15305
|
-
while (1) switch (_context.
|
|
15523
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15524
|
+
while (1) switch (_context.prev = _context.next) {
|
|
15306
15525
|
case 0:
|
|
15307
15526
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15308
15527
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15309
|
-
_context.
|
|
15528
|
+
_context.next = 13;
|
|
15310
15529
|
break;
|
|
15311
15530
|
}
|
|
15312
15531
|
data = resData.data;
|
|
15313
15532
|
if (!remoteSource.converter) {
|
|
15314
|
-
_context.
|
|
15533
|
+
_context.next = 9;
|
|
15315
15534
|
break;
|
|
15316
15535
|
}
|
|
15317
|
-
_context.
|
|
15536
|
+
_context.next = 6;
|
|
15318
15537
|
return remoteSource.converter({
|
|
15319
15538
|
data: [data]
|
|
15320
15539
|
});
|
|
15321
|
-
case
|
|
15322
|
-
coverData = _context.
|
|
15323
|
-
_context.
|
|
15540
|
+
case 6:
|
|
15541
|
+
coverData = _context.sent;
|
|
15542
|
+
_context.next = 11;
|
|
15324
15543
|
break;
|
|
15325
|
-
case
|
|
15544
|
+
case 9:
|
|
15326
15545
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15327
15546
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15328
15547
|
return _mapSearchTree(ites);
|
|
15329
15548
|
}) || [];
|
|
15330
|
-
case
|
|
15331
|
-
_context.
|
|
15549
|
+
case 11:
|
|
15550
|
+
_context.next = 14;
|
|
15332
15551
|
break;
|
|
15333
|
-
case
|
|
15552
|
+
case 13:
|
|
15334
15553
|
coverData = [];
|
|
15335
|
-
case
|
|
15554
|
+
case 14:
|
|
15336
15555
|
setTreeData(coverData);
|
|
15337
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);
|
|
15338
|
-
case
|
|
15339
|
-
|
|
15557
|
+
case 16:
|
|
15558
|
+
case "end":
|
|
15559
|
+
return _context.stop();
|
|
15340
15560
|
}
|
|
15341
15561
|
}, _callee);
|
|
15342
15562
|
}));
|
|
@@ -19644,37 +19864,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19644
19864
|
};
|
|
19645
19865
|
var refs = useRef(null);
|
|
19646
19866
|
var _useState9 = useState(''),
|
|
19647
|
-
|
|
19648
|
-
pagePath =
|
|
19649
|
-
setPagePath =
|
|
19867
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19868
|
+
pagePath = _useState10[0],
|
|
19869
|
+
setPagePath = _useState10[1];
|
|
19650
19870
|
var _useLocation = useLocation(),
|
|
19651
19871
|
pathname = _useLocation.pathname,
|
|
19652
19872
|
_useLocation$state = _useLocation.state;
|
|
19653
|
-
var
|
|
19654
|
-
|
|
19655
|
-
isFullScreen =
|
|
19656
|
-
setIsFnllScreen =
|
|
19873
|
+
var _useState11 = useState(false),
|
|
19874
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19875
|
+
isFullScreen = _useState12[0],
|
|
19876
|
+
setIsFnllScreen = _useState12[1];
|
|
19657
19877
|
// @ts-nocheck
|
|
19658
19878
|
var value = props;
|
|
19659
19879
|
var _props$fields = props.fields,
|
|
19660
19880
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19661
|
-
var
|
|
19662
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
19663
|
-
showColumn = _useState12[0],
|
|
19664
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
19665
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19666
|
-
var _useState13 = useState(originSearchFields),
|
|
19881
|
+
var _useState13 = useState([]),
|
|
19667
19882
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
19668
|
-
|
|
19669
|
-
|
|
19670
|
-
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),
|
|
19671
19887
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
var _useState17 = useState(
|
|
19888
|
+
showSearchFields = _useState16[0],
|
|
19889
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19890
|
+
var _useState17 = useState([]),
|
|
19675
19891
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19676
|
-
|
|
19677
|
-
|
|
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];
|
|
19678
19898
|
var sortTableRef = useRef(null);
|
|
19679
19899
|
var searchTableRef = useRef(null);
|
|
19680
19900
|
var exportTableRef = useRef(null);
|
|
@@ -20302,7 +20522,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20302
20522
|
if (!match) return null;
|
|
20303
20523
|
var _match = _toArray(match),
|
|
20304
20524
|
url = _match[0],
|
|
20305
|
-
values =
|
|
20525
|
+
values = _match.slice(1);
|
|
20306
20526
|
var isExact = pathname === url;
|
|
20307
20527
|
if (exact && !isExact) return null;
|
|
20308
20528
|
return {
|
|
@@ -20722,19 +20942,22 @@ function outLogin(_x) {
|
|
|
20722
20942
|
return _outLogin.apply(this, arguments);
|
|
20723
20943
|
}
|
|
20724
20944
|
function _outLogin() {
|
|
20725
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20945
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20726
20946
|
var res;
|
|
20727
|
-
return
|
|
20728
|
-
while (1) switch (_context.
|
|
20947
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20948
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20729
20949
|
case 0:
|
|
20730
|
-
_context.
|
|
20950
|
+
_context.next = 2;
|
|
20731
20951
|
return requestUtil({
|
|
20732
20952
|
url: '/user/web/loginOut',
|
|
20733
20953
|
method: 'GET'
|
|
20734
20954
|
});
|
|
20735
|
-
case
|
|
20736
|
-
res = _context.
|
|
20737
|
-
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();
|
|
20738
20961
|
}
|
|
20739
20962
|
}, _callee);
|
|
20740
20963
|
}));
|
|
@@ -20861,20 +21084,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20861
21084
|
});
|
|
20862
21085
|
};
|
|
20863
21086
|
var loginOut = /*#__PURE__*/function () {
|
|
20864
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
21087
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20865
21088
|
var sessionId;
|
|
20866
|
-
return
|
|
20867
|
-
while (1) switch (_context.
|
|
21089
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21090
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20868
21091
|
case 0:
|
|
20869
|
-
_context.
|
|
21092
|
+
_context.next = 2;
|
|
20870
21093
|
return getSessionId();
|
|
20871
|
-
case
|
|
20872
|
-
sessionId = _context.
|
|
20873
|
-
_context.
|
|
21094
|
+
case 2:
|
|
21095
|
+
sessionId = _context.sent;
|
|
21096
|
+
_context.next = 5;
|
|
20874
21097
|
return outLogin({
|
|
20875
21098
|
sessionId: sessionId
|
|
20876
21099
|
});
|
|
20877
|
-
case
|
|
21100
|
+
case 5:
|
|
20878
21101
|
// @ts-ignore
|
|
20879
21102
|
if (BUILD_TYPE) {
|
|
20880
21103
|
message$1.success('退出登录成功');
|
|
@@ -20884,8 +21107,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20884
21107
|
} else {
|
|
20885
21108
|
setLoginOutPath();
|
|
20886
21109
|
}
|
|
20887
|
-
case
|
|
20888
|
-
|
|
21110
|
+
case 6:
|
|
21111
|
+
case "end":
|
|
21112
|
+
return _context.stop();
|
|
20889
21113
|
}
|
|
20890
21114
|
}, _callee);
|
|
20891
21115
|
}));
|
|
@@ -20972,15 +21196,18 @@ function getStoreByName(_x) {
|
|
|
20972
21196
|
return _getStoreByName.apply(this, arguments);
|
|
20973
21197
|
}
|
|
20974
21198
|
function _getStoreByName() {
|
|
20975
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20976
|
-
return
|
|
20977
|
-
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) {
|
|
20978
21202
|
case 0:
|
|
20979
|
-
return _context.
|
|
21203
|
+
return _context.abrupt("return", requestUtil({
|
|
20980
21204
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20981
21205
|
method: 'GET',
|
|
20982
21206
|
params: _objectSpread2({}, params)
|
|
20983
21207
|
}));
|
|
21208
|
+
case 1:
|
|
21209
|
+
case "end":
|
|
21210
|
+
return _context.stop();
|
|
20984
21211
|
}
|
|
20985
21212
|
}, _callee);
|
|
20986
21213
|
}));
|
|
@@ -21015,33 +21242,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21015
21242
|
openSelect = _useState8[0],
|
|
21016
21243
|
setOpenSelect = _useState8[1];
|
|
21017
21244
|
var _useState9 = useState([]),
|
|
21018
|
-
|
|
21019
|
-
options =
|
|
21020
|
-
setOptions =
|
|
21021
|
-
var
|
|
21022
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21023
|
-
rescouse = _useState10[0],
|
|
21024
|
-
setRescouse = _useState10[1];
|
|
21025
|
-
var _useState11 = useState(''),
|
|
21245
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21246
|
+
options = _useState10[0],
|
|
21247
|
+
setOptions = _useState10[1];
|
|
21248
|
+
var _useState11 = useState([]),
|
|
21026
21249
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
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([{
|
|
21030
21257
|
label: name,
|
|
21031
21258
|
value: code
|
|
21032
21259
|
}]),
|
|
21033
|
-
|
|
21034
|
-
store =
|
|
21035
|
-
setStore =
|
|
21260
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
21261
|
+
store = _useState16[0],
|
|
21262
|
+
setStore = _useState16[1];
|
|
21036
21263
|
function fetchUserList(_x, _x2) {
|
|
21037
21264
|
return _fetchUserList.apply(this, arguments);
|
|
21038
21265
|
}
|
|
21039
21266
|
function _fetchUserList() {
|
|
21040
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
21041
|
-
return
|
|
21042
|
-
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) {
|
|
21043
21270
|
case 0:
|
|
21044
|
-
return _context3.
|
|
21271
|
+
return _context3.abrupt("return", getStoreByName({
|
|
21045
21272
|
orgName: storeName ? storeName : undefined,
|
|
21046
21273
|
platCompanyCode: init ? undefined : key,
|
|
21047
21274
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -21060,6 +21287,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21060
21287
|
};
|
|
21061
21288
|
});
|
|
21062
21289
|
}));
|
|
21290
|
+
case 1:
|
|
21291
|
+
case "end":
|
|
21292
|
+
return _context3.stop();
|
|
21063
21293
|
}
|
|
21064
21294
|
}, _callee3);
|
|
21065
21295
|
}));
|
|
@@ -21082,19 +21312,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21082
21312
|
return debounce$1(loadOptions, debounceTimeout);
|
|
21083
21313
|
}, [debounceTimeout, key]);
|
|
21084
21314
|
var changeInput = /*#__PURE__*/function () {
|
|
21085
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21315
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
21086
21316
|
var res;
|
|
21087
|
-
return
|
|
21088
|
-
while (1) switch (_context.
|
|
21317
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21318
|
+
while (1) switch (_context.prev = _context.next) {
|
|
21089
21319
|
case 0:
|
|
21090
|
-
_context.
|
|
21320
|
+
_context.next = 2;
|
|
21091
21321
|
return debounceFetcher(str);
|
|
21092
|
-
case
|
|
21093
|
-
res = _context.
|
|
21322
|
+
case 2:
|
|
21323
|
+
res = _context.sent;
|
|
21094
21324
|
setOptions(res);
|
|
21095
21325
|
setRescouse(res);
|
|
21096
|
-
case
|
|
21097
|
-
|
|
21326
|
+
case 5:
|
|
21327
|
+
case "end":
|
|
21328
|
+
return _context.stop();
|
|
21098
21329
|
}
|
|
21099
21330
|
}, _callee);
|
|
21100
21331
|
}));
|
|
@@ -21103,15 +21334,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21103
21334
|
};
|
|
21104
21335
|
}();
|
|
21105
21336
|
useEffect(function () {
|
|
21106
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21337
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
21107
21338
|
var res;
|
|
21108
|
-
return
|
|
21109
|
-
while (1) switch (_context2.
|
|
21339
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
21340
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
21110
21341
|
case 0:
|
|
21111
|
-
_context2.
|
|
21342
|
+
_context2.next = 2;
|
|
21112
21343
|
return fetchUserList(undefined, true);
|
|
21113
|
-
case
|
|
21114
|
-
res = _context2.
|
|
21344
|
+
case 2:
|
|
21345
|
+
res = _context2.sent;
|
|
21115
21346
|
res.map(function (item, indexNumber) {
|
|
21116
21347
|
if (item.label === name) {
|
|
21117
21348
|
setIndex(indexNumber);
|
|
@@ -21127,8 +21358,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21127
21358
|
});
|
|
21128
21359
|
setOptions(res);
|
|
21129
21360
|
setRescouse(res);
|
|
21130
|
-
case
|
|
21131
|
-
|
|
21361
|
+
case 6:
|
|
21362
|
+
case "end":
|
|
21363
|
+
return _context2.stop();
|
|
21132
21364
|
}
|
|
21133
21365
|
}, _callee2);
|
|
21134
21366
|
}))();
|
|
@@ -22177,25 +22409,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22177
22409
|
currentOneLevel = _useState8[0],
|
|
22178
22410
|
setCurrentOneLevel = _useState8[1];
|
|
22179
22411
|
var _useState9 = useState([]),
|
|
22180
|
-
|
|
22181
|
-
SearhData =
|
|
22182
|
-
setSearchMenuData =
|
|
22183
|
-
var
|
|
22184
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
22185
|
-
rightMenuHeight = _useState10[0],
|
|
22186
|
-
setHeight = _useState10[1];
|
|
22187
|
-
var _useState11 = useState(900),
|
|
22412
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
22413
|
+
SearhData = _useState10[0],
|
|
22414
|
+
setSearchMenuData = _useState10[1];
|
|
22415
|
+
var _useState11 = useState(600),
|
|
22188
22416
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
var _useState13 = useState(
|
|
22417
|
+
rightMenuHeight = _useState12[0],
|
|
22418
|
+
setHeight = _useState12[1];
|
|
22419
|
+
var _useState13 = useState(900),
|
|
22192
22420
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22193
|
-
|
|
22194
|
-
|
|
22421
|
+
drawHeight = _useState14[0],
|
|
22422
|
+
setDrawHeight = _useState14[1];
|
|
22195
22423
|
var _useState15 = useState(false),
|
|
22196
22424
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22197
|
-
|
|
22198
|
-
|
|
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];
|
|
22199
22431
|
useEffect(function () {
|
|
22200
22432
|
var _originRoutes$find;
|
|
22201
22433
|
getMenuContentHeight();
|
|
@@ -23806,11 +24038,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23806
24038
|
},
|
|
23807
24039
|
menu: {
|
|
23808
24040
|
request: function () {
|
|
23809
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23810
|
-
return
|
|
23811
|
-
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) {
|
|
23812
24044
|
case 0:
|
|
23813
|
-
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();
|
|
23814
24049
|
}
|
|
23815
24050
|
}, _callee);
|
|
23816
24051
|
}));
|
|
@@ -24215,31 +24450,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24215
24450
|
multiTableData = _useState8[0],
|
|
24216
24451
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24217
24452
|
var _useState9 = useState(10),
|
|
24218
|
-
|
|
24219
|
-
viewCount =
|
|
24220
|
-
setViewCount =
|
|
24453
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24454
|
+
viewCount = _useState10[0],
|
|
24455
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
24221
24456
|
var itemWidth = 100; // 表格每一项宽度
|
|
24222
|
-
var
|
|
24223
|
-
|
|
24224
|
-
realColHeaderWidth =
|
|
24225
|
-
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];
|
|
24226
24461
|
var viewPort = useRef(null);
|
|
24227
24462
|
var topScrollBar = useRef(null);
|
|
24228
24463
|
var leftTableRef = useRef(null);
|
|
24229
24464
|
//起始渲染item
|
|
24230
|
-
var
|
|
24231
|
-
|
|
24232
|
-
startIndex =
|
|
24233
|
-
setStartIndex =
|
|
24465
|
+
var _useState13 = useState(0),
|
|
24466
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24467
|
+
startIndex = _useState14[0],
|
|
24468
|
+
setStartIndex = _useState14[1];
|
|
24234
24469
|
//结束渲染item
|
|
24235
24470
|
var endIndex = useMemo(function () {
|
|
24236
24471
|
return startIndex + viewCount;
|
|
24237
24472
|
}, [startIndex, viewCount]);
|
|
24238
24473
|
//表格偏移量
|
|
24239
|
-
var
|
|
24240
|
-
|
|
24241
|
-
offsetWidth =
|
|
24242
|
-
setOffset =
|
|
24474
|
+
var _useState15 = useState(0),
|
|
24475
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24476
|
+
offsetWidth = _useState16[0],
|
|
24477
|
+
setOffset = _useState16[1];
|
|
24243
24478
|
useEffect(function () {
|
|
24244
24479
|
setTimeout(function () {
|
|
24245
24480
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31543,11 +31778,11 @@ var valueType = {
|
|
|
31543
31778
|
};
|
|
31544
31779
|
|
|
31545
31780
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31546
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31547
|
-
return
|
|
31548
|
-
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) {
|
|
31549
31784
|
case 0:
|
|
31550
|
-
_context.
|
|
31785
|
+
_context.next = 2;
|
|
31551
31786
|
return request$2({
|
|
31552
31787
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31553
31788
|
converter: function converter(_ref2) {
|
|
@@ -31560,8 +31795,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31560
31795
|
});
|
|
31561
31796
|
}
|
|
31562
31797
|
});
|
|
31563
|
-
case
|
|
31564
|
-
return _context.
|
|
31798
|
+
case 2:
|
|
31799
|
+
return _context.abrupt("return", _context.sent);
|
|
31800
|
+
case 3:
|
|
31801
|
+
case "end":
|
|
31802
|
+
return _context.stop();
|
|
31565
31803
|
}
|
|
31566
31804
|
}, _callee);
|
|
31567
31805
|
}));
|
|
@@ -31608,12 +31846,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31608
31846
|
value: false
|
|
31609
31847
|
}];
|
|
31610
31848
|
var ref = useRef();
|
|
31611
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31612
|
-
var _ref$current, source
|
|
31613
|
-
return
|
|
31614
|
-
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) {
|
|
31615
31853
|
case 0:
|
|
31616
|
-
_context.
|
|
31854
|
+
_context.next = 2;
|
|
31617
31855
|
return setIsShowAndType(function (prev) {
|
|
31618
31856
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31619
31857
|
return {
|
|
@@ -31624,39 +31862,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31624
31862
|
}
|
|
31625
31863
|
return prev;
|
|
31626
31864
|
});
|
|
31627
|
-
case
|
|
31865
|
+
case 2:
|
|
31628
31866
|
if (!record.dictionaryCode) {
|
|
31629
|
-
_context.
|
|
31867
|
+
_context.next = 17;
|
|
31630
31868
|
break;
|
|
31631
31869
|
}
|
|
31632
31870
|
if (!(record.choiceType == 20)) {
|
|
31633
|
-
_context.
|
|
31871
|
+
_context.next = 7;
|
|
31634
31872
|
break;
|
|
31635
31873
|
}
|
|
31636
|
-
|
|
31637
|
-
_context.
|
|
31874
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31875
|
+
_context.next = 15;
|
|
31638
31876
|
break;
|
|
31639
|
-
case
|
|
31877
|
+
case 7:
|
|
31640
31878
|
if (!(record.choiceType == 30)) {
|
|
31641
|
-
_context.
|
|
31879
|
+
_context.next = 13;
|
|
31642
31880
|
break;
|
|
31643
31881
|
}
|
|
31644
|
-
_context.
|
|
31882
|
+
_context.next = 10;
|
|
31645
31883
|
return getDynamicDict(record.dictionaryCode);
|
|
31646
|
-
case
|
|
31647
|
-
|
|
31648
|
-
_context.
|
|
31884
|
+
case 10:
|
|
31885
|
+
_context.t1 = _context.sent;
|
|
31886
|
+
_context.next = 14;
|
|
31649
31887
|
break;
|
|
31650
|
-
case
|
|
31651
|
-
|
|
31652
|
-
case
|
|
31653
|
-
|
|
31654
|
-
case
|
|
31655
|
-
source =
|
|
31888
|
+
case 13:
|
|
31889
|
+
_context.t1 = [];
|
|
31890
|
+
case 14:
|
|
31891
|
+
_context.t0 = _context.t1;
|
|
31892
|
+
case 15:
|
|
31893
|
+
source = _context.t0;
|
|
31656
31894
|
// @ts-ignore
|
|
31657
31895
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31658
|
-
case
|
|
31659
|
-
|
|
31896
|
+
case 17:
|
|
31897
|
+
case "end":
|
|
31898
|
+
return _context.stop();
|
|
31660
31899
|
}
|
|
31661
31900
|
}, _callee);
|
|
31662
31901
|
})));
|
|
@@ -31721,10 +31960,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31721
31960
|
source: {
|
|
31722
31961
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31723
31962
|
type: function () {
|
|
31724
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31963
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
31725
31964
|
var form, values, name, relates, source;
|
|
31726
|
-
return
|
|
31727
|
-
while (1) switch (_context2.
|
|
31965
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31966
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
31728
31967
|
case 0:
|
|
31729
31968
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31730
31969
|
if (values[0]) {
|
|
@@ -31733,18 +31972,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31733
31972
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31734
31973
|
}
|
|
31735
31974
|
if (!values[1]) {
|
|
31736
|
-
_context2.
|
|
31975
|
+
_context2.next = 9;
|
|
31737
31976
|
break;
|
|
31738
31977
|
}
|
|
31739
|
-
_context2.
|
|
31978
|
+
_context2.next = 5;
|
|
31740
31979
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31741
|
-
case
|
|
31742
|
-
source = _context2.
|
|
31980
|
+
case 5:
|
|
31981
|
+
source = _context2.sent;
|
|
31743
31982
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31744
31983
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31745
31984
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31746
|
-
case
|
|
31747
|
-
|
|
31985
|
+
case 9:
|
|
31986
|
+
case "end":
|
|
31987
|
+
return _context2.stop();
|
|
31748
31988
|
}
|
|
31749
31989
|
}, _callee2);
|
|
31750
31990
|
}));
|
|
@@ -32200,25 +32440,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32200
32440
|
source: {
|
|
32201
32441
|
relates: ['choiceType', 'inputType'],
|
|
32202
32442
|
type: function () {
|
|
32203
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32443
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
32204
32444
|
var values, name, form, source;
|
|
32205
|
-
return
|
|
32206
|
-
while (1) switch (_context3.
|
|
32445
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32446
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
32207
32447
|
case 0:
|
|
32208
|
-
values =
|
|
32448
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
32209
32449
|
if (values[1] === 40) {
|
|
32210
32450
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32211
32451
|
form.setFieldVisible(name, false);
|
|
32212
32452
|
}
|
|
32213
32453
|
if (!(values[0] === 30)) {
|
|
32214
|
-
_context3.
|
|
32454
|
+
_context3.next = 10;
|
|
32215
32455
|
break;
|
|
32216
32456
|
}
|
|
32217
|
-
_context3.
|
|
32457
|
+
_context3.next = 5;
|
|
32218
32458
|
return request$2({
|
|
32219
32459
|
url: '/basic/dictDynamicItem/queryList',
|
|
32220
|
-
converter: function converter(
|
|
32221
|
-
var data =
|
|
32460
|
+
converter: function converter(_ref11) {
|
|
32461
|
+
var data = _ref11.data;
|
|
32222
32462
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32223
32463
|
return {
|
|
32224
32464
|
text: d.dictCode,
|
|
@@ -32227,16 +32467,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32227
32467
|
});
|
|
32228
32468
|
}
|
|
32229
32469
|
});
|
|
32230
|
-
case
|
|
32231
|
-
source = _context3.
|
|
32470
|
+
case 5:
|
|
32471
|
+
source = _context3.sent;
|
|
32232
32472
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32233
32473
|
form.setFieldVisible(name, true);
|
|
32234
|
-
_context3.
|
|
32474
|
+
_context3.next = 11;
|
|
32235
32475
|
break;
|
|
32236
|
-
case
|
|
32476
|
+
case 10:
|
|
32237
32477
|
form.setFieldVisible(name, false);
|
|
32238
|
-
case
|
|
32239
|
-
|
|
32478
|
+
case 11:
|
|
32479
|
+
case "end":
|
|
32480
|
+
return _context3.stop();
|
|
32240
32481
|
}
|
|
32241
32482
|
}, _callee3);
|
|
32242
32483
|
}));
|
|
@@ -32251,8 +32492,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32251
32492
|
name: 'enumeration',
|
|
32252
32493
|
label: '维护自定义选项',
|
|
32253
32494
|
field: {
|
|
32254
|
-
type: function type(
|
|
32255
|
-
var form =
|
|
32495
|
+
type: function type(_ref12) {
|
|
32496
|
+
var form = _ref12.form;
|
|
32256
32497
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
32257
32498
|
type: 'link',
|
|
32258
32499
|
onClick: function onClick() {
|
|
@@ -32278,10 +32519,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32278
32519
|
dependency: {
|
|
32279
32520
|
source: {
|
|
32280
32521
|
relates: ['choiceType'],
|
|
32281
|
-
type: function type(
|
|
32282
|
-
var values =
|
|
32283
|
-
name =
|
|
32284
|
-
form =
|
|
32522
|
+
type: function type(_ref13) {
|
|
32523
|
+
var values = _ref13.values,
|
|
32524
|
+
name = _ref13.name,
|
|
32525
|
+
form = _ref13.form;
|
|
32285
32526
|
if (values[0] === 10) {
|
|
32286
32527
|
form.setFieldVisible(name, true);
|
|
32287
32528
|
} else {
|
|
@@ -32297,10 +32538,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32297
32538
|
dependency: {
|
|
32298
32539
|
visible: {
|
|
32299
32540
|
relates: ['choiceType'],
|
|
32300
|
-
type: function type(
|
|
32301
|
-
var name =
|
|
32302
|
-
values =
|
|
32303
|
-
form =
|
|
32541
|
+
type: function type(_ref14) {
|
|
32542
|
+
var name = _ref14.name,
|
|
32543
|
+
values = _ref14.values,
|
|
32544
|
+
form = _ref14.form;
|
|
32304
32545
|
if (values[0] == 330) {
|
|
32305
32546
|
form.setFieldVisible(name, true);
|
|
32306
32547
|
} else {
|
|
@@ -32324,8 +32565,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32324
32565
|
params: {
|
|
32325
32566
|
'qp-businessType-eq': record.businessType
|
|
32326
32567
|
},
|
|
32327
|
-
converter: function converter(
|
|
32328
|
-
var data =
|
|
32568
|
+
converter: function converter(_ref15) {
|
|
32569
|
+
var data = _ref15.data;
|
|
32329
32570
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32330
32571
|
return {
|
|
32331
32572
|
text: d.name,
|
|
@@ -32365,8 +32606,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32365
32606
|
'qp-businessType-eq': record.businessType,
|
|
32366
32607
|
'qp-status-eq': 1
|
|
32367
32608
|
},
|
|
32368
|
-
converter: function converter(
|
|
32369
|
-
var data =
|
|
32609
|
+
converter: function converter(_ref16) {
|
|
32610
|
+
var data = _ref16.data;
|
|
32370
32611
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32371
32612
|
var _d$code;
|
|
32372
32613
|
return {
|
|
@@ -32394,8 +32635,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32394
32635
|
remoteSource: {
|
|
32395
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),
|
|
32396
32637
|
method: 'get',
|
|
32397
|
-
converter: function converter(
|
|
32398
|
-
var data =
|
|
32638
|
+
converter: function converter(_ref17) {
|
|
32639
|
+
var data = _ref17.data;
|
|
32399
32640
|
if (lineDetail.moduleType == 1) {
|
|
32400
32641
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32401
32642
|
return {
|
|
@@ -32421,16 +32662,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32421
32662
|
width: 900,
|
|
32422
32663
|
maskClosable: false,
|
|
32423
32664
|
onOk: function () {
|
|
32424
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32665
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32425
32666
|
var _ref$current4, _res$editableStatus;
|
|
32426
32667
|
var res, _res$defaultValue;
|
|
32427
|
-
return
|
|
32428
|
-
while (1) switch (_context4.
|
|
32668
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32669
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
32429
32670
|
case 0:
|
|
32430
|
-
_context4.
|
|
32671
|
+
_context4.next = 2;
|
|
32431
32672
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32432
|
-
case
|
|
32433
|
-
res = _context4.
|
|
32673
|
+
case 2:
|
|
32674
|
+
res = _context4.sent;
|
|
32434
32675
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32435
32676
|
res.fieldGroup = record.fieldGroup;
|
|
32436
32677
|
res.businessType = record.businessType;
|
|
@@ -32457,7 +32698,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32457
32698
|
delete res.formula;
|
|
32458
32699
|
delete res.showValue;
|
|
32459
32700
|
if (!(mode === 'create')) {
|
|
32460
|
-
_context4.
|
|
32701
|
+
_context4.next = 18;
|
|
32461
32702
|
break;
|
|
32462
32703
|
}
|
|
32463
32704
|
request$2({
|
|
@@ -32469,8 +32710,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32469
32710
|
onParentOk();
|
|
32470
32711
|
}
|
|
32471
32712
|
});
|
|
32472
|
-
return _context4.
|
|
32473
|
-
case
|
|
32713
|
+
return _context4.abrupt("return");
|
|
32714
|
+
case 18:
|
|
32474
32715
|
request$2({
|
|
32475
32716
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32476
32717
|
method: 'PATCH',
|
|
@@ -32480,8 +32721,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32480
32721
|
onParentOk();
|
|
32481
32722
|
}
|
|
32482
32723
|
});
|
|
32483
|
-
case
|
|
32484
|
-
|
|
32724
|
+
case 19:
|
|
32725
|
+
case "end":
|
|
32726
|
+
return _context4.stop();
|
|
32485
32727
|
}
|
|
32486
32728
|
}, _callee4);
|
|
32487
32729
|
}));
|
|
@@ -32937,21 +33179,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32937
33179
|
jsonEditorVal = _useState8[0],
|
|
32938
33180
|
setJsonEditorVal = _useState8[1];
|
|
32939
33181
|
var _useState9 = useState({}),
|
|
32940
|
-
|
|
32941
|
-
moduleParams =
|
|
32942
|
-
setModuleParams =
|
|
32943
|
-
var
|
|
32944
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32945
|
-
activeKey = _useState10[0],
|
|
32946
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32947
|
-
var _useState11 = useState({}),
|
|
33182
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
33183
|
+
moduleParams = _useState10[0],
|
|
33184
|
+
setModuleParams = _useState10[1];
|
|
33185
|
+
var _useState11 = useState('main'),
|
|
32948
33186
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
var _useState13 = useState(
|
|
33187
|
+
activeKey = _useState12[0],
|
|
33188
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
33189
|
+
var _useState13 = useState({}),
|
|
32952
33190
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32953
|
-
|
|
32954
|
-
|
|
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];
|
|
32955
33197
|
useEffect(function () {
|
|
32956
33198
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32957
33199
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32982,7 +33224,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32982
33224
|
});
|
|
32983
33225
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32984
33226
|
var _ref6 = _toArray(_ref5),
|
|
32985
|
-
resArr =
|
|
33227
|
+
resArr = _ref6.slice(0);
|
|
32986
33228
|
var configParams = {};
|
|
32987
33229
|
detailTablesSetting.map(function (item, index) {
|
|
32988
33230
|
var _resArr$index;
|
|
@@ -33327,11 +33569,11 @@ function getMetaData(_x) {
|
|
|
33327
33569
|
|
|
33328
33570
|
// 获取数据
|
|
33329
33571
|
function _getMetaData() {
|
|
33330
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33331
|
-
return
|
|
33332
|
-
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) {
|
|
33333
33575
|
case 0:
|
|
33334
|
-
return _context.
|
|
33576
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
33335
33577
|
request$3('/basic/entityProperty/listNoPage', {
|
|
33336
33578
|
params: {
|
|
33337
33579
|
'qp-entityId-eq': id
|
|
@@ -33343,6 +33585,9 @@ function _getMetaData() {
|
|
|
33343
33585
|
reject([]);
|
|
33344
33586
|
});
|
|
33345
33587
|
}));
|
|
33588
|
+
case 1:
|
|
33589
|
+
case "end":
|
|
33590
|
+
return _context.stop();
|
|
33346
33591
|
}
|
|
33347
33592
|
}, _callee);
|
|
33348
33593
|
}));
|
|
@@ -33546,11 +33791,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33546
33791
|
tableState = _useState4[0],
|
|
33547
33792
|
setTableState = _useState4[1];
|
|
33548
33793
|
var handleOpen = /*#__PURE__*/function () {
|
|
33549
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33794
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33550
33795
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33551
33796
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33552
|
-
return
|
|
33553
|
-
while (1) switch (_context.
|
|
33797
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33798
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33554
33799
|
case 0:
|
|
33555
33800
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33556
33801
|
isSearchForm: props.isSearchForm,
|
|
@@ -33558,16 +33803,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33558
33803
|
searchFormData: searchFormData
|
|
33559
33804
|
});
|
|
33560
33805
|
if (requestConfigNew) {
|
|
33561
|
-
_context.
|
|
33806
|
+
_context.next = 3;
|
|
33562
33807
|
break;
|
|
33563
33808
|
}
|
|
33564
|
-
return _context.
|
|
33565
|
-
case
|
|
33809
|
+
return _context.abrupt("return");
|
|
33810
|
+
case 3:
|
|
33566
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;
|
|
33567
|
-
_context.
|
|
33812
|
+
_context.next = 6;
|
|
33568
33813
|
return getMetaData(metaDataId);
|
|
33569
|
-
case
|
|
33570
|
-
metaData = _context.
|
|
33814
|
+
case 6:
|
|
33815
|
+
metaData = _context.sent;
|
|
33571
33816
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33572
33817
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33573
33818
|
})) || [];
|
|
@@ -33607,8 +33852,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33607
33852
|
// @ts-ignore
|
|
33608
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);
|
|
33609
33854
|
}
|
|
33610
|
-
case
|
|
33611
|
-
|
|
33855
|
+
case 14:
|
|
33856
|
+
case "end":
|
|
33857
|
+
return _context.stop();
|
|
33612
33858
|
}
|
|
33613
33859
|
}, _callee);
|
|
33614
33860
|
}));
|
|
@@ -33711,7 +33957,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33711
33957
|
}, [requestConfig, tableState.columns]);
|
|
33712
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';
|
|
33713
33959
|
var handleOk = function handleOk(rowData) {
|
|
33714
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33960
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
33715
33961
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33716
33962
|
//多选数据处理
|
|
33717
33963
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33722,9 +33968,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33722
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()) || [];
|
|
33723
33969
|
var realSelectedRows = selectedRows;
|
|
33724
33970
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33725
|
-
var _queryTableRef$
|
|
33971
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
33726
33972
|
// @ts-ignore
|
|
33727
|
-
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()) || [];
|
|
33728
33974
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33729
33975
|
return selectedKesys.includes(s[rowKey]);
|
|
33730
33976
|
});
|
|
@@ -33757,10 +34003,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33757
34003
|
});
|
|
33758
34004
|
}
|
|
33759
34005
|
mappings.map(function (item) {
|
|
33760
|
-
var _props$
|
|
33761
|
-
if (((_props$
|
|
33762
|
-
var _props$
|
|
33763
|
-
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];
|
|
33764
34010
|
}
|
|
33765
34011
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33766
34012
|
});
|
|
@@ -33815,10 +34061,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33815
34061
|
}
|
|
33816
34062
|
props.onCancel();
|
|
33817
34063
|
//@ts-ignore
|
|
33818
|
-
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();
|
|
33819
34065
|
};
|
|
33820
34066
|
var config = useMemo(function () {
|
|
33821
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
34067
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33822
34068
|
var returnConfig = {
|
|
33823
34069
|
size: 'small',
|
|
33824
34070
|
needPageHeader: false,
|
|
@@ -33827,7 +34073,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33827
34073
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33828
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) {
|
|
33829
34075
|
return v.key || v;
|
|
33830
|
-
})) || (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))
|
|
33831
34077
|
} : false,
|
|
33832
34078
|
remoteDataSource: remoteDataSource,
|
|
33833
34079
|
fields: tableState.fields,
|
|
@@ -33835,8 +34081,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33835
34081
|
rowKey: rowKey,
|
|
33836
34082
|
tableProps: !isView && {
|
|
33837
34083
|
rowClassName: function rowClassName(record) {
|
|
33838
|
-
var _props$
|
|
33839
|
-
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' : '';
|
|
33840
34086
|
},
|
|
33841
34087
|
onRow: function onRow(record) {
|
|
33842
34088
|
return {
|
|
@@ -33881,10 +34127,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33881
34127
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33882
34128
|
type: "default",
|
|
33883
34129
|
onClick: function onClick() {
|
|
33884
|
-
var _queryTableRef$
|
|
34130
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33885
34131
|
props.onCancel();
|
|
33886
34132
|
//@ts-ignore
|
|
33887
|
-
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();
|
|
33888
34134
|
}
|
|
33889
34135
|
}, "\u53D6\u6D88"))));
|
|
33890
34136
|
});
|
|
@@ -34108,19 +34354,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34108
34354
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34109
34355
|
handSource = _useState2[0],
|
|
34110
34356
|
setHandSource = _useState2[1];
|
|
34111
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34357
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34112
34358
|
var resData, data;
|
|
34113
|
-
return
|
|
34114
|
-
while (1) switch (_context.
|
|
34359
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34360
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34115
34361
|
case 0:
|
|
34116
34362
|
if (!(!source && initRequestSource)) {
|
|
34117
|
-
_context.
|
|
34363
|
+
_context.next = 6;
|
|
34118
34364
|
break;
|
|
34119
34365
|
}
|
|
34120
|
-
_context.
|
|
34366
|
+
_context.next = 3;
|
|
34121
34367
|
return initRequestSource();
|
|
34122
|
-
case
|
|
34123
|
-
resData = _context.
|
|
34368
|
+
case 3:
|
|
34369
|
+
resData = _context.sent;
|
|
34124
34370
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
34125
34371
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
34126
34372
|
label: item.text,
|
|
@@ -34128,8 +34374,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34128
34374
|
});
|
|
34129
34375
|
})) || [];
|
|
34130
34376
|
setHandSource(data);
|
|
34131
|
-
case
|
|
34132
|
-
|
|
34377
|
+
case 6:
|
|
34378
|
+
case "end":
|
|
34379
|
+
return _context.stop();
|
|
34133
34380
|
}
|
|
34134
34381
|
}, _callee);
|
|
34135
34382
|
})), []);
|
|
@@ -34259,17 +34506,20 @@ function getRegularThresholdRange(_x) {
|
|
|
34259
34506
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34260
34507
|
}
|
|
34261
34508
|
function _getRegularThresholdRange() {
|
|
34262
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34263
|
-
return
|
|
34264
|
-
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) {
|
|
34265
34512
|
case 0:
|
|
34266
|
-
return _context.
|
|
34513
|
+
return _context.abrupt("return", requestUtil({
|
|
34267
34514
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34268
34515
|
method: 'POST',
|
|
34269
34516
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34270
34517
|
queryIdentify: undefined
|
|
34271
34518
|
})
|
|
34272
34519
|
}));
|
|
34520
|
+
case 1:
|
|
34521
|
+
case "end":
|
|
34522
|
+
return _context.stop();
|
|
34273
34523
|
}
|
|
34274
34524
|
}, _callee);
|
|
34275
34525
|
}));
|
|
@@ -34410,24 +34660,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34410
34660
|
};
|
|
34411
34661
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34412
34662
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34413
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34663
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34414
34664
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34415
|
-
return
|
|
34416
|
-
while (1) switch (_context.
|
|
34665
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34666
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34417
34667
|
case 0:
|
|
34418
34668
|
if (queryIdentify) {
|
|
34419
|
-
_context.
|
|
34669
|
+
_context.next = 2;
|
|
34420
34670
|
break;
|
|
34421
34671
|
}
|
|
34422
|
-
return _context.
|
|
34423
|
-
case
|
|
34672
|
+
return _context.abrupt("return");
|
|
34673
|
+
case 2:
|
|
34424
34674
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34425
34675
|
extraRequestUrl = '';
|
|
34426
34676
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34427
34677
|
if (!queryIdentityInfo.find(function (item) {
|
|
34428
34678
|
return item.identity == propertyCode;
|
|
34429
34679
|
})) {
|
|
34430
|
-
_context.
|
|
34680
|
+
_context.next = 10;
|
|
34431
34681
|
break;
|
|
34432
34682
|
}
|
|
34433
34683
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34441,15 +34691,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34441
34691
|
if (!needQueryList.some(function (item) {
|
|
34442
34692
|
return !querParams[item] || !querParams[item].length;
|
|
34443
34693
|
})) {
|
|
34444
|
-
_context.
|
|
34694
|
+
_context.next = 9;
|
|
34445
34695
|
break;
|
|
34446
34696
|
}
|
|
34447
|
-
return _context.
|
|
34448
|
-
case
|
|
34697
|
+
return _context.abrupt("return");
|
|
34698
|
+
case 9:
|
|
34449
34699
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34450
34700
|
return item.identity == propertyCode;
|
|
34451
34701
|
}).requestUrl || '';
|
|
34452
|
-
case
|
|
34702
|
+
case 10:
|
|
34453
34703
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34454
34704
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34455
34705
|
querParams = {
|
|
@@ -34460,7 +34710,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34460
34710
|
// querParams = { dictCode: queryIdentify }
|
|
34461
34711
|
}
|
|
34462
34712
|
if (!extraRequestUrl) {
|
|
34463
|
-
_context.
|
|
34713
|
+
_context.next = 16;
|
|
34464
34714
|
break;
|
|
34465
34715
|
}
|
|
34466
34716
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34499,42 +34749,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34499
34749
|
return handleData;
|
|
34500
34750
|
}
|
|
34501
34751
|
});
|
|
34502
|
-
_context.
|
|
34752
|
+
_context.next = 29;
|
|
34503
34753
|
break;
|
|
34504
|
-
case
|
|
34754
|
+
case 16:
|
|
34505
34755
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34506
|
-
_context.
|
|
34756
|
+
_context.next = 20;
|
|
34507
34757
|
break;
|
|
34508
34758
|
}
|
|
34509
34759
|
_this.setState({
|
|
34510
34760
|
thresholdList: queryIdentify
|
|
34511
34761
|
});
|
|
34512
|
-
_context.
|
|
34762
|
+
_context.next = 29;
|
|
34513
34763
|
break;
|
|
34514
|
-
case
|
|
34764
|
+
case 20:
|
|
34515
34765
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34516
|
-
_context.
|
|
34766
|
+
_context.next = 24;
|
|
34517
34767
|
break;
|
|
34518
34768
|
}
|
|
34519
34769
|
// TODO待处理
|
|
34520
34770
|
_this.setState({
|
|
34521
34771
|
thresholdList: []
|
|
34522
34772
|
});
|
|
34523
|
-
_context.
|
|
34773
|
+
_context.next = 29;
|
|
34524
34774
|
break;
|
|
34525
|
-
case
|
|
34775
|
+
case 24:
|
|
34526
34776
|
querParams.queryIdentify = queryIdentify;
|
|
34527
|
-
_context.
|
|
34777
|
+
_context.next = 27;
|
|
34528
34778
|
return getRegularThresholdRange(querParams);
|
|
34529
|
-
case
|
|
34530
|
-
res = _context.
|
|
34779
|
+
case 27:
|
|
34780
|
+
res = _context.sent;
|
|
34531
34781
|
if (handleError(res)) {
|
|
34532
34782
|
_this.setState({
|
|
34533
34783
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34534
34784
|
});
|
|
34535
34785
|
}
|
|
34536
|
-
case
|
|
34537
|
-
|
|
34786
|
+
case 29:
|
|
34787
|
+
case "end":
|
|
34788
|
+
return _context.stop();
|
|
34538
34789
|
}
|
|
34539
34790
|
}, _callee);
|
|
34540
34791
|
}));
|
|
@@ -35366,11 +35617,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35366
35617
|
isAll: true,
|
|
35367
35618
|
needNameAndCode: true,
|
|
35368
35619
|
notChangeOnSelect: true,
|
|
35369
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35370
|
-
return
|
|
35371
|
-
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) {
|
|
35372
35623
|
case 0:
|
|
35373
|
-
_context2.
|
|
35624
|
+
_context2.next = 2;
|
|
35374
35625
|
return request$2({
|
|
35375
35626
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35376
35627
|
method: 'get',
|
|
@@ -35387,8 +35638,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35387
35638
|
return handleData;
|
|
35388
35639
|
}
|
|
35389
35640
|
});
|
|
35390
|
-
case
|
|
35391
|
-
return _context2.
|
|
35641
|
+
case 2:
|
|
35642
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35643
|
+
case 3:
|
|
35644
|
+
case "end":
|
|
35645
|
+
return _context2.stop();
|
|
35392
35646
|
}
|
|
35393
35647
|
}, _callee2);
|
|
35394
35648
|
})),
|
|
@@ -35412,11 +35666,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35412
35666
|
isAll: true,
|
|
35413
35667
|
needNameAndCode: true,
|
|
35414
35668
|
notChangeOnSelect: true,
|
|
35415
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35416
|
-
return
|
|
35417
|
-
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) {
|
|
35418
35672
|
case 0:
|
|
35419
|
-
_context3.
|
|
35673
|
+
_context3.next = 2;
|
|
35420
35674
|
return request$2({
|
|
35421
35675
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35422
35676
|
method: 'get',
|
|
@@ -35433,8 +35687,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35433
35687
|
return handleData;
|
|
35434
35688
|
}
|
|
35435
35689
|
});
|
|
35436
|
-
case
|
|
35437
|
-
return _context3.
|
|
35690
|
+
case 2:
|
|
35691
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35692
|
+
case 3:
|
|
35693
|
+
case "end":
|
|
35694
|
+
return _context3.stop();
|
|
35438
35695
|
}
|
|
35439
35696
|
}, _callee3);
|
|
35440
35697
|
})),
|
|
@@ -35460,11 +35717,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35460
35717
|
isAll: true,
|
|
35461
35718
|
needNameAndCode: true,
|
|
35462
35719
|
notChangeOnSelect: true,
|
|
35463
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35464
|
-
return
|
|
35465
|
-
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) {
|
|
35466
35723
|
case 0:
|
|
35467
|
-
_context4.
|
|
35724
|
+
_context4.next = 2;
|
|
35468
35725
|
return request$2({
|
|
35469
35726
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35470
35727
|
method: 'get',
|
|
@@ -35481,8 +35738,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35481
35738
|
return handleData;
|
|
35482
35739
|
}
|
|
35483
35740
|
});
|
|
35484
|
-
case
|
|
35485
|
-
return _context4.
|
|
35741
|
+
case 2:
|
|
35742
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35743
|
+
case 3:
|
|
35744
|
+
case "end":
|
|
35745
|
+
return _context4.stop();
|
|
35486
35746
|
}
|
|
35487
35747
|
}, _callee4);
|
|
35488
35748
|
})),
|
|
@@ -36169,8 +36429,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36169
36429
|
}
|
|
36170
36430
|
}));
|
|
36171
36431
|
} else {
|
|
36172
|
-
var
|
|
36173
|
-
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) {
|
|
36174
36434
|
return {
|
|
36175
36435
|
key: s,
|
|
36176
36436
|
label: valueNames[vIndex],
|
|
@@ -36458,8 +36718,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36458
36718
|
}
|
|
36459
36719
|
}));
|
|
36460
36720
|
} else {
|
|
36461
|
-
var
|
|
36462
|
-
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) {
|
|
36463
36723
|
return {
|
|
36464
36724
|
key: s,
|
|
36465
36725
|
label: valueNames[vIndex],
|
|
@@ -36481,7 +36741,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36481
36741
|
} : {}),
|
|
36482
36742
|
disabled: disabled,
|
|
36483
36743
|
labelInValue: true,
|
|
36484
|
-
value:
|
|
36744
|
+
value: _currentValue10,
|
|
36485
36745
|
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36486
36746
|
otherParams: {
|
|
36487
36747
|
// 配送方式只选择标准配送方式
|
|
@@ -36579,8 +36839,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36579
36839
|
}
|
|
36580
36840
|
}));
|
|
36581
36841
|
} else {
|
|
36582
|
-
var
|
|
36583
|
-
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) {
|
|
36584
36844
|
return {
|
|
36585
36845
|
key: s,
|
|
36586
36846
|
label: valueNames[vIndex],
|
|
@@ -36602,7 +36862,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36602
36862
|
} : {}),
|
|
36603
36863
|
disabled: disabled,
|
|
36604
36864
|
labelInValue: true,
|
|
36605
|
-
value:
|
|
36865
|
+
value: _currentValue11,
|
|
36606
36866
|
requestConfig: {
|
|
36607
36867
|
filterInit: 'qp-code-in'
|
|
36608
36868
|
},
|
|
@@ -36695,8 +36955,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36695
36955
|
}
|
|
36696
36956
|
}));
|
|
36697
36957
|
} else {
|
|
36698
|
-
var
|
|
36699
|
-
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) {
|
|
36700
36960
|
return {
|
|
36701
36961
|
key: s,
|
|
36702
36962
|
label: valueNames[vIndex],
|
|
@@ -36718,7 +36978,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36718
36978
|
} : {}),
|
|
36719
36979
|
disabled: disabled,
|
|
36720
36980
|
labelInValue: true,
|
|
36721
|
-
value:
|
|
36981
|
+
value: _currentValue12,
|
|
36722
36982
|
requestConfig: {
|
|
36723
36983
|
filterInit: 'qp-brandCode-in'
|
|
36724
36984
|
},
|
|
@@ -36909,8 +37169,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36909
37169
|
}
|
|
36910
37170
|
}));
|
|
36911
37171
|
} else {
|
|
36912
|
-
var
|
|
36913
|
-
var
|
|
37172
|
+
var _values14;
|
|
37173
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36914
37174
|
return {
|
|
36915
37175
|
key: s,
|
|
36916
37176
|
label: valueNames[vIndex]
|
|
@@ -36938,7 +37198,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36938
37198
|
isSearchForm: true,
|
|
36939
37199
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36940
37200
|
disabled: disabled,
|
|
36941
|
-
value:
|
|
37201
|
+
value: _currentValue13,
|
|
36942
37202
|
onChange: function onChange(value, sourceList) {
|
|
36943
37203
|
if (dataInputBusinessType === 12) {
|
|
36944
37204
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37258,9 +37518,9 @@ var App$1 = function App(_ref) {
|
|
|
37258
37518
|
UpdateState(res);
|
|
37259
37519
|
};
|
|
37260
37520
|
var _useState9 = useState(false),
|
|
37261
|
-
|
|
37262
|
-
isModalVisible =
|
|
37263
|
-
setIsModalVisible =
|
|
37521
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37522
|
+
isModalVisible = _useState10[0],
|
|
37523
|
+
setIsModalVisible = _useState10[1];
|
|
37264
37524
|
var showModal = function showModal() {
|
|
37265
37525
|
setIsModalVisible(true);
|
|
37266
37526
|
};
|
|
@@ -37741,26 +38001,27 @@ function RenderCompItem(props) {
|
|
|
37741
38001
|
dictData = _useState2[0],
|
|
37742
38002
|
setDictData = _useState2[1];
|
|
37743
38003
|
var getDictData = /*#__PURE__*/function () {
|
|
37744
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
38004
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
37745
38005
|
var _data$map;
|
|
37746
38006
|
var data;
|
|
37747
|
-
return
|
|
37748
|
-
while (1) switch (_context.
|
|
38007
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38008
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37749
38009
|
case 0:
|
|
37750
|
-
_context.
|
|
38010
|
+
_context.next = 2;
|
|
37751
38011
|
return request$2({
|
|
37752
38012
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37753
38013
|
});
|
|
37754
|
-
case
|
|
37755
|
-
data = _context.
|
|
38014
|
+
case 2:
|
|
38015
|
+
data = _context.sent;
|
|
37756
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) {
|
|
37757
38017
|
return {
|
|
37758
38018
|
text: item.dictItemName,
|
|
37759
38019
|
value: item.dictItemCode
|
|
37760
38020
|
};
|
|
37761
38021
|
}));
|
|
37762
|
-
case
|
|
37763
|
-
|
|
38022
|
+
case 4:
|
|
38023
|
+
case "end":
|
|
38024
|
+
return _context.stop();
|
|
37764
38025
|
}
|
|
37765
38026
|
}, _callee);
|
|
37766
38027
|
}));
|
|
@@ -38001,11 +38262,11 @@ function RenderCompItem(props) {
|
|
|
38001
38262
|
needNameAndCode: true,
|
|
38002
38263
|
notChangeOnSelect: true,
|
|
38003
38264
|
initRequestSource: function () {
|
|
38004
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
38005
|
-
return
|
|
38006
|
-
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) {
|
|
38007
38268
|
case 0:
|
|
38008
|
-
_context2.
|
|
38269
|
+
_context2.next = 2;
|
|
38009
38270
|
return request$2({
|
|
38010
38271
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
38011
38272
|
method: 'get',
|
|
@@ -38023,8 +38284,11 @@ function RenderCompItem(props) {
|
|
|
38023
38284
|
return handleData;
|
|
38024
38285
|
}
|
|
38025
38286
|
});
|
|
38026
|
-
case
|
|
38027
|
-
return _context2.
|
|
38287
|
+
case 2:
|
|
38288
|
+
return _context2.abrupt("return", _context2.sent);
|
|
38289
|
+
case 3:
|
|
38290
|
+
case "end":
|
|
38291
|
+
return _context2.stop();
|
|
38028
38292
|
}
|
|
38029
38293
|
}, _callee2);
|
|
38030
38294
|
}));
|
|
@@ -40080,13 +40344,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40080
40344
|
ruleTypeData = _useState8[0],
|
|
40081
40345
|
setRuleTypeData = _useState8[1];
|
|
40082
40346
|
var _useState9 = useState([]),
|
|
40083
|
-
|
|
40084
|
-
ruleReturnConfig =
|
|
40085
|
-
setRuleReturnConfig =
|
|
40086
|
-
var
|
|
40087
|
-
|
|
40088
|
-
templateData =
|
|
40089
|
-
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];
|
|
40090
40354
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
40091
40355
|
request$2({
|
|
40092
40356
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40422,25 +40686,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40422
40686
|
regularDataList = _useState8[0],
|
|
40423
40687
|
setRegularDataList = _useState8[1];
|
|
40424
40688
|
var _useState9 = useState([]),
|
|
40425
|
-
|
|
40426
|
-
baseRuleDetailList =
|
|
40427
|
-
setBaseRuleDetailList =
|
|
40428
|
-
var
|
|
40429
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
40430
|
-
systemVariableList = _useState10[0],
|
|
40431
|
-
setSystemVariableList = _useState10[1];
|
|
40432
|
-
var _useState11 = useState(false),
|
|
40689
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40690
|
+
baseRuleDetailList = _useState10[0],
|
|
40691
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40692
|
+
var _useState11 = useState([]),
|
|
40433
40693
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40434
|
-
|
|
40435
|
-
|
|
40694
|
+
systemVariableList = _useState12[0],
|
|
40695
|
+
setSystemVariableList = _useState12[1];
|
|
40436
40696
|
var _useState13 = useState(false),
|
|
40437
40697
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40438
|
-
|
|
40439
|
-
|
|
40698
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40699
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40440
40700
|
var _useState15 = useState(false),
|
|
40441
40701
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40442
|
-
|
|
40443
|
-
|
|
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];
|
|
40444
40708
|
var baseRuleRef = useRef();
|
|
40445
40709
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40446
40710
|
// 查询规则组下所有规则实例
|