@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.2
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.d.ts +0 -1
- package/dist/index.esm.js +1092 -860
- package/dist/index.js +1091 -861
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/dist/utils/utils.d.ts +0 -41
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -2
- package/src/index.ts +0 -2
- package/src/utils/utils.ts +1 -41
- package/dist/components/Business/SystemLog/index.d.ts +0 -78
- package/src/components/Business/SystemLog/index.md +0 -37
- package/src/components/Business/SystemLog/index.tsx +0 -87
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,115 +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
|
-
|
|
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
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function maybeInvokeDelegate(e, r) {
|
|
353
|
+
var n = r.method,
|
|
354
|
+
o = e.iterator[n];
|
|
355
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
356
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
357
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
358
|
+
var a = i.arg;
|
|
359
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
360
|
+
}
|
|
361
|
+
function pushTryEntry(t) {
|
|
362
|
+
var e = {
|
|
363
|
+
tryLoc: t[0]
|
|
364
|
+
};
|
|
365
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
366
|
+
}
|
|
367
|
+
function resetTryEntry(t) {
|
|
368
|
+
var e = t.completion || {};
|
|
369
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
370
|
+
}
|
|
371
|
+
function Context(t) {
|
|
372
|
+
this.tryEntries = [{
|
|
373
|
+
tryLoc: "root"
|
|
374
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
375
|
+
}
|
|
376
|
+
function values(e) {
|
|
377
|
+
if (e || "" === e) {
|
|
378
|
+
var r = e[a];
|
|
379
|
+
if (r) return r.call(e);
|
|
380
|
+
if ("function" == typeof e.next) return e;
|
|
381
|
+
if (!isNaN(e.length)) {
|
|
382
|
+
var o = -1,
|
|
383
|
+
i = function next() {
|
|
384
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
385
|
+
return next.value = t, next.done = !0, next;
|
|
386
|
+
};
|
|
387
|
+
return i.next = i;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
391
|
+
}
|
|
392
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
393
|
+
value: GeneratorFunctionPrototype,
|
|
394
|
+
configurable: !0
|
|
395
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
396
|
+
value: GeneratorFunction,
|
|
397
|
+
configurable: !0
|
|
398
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
399
|
+
var e = "function" == typeof t && t.constructor;
|
|
400
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
401
|
+
}, e.mark = function (t) {
|
|
402
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
403
|
+
}, e.awrap = function (t) {
|
|
291
404
|
return {
|
|
292
|
-
|
|
293
|
-
m: f
|
|
405
|
+
__await: t
|
|
294
406
|
};
|
|
295
|
-
})()
|
|
296
|
-
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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
|
+
}
|
|
315
464
|
}
|
|
316
|
-
|
|
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;
|
|
317
508
|
}
|
|
318
|
-
},
|
|
509
|
+
}, e;
|
|
319
510
|
}
|
|
320
511
|
function _setPrototypeOf(t, e) {
|
|
321
512
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1263,45 +1454,6 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
|
|
|
1263
1454
|
var noEmptyArray = function noEmptyArray(targetObj) {
|
|
1264
1455
|
return Array.isArray(targetObj) && targetObj.length !== 0;
|
|
1265
1456
|
};
|
|
1266
|
-
var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
|
|
1267
|
-
return type === 'form' ? {
|
|
1268
|
-
container: {
|
|
1269
|
-
type: 'card',
|
|
1270
|
-
props: {
|
|
1271
|
-
title: title,
|
|
1272
|
-
id: Math.random(),
|
|
1273
|
-
level: 1,
|
|
1274
|
-
name: name
|
|
1275
|
-
}
|
|
1276
|
-
},
|
|
1277
|
-
itemLayout: {
|
|
1278
|
-
span: 8,
|
|
1279
|
-
labelCol: {
|
|
1280
|
-
span: 8
|
|
1281
|
-
},
|
|
1282
|
-
wrapperCol: {
|
|
1283
|
-
span: 18
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
} : {
|
|
1287
|
-
container: {
|
|
1288
|
-
type: 'card',
|
|
1289
|
-
props: {
|
|
1290
|
-
title: title,
|
|
1291
|
-
id: Math.random(),
|
|
1292
|
-
level: 1,
|
|
1293
|
-
bordered: null,
|
|
1294
|
-
isWhiteCard: true,
|
|
1295
|
-
name: name
|
|
1296
|
-
}
|
|
1297
|
-
},
|
|
1298
|
-
itemLayout: {
|
|
1299
|
-
wrapperCol: {
|
|
1300
|
-
span: 0
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
1457
|
|
|
1306
1458
|
// 判断某个按钮/菜单 是否有权限,返回布尔值
|
|
1307
1459
|
var authFunc = function authFunc(code) {
|
|
@@ -1388,22 +1540,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1388
1540
|
// sheepMap是表头字段中英文映射
|
|
1389
1541
|
// sheetCount:表的数量,默认一张
|
|
1390
1542
|
var resolveFile = /*#__PURE__*/function () {
|
|
1391
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1543
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1392
1544
|
var config,
|
|
1393
1545
|
data,
|
|
1394
1546
|
_args = arguments;
|
|
1395
|
-
return
|
|
1396
|
-
while (1) switch (_context.
|
|
1547
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1548
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1397
1549
|
case 0:
|
|
1398
1550
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1399
1551
|
sheetMap: [],
|
|
1400
1552
|
sheetCount: 1
|
|
1401
1553
|
};
|
|
1402
|
-
_context.
|
|
1554
|
+
_context.next = 3;
|
|
1403
1555
|
return analyseExcelToByte(file);
|
|
1404
|
-
case
|
|
1405
|
-
data = _context.
|
|
1406
|
-
return _context.
|
|
1556
|
+
case 3:
|
|
1557
|
+
data = _context.sent;
|
|
1558
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1407
1559
|
var workbook = read(data, {
|
|
1408
1560
|
type: 'binary'
|
|
1409
1561
|
});
|
|
@@ -1415,6 +1567,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1415
1567
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1416
1568
|
resolve(outdata);
|
|
1417
1569
|
}));
|
|
1570
|
+
case 5:
|
|
1571
|
+
case "end":
|
|
1572
|
+
return _context.stop();
|
|
1418
1573
|
}
|
|
1419
1574
|
}, _callee);
|
|
1420
1575
|
}));
|
|
@@ -1424,40 +1579,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1424
1579
|
}();
|
|
1425
1580
|
//读取文件
|
|
1426
1581
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1427
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1582
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1428
1583
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1429
|
-
return
|
|
1430
|
-
while (1) switch (_context2.
|
|
1584
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1585
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1431
1586
|
case 0:
|
|
1432
1587
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1433
1588
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1434
|
-
_context2.
|
|
1589
|
+
_context2.next = 15;
|
|
1435
1590
|
break;
|
|
1436
1591
|
}
|
|
1437
1592
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1438
|
-
_context2.
|
|
1593
|
+
_context2.next = 5;
|
|
1439
1594
|
return resolveFile(nowFile.originFileObj, {
|
|
1440
1595
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1441
1596
|
sheetCount: 1
|
|
1442
1597
|
});
|
|
1443
|
-
case
|
|
1444
|
-
data2 = _context2.
|
|
1598
|
+
case 5:
|
|
1599
|
+
data2 = _context2.sent;
|
|
1445
1600
|
data = data2[0];
|
|
1446
1601
|
if (data.length) {
|
|
1447
|
-
_context2.
|
|
1602
|
+
_context2.next = 10;
|
|
1448
1603
|
break;
|
|
1449
1604
|
}
|
|
1450
1605
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1451
|
-
return _context2.
|
|
1452
|
-
case
|
|
1606
|
+
return _context2.abrupt("return");
|
|
1607
|
+
case 10:
|
|
1453
1608
|
if (callback) callback(data);
|
|
1454
1609
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1455
|
-
return _context2.
|
|
1456
|
-
case
|
|
1610
|
+
return _context2.abrupt("return", data);
|
|
1611
|
+
case 15:
|
|
1457
1612
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1458
|
-
return _context2.
|
|
1459
|
-
case
|
|
1460
|
-
|
|
1613
|
+
return _context2.abrupt("return");
|
|
1614
|
+
case 17:
|
|
1615
|
+
case "end":
|
|
1616
|
+
return _context2.stop();
|
|
1461
1617
|
}
|
|
1462
1618
|
}, _callee2);
|
|
1463
1619
|
}));
|
|
@@ -2409,14 +2565,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2409
2565
|
return request$1(url, parms).then(handleResponseData);
|
|
2410
2566
|
};
|
|
2411
2567
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2412
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2413
|
-
return
|
|
2414
|
-
while (1) switch (_context.
|
|
2568
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2569
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2570
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2415
2571
|
case 0:
|
|
2416
|
-
return _context.
|
|
2572
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2417
2573
|
data: response,
|
|
2418
2574
|
status: response.status
|
|
2419
2575
|
}));
|
|
2576
|
+
case 1:
|
|
2577
|
+
case "end":
|
|
2578
|
+
return _context.stop();
|
|
2420
2579
|
}
|
|
2421
2580
|
}, _callee);
|
|
2422
2581
|
}));
|
|
@@ -4559,27 +4718,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4559
4718
|
popvalue = _useState8[0],
|
|
4560
4719
|
setPopValue = _useState8[1];
|
|
4561
4720
|
var _useState9 = useState([]),
|
|
4562
|
-
|
|
4563
|
-
source =
|
|
4564
|
-
setSource =
|
|
4721
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4722
|
+
source = _useState10[0],
|
|
4723
|
+
setSource = _useState10[1];
|
|
4565
4724
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4566
4725
|
getData();
|
|
4567
4726
|
}, {
|
|
4568
4727
|
wait: 1000
|
|
4569
4728
|
}),
|
|
4570
4729
|
run = _useDebounceFn.run;
|
|
4571
|
-
var
|
|
4572
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4573
|
-
fetching = _useState10[0],
|
|
4574
|
-
setFetching = _useState10[1];
|
|
4575
|
-
var _useState11 = useState(''),
|
|
4730
|
+
var _useState11 = useState(false),
|
|
4576
4731
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
var _useState13 = useState(
|
|
4732
|
+
fetching = _useState12[0],
|
|
4733
|
+
setFetching = _useState12[1];
|
|
4734
|
+
var _useState13 = useState(''),
|
|
4580
4735
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4581
|
-
|
|
4582
|
-
|
|
4736
|
+
searchValue = _useState14[0],
|
|
4737
|
+
setSearchValue = _useState14[1];
|
|
4738
|
+
var _useState15 = useState(resultSourceKey),
|
|
4739
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4740
|
+
uniqueValue = _useState16[0],
|
|
4741
|
+
setUniqueValue = _useState16[1];
|
|
4583
4742
|
useEffect(function () {
|
|
4584
4743
|
setPopValue(value);
|
|
4585
4744
|
onValueChange(value);
|
|
@@ -4996,21 +5155,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4996
5155
|
notCommonProperty = _useState8[0],
|
|
4997
5156
|
setNotCommonProperty = _useState8[1];
|
|
4998
5157
|
var _useState9 = useState(false),
|
|
4999
|
-
|
|
5000
|
-
visible =
|
|
5001
|
-
setVisible =
|
|
5002
|
-
var
|
|
5003
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5004
|
-
showNotCommon = _useState10[0],
|
|
5005
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5006
|
-
var _useState11 = useState([]),
|
|
5158
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5159
|
+
visible = _useState10[0],
|
|
5160
|
+
setVisible = _useState10[1];
|
|
5161
|
+
var _useState11 = useState(false),
|
|
5007
5162
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
var _useState13 = useState(
|
|
5163
|
+
showNotCommon = _useState12[0],
|
|
5164
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5165
|
+
var _useState13 = useState([]),
|
|
5011
5166
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5012
|
-
|
|
5013
|
-
|
|
5167
|
+
classifyOptionList = _useState14[0],
|
|
5168
|
+
setClassifyOptionList = _useState14[1];
|
|
5169
|
+
var _useState15 = useState('1'),
|
|
5170
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5171
|
+
listKey = _useState16[0],
|
|
5172
|
+
setListKey = _useState16[1];
|
|
5014
5173
|
useEffect(function () {
|
|
5015
5174
|
requestUtil({
|
|
5016
5175
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5389,29 +5548,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5389
5548
|
scrollPage = _useState8[0],
|
|
5390
5549
|
setScrollPage = _useState8[1];
|
|
5391
5550
|
var _useState9 = useState(0),
|
|
5392
|
-
|
|
5393
|
-
itemsTotal =
|
|
5394
|
-
setItemsTotal =
|
|
5395
|
-
var
|
|
5396
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5397
|
-
fetching = _useState10[0],
|
|
5398
|
-
setFetching = _useState10[1];
|
|
5399
|
-
var _useState11 = useState(''),
|
|
5551
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5552
|
+
itemsTotal = _useState10[0],
|
|
5553
|
+
setItemsTotal = _useState10[1];
|
|
5554
|
+
var _useState11 = useState(false),
|
|
5400
5555
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
var _useState13 = useState(
|
|
5556
|
+
fetching = _useState12[0],
|
|
5557
|
+
setFetching = _useState12[1];
|
|
5558
|
+
var _useState13 = useState(''),
|
|
5404
5559
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
var _useState15 = useState(
|
|
5560
|
+
searchValue = _useState14[0],
|
|
5561
|
+
setSearchValue = _useState14[1];
|
|
5562
|
+
var _useState15 = useState(false),
|
|
5408
5563
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
var _useState17 = useState(
|
|
5564
|
+
isModalVisible = _useState16[0],
|
|
5565
|
+
setIsModalVisible = _useState16[1];
|
|
5566
|
+
var _useState17 = useState(initVal),
|
|
5412
5567
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5413
|
-
|
|
5414
|
-
|
|
5568
|
+
popvalue = _useState18[0],
|
|
5569
|
+
setPopValue = _useState18[1];
|
|
5570
|
+
var _useState19 = useState(resultSourceKey),
|
|
5571
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5572
|
+
uniqueValue = _useState20[0],
|
|
5573
|
+
setUniqueValue = _useState20[1];
|
|
5415
5574
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5416
5575
|
// 优化搜索参数 支持传多个
|
|
5417
5576
|
var searchParams = {};
|
|
@@ -5440,58 +5599,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5440
5599
|
var _Form$useForm = Form.useForm(),
|
|
5441
5600
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5442
5601
|
form = _Form$useForm2[0];
|
|
5443
|
-
var _useState19 = useState(true),
|
|
5444
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5445
|
-
collapsed = _useState20[0],
|
|
5446
|
-
setCollapsed = _useState20[1];
|
|
5447
5602
|
var _useState21 = useState(true),
|
|
5448
5603
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
var _useState23 = useState(
|
|
5604
|
+
collapsed = _useState22[0],
|
|
5605
|
+
setCollapsed = _useState22[1];
|
|
5606
|
+
var _useState23 = useState(true),
|
|
5452
5607
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
var _useState25 = useState(
|
|
5608
|
+
caretLeftFlag = _useState24[0],
|
|
5609
|
+
setCaretLeftFlag = _useState24[1];
|
|
5610
|
+
var _useState25 = useState([]),
|
|
5456
5611
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
var _useState27 = useState(
|
|
5612
|
+
tableData = _useState26[0],
|
|
5613
|
+
setTableData = _useState26[1];
|
|
5614
|
+
var _useState27 = useState(tableInitPagination),
|
|
5460
5615
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5461
|
-
|
|
5462
|
-
|
|
5616
|
+
tablePagination = _useState28[0],
|
|
5617
|
+
setTablePagination = _useState28[1];
|
|
5463
5618
|
var _useState29 = useState([]),
|
|
5464
5619
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
var _useState31 = useState(
|
|
5620
|
+
selectedRowKeys = _useState30[0],
|
|
5621
|
+
setSelectedRowKeys = _useState30[1];
|
|
5622
|
+
var _useState31 = useState([]),
|
|
5468
5623
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5469
|
-
|
|
5470
|
-
|
|
5624
|
+
selectedRows = _useState32[0],
|
|
5625
|
+
setSelectedRows = _useState32[1];
|
|
5471
5626
|
var _useState33 = useState(false),
|
|
5472
5627
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
var _useState35 = useState(
|
|
5628
|
+
checkedAll = _useState34[0],
|
|
5629
|
+
setCheckedAll = _useState34[1];
|
|
5630
|
+
var _useState35 = useState(false),
|
|
5476
5631
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
var _useState37 = useState(
|
|
5632
|
+
indeterminate = _useState36[0],
|
|
5633
|
+
setIndeterminate = _useState36[1];
|
|
5634
|
+
var _useState37 = useState({}),
|
|
5480
5635
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
var _useState39 = useState(
|
|
5636
|
+
tableFormParams = _useState38[0],
|
|
5637
|
+
setTableFormParams = _useState38[1];
|
|
5638
|
+
var _useState39 = useState(false),
|
|
5484
5639
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
var _useState41 = useState(
|
|
5640
|
+
tooltipVisible = _useState40[0],
|
|
5641
|
+
setTooltipVisible = _useState40[1];
|
|
5642
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5488
5643
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5489
|
-
|
|
5490
|
-
|
|
5644
|
+
tableShowColumns = _useState42[0],
|
|
5645
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5491
5646
|
var _useState43 = useState(false),
|
|
5492
5647
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5493
|
-
|
|
5494
|
-
|
|
5648
|
+
confirmLoading = _useState44[0],
|
|
5649
|
+
setConfirmLoading = _useState44[1];
|
|
5650
|
+
var _useState45 = useState(false),
|
|
5651
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5652
|
+
modalSearched = _useState46[0],
|
|
5653
|
+
setModalSearched = _useState46[1];
|
|
5495
5654
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5496
5655
|
setItems(list);
|
|
5497
5656
|
setItemsTotal(total);
|
|
@@ -5961,7 +6120,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5961
6120
|
})) || [];
|
|
5962
6121
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5963
6122
|
return searchList.map(function (i, index) {
|
|
5964
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6123
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5965
6124
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5966
6125
|
span: ColSpan,
|
|
5967
6126
|
key: i
|
|
@@ -6059,7 +6218,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6059
6218
|
disabled: setDisabled(i.name)
|
|
6060
6219
|
}))));
|
|
6061
6220
|
}
|
|
6062
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6221
|
+
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') {
|
|
6063
6222
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6064
6223
|
span: ColSpan,
|
|
6065
6224
|
key: i.name
|
|
@@ -6073,7 +6232,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6073
6232
|
}
|
|
6074
6233
|
})));
|
|
6075
6234
|
}
|
|
6076
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6235
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6077
6236
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6078
6237
|
span: ColSpan,
|
|
6079
6238
|
key: i.name
|
|
@@ -6083,8 +6242,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6083
6242
|
key: i.name
|
|
6084
6243
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6085
6244
|
}
|
|
6086
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6087
|
-
var _i$
|
|
6245
|
+
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') {
|
|
6246
|
+
var _i$field13;
|
|
6088
6247
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6089
6248
|
span: ColSpan,
|
|
6090
6249
|
key: i.name
|
|
@@ -6097,9 +6256,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6097
6256
|
width: '100%'
|
|
6098
6257
|
},
|
|
6099
6258
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6100
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6259
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6101
6260
|
}
|
|
6102
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6261
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6103
6262
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6104
6263
|
span: ColSpan,
|
|
6105
6264
|
key: i.name
|
|
@@ -6128,7 +6287,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6128
6287
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6129
6288
|
allowClear: true,
|
|
6130
6289
|
maxLength: 100
|
|
6131
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6290
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6132
6291
|
disabled: setDisabled(i.name)
|
|
6133
6292
|
}))));
|
|
6134
6293
|
});
|
|
@@ -7448,132 +7607,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7448
7607
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7449
7608
|
form = _Form$useForm2[0];
|
|
7450
7609
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7451
|
-
|
|
7452
|
-
tableSearchForm =
|
|
7453
|
-
setTableSearchForm =
|
|
7454
|
-
var
|
|
7455
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7456
|
-
caretLeftFlag = _useState10[0],
|
|
7457
|
-
setCaretLeftFlag = _useState10[1];
|
|
7458
|
-
var _useState11 = useState([]),
|
|
7610
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7611
|
+
tableSearchForm = _useState10[0],
|
|
7612
|
+
setTableSearchForm = _useState10[1];
|
|
7613
|
+
var _useState11 = useState(true),
|
|
7459
7614
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
var _useState13 = useState(
|
|
7615
|
+
caretLeftFlag = _useState12[0],
|
|
7616
|
+
setCaretLeftFlag = _useState12[1];
|
|
7617
|
+
var _useState13 = useState([]),
|
|
7618
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7619
|
+
tableData = _useState14[0],
|
|
7620
|
+
setTableData = _useState14[1];
|
|
7621
|
+
var _useState15 = useState(_objectSpread2({
|
|
7463
7622
|
total: 0,
|
|
7464
7623
|
size: "small",
|
|
7465
7624
|
current: 1,
|
|
7466
7625
|
pageSize: tableInitPageSize
|
|
7467
7626
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7468
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7469
|
-
tablePagination = _useState14[0],
|
|
7470
|
-
setTablePagination = _useState14[1];
|
|
7471
|
-
var _useState15 = useState([]),
|
|
7472
7627
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
var _useState17 = useState(
|
|
7628
|
+
tablePagination = _useState16[0],
|
|
7629
|
+
setTablePagination = _useState16[1];
|
|
7630
|
+
var _useState17 = useState([]),
|
|
7476
7631
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
var _useState19 = useState(
|
|
7632
|
+
selectedRowKeys = _useState18[0],
|
|
7633
|
+
setSelectedRowKeys = _useState18[1];
|
|
7634
|
+
var _useState19 = useState({}),
|
|
7480
7635
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7481
|
-
|
|
7482
|
-
|
|
7636
|
+
tableFormParams = _useState20[0],
|
|
7637
|
+
setTableFormParams = _useState20[1];
|
|
7483
7638
|
var _useState21 = useState(false),
|
|
7484
7639
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
var _useState23 = useState(
|
|
7640
|
+
confirmLoading = _useState22[0],
|
|
7641
|
+
setConfirmLoading = _useState22[1];
|
|
7642
|
+
var _useState23 = useState(false),
|
|
7488
7643
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7489
|
-
|
|
7490
|
-
|
|
7644
|
+
confirmContinueLoading = _useState24[0],
|
|
7645
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7491
7646
|
var _useState25 = useState([]),
|
|
7492
7647
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7493
|
-
|
|
7494
|
-
|
|
7648
|
+
selectColumns = _useState26[0],
|
|
7649
|
+
setSelectColumns = _useState26[1];
|
|
7495
7650
|
var _useState27 = useState([]),
|
|
7496
7651
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7497
|
-
|
|
7498
|
-
|
|
7652
|
+
showColumns = _useState28[0],
|
|
7653
|
+
setShowColumns = _useState28[1];
|
|
7499
7654
|
var _useState29 = useState([]),
|
|
7500
7655
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7501
|
-
|
|
7502
|
-
|
|
7656
|
+
tableColumns = _useState30[0],
|
|
7657
|
+
setTableColumns = _useState30[1];
|
|
7658
|
+
var _useState31 = useState([]),
|
|
7659
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7660
|
+
showToChooseColumns = _useState32[0],
|
|
7661
|
+
setShowToChooseColumns = _useState32[1];
|
|
7503
7662
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7504
7663
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7505
7664
|
// FIXME: 特殊业务逻辑
|
|
7506
7665
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7507
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7508
|
-
var result
|
|
7509
|
-
return
|
|
7510
|
-
while (1) switch (_context.
|
|
7666
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7667
|
+
var result;
|
|
7668
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7669
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7511
7670
|
case 0:
|
|
7512
7671
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7513
7672
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7514
7673
|
}))) {
|
|
7515
|
-
_context.
|
|
7674
|
+
_context.next = 3;
|
|
7516
7675
|
break;
|
|
7517
7676
|
}
|
|
7518
7677
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7519
|
-
return _context.
|
|
7520
|
-
case
|
|
7678
|
+
return _context.abrupt("return", false);
|
|
7679
|
+
case 3:
|
|
7521
7680
|
if (!(bType == 'spu')) {
|
|
7522
|
-
_context.
|
|
7681
|
+
_context.next = 26;
|
|
7523
7682
|
break;
|
|
7524
7683
|
}
|
|
7525
7684
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7526
7685
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7527
7686
|
}))) {
|
|
7528
|
-
_context.
|
|
7687
|
+
_context.next = 7;
|
|
7529
7688
|
break;
|
|
7530
7689
|
}
|
|
7531
7690
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7532
|
-
return _context.
|
|
7533
|
-
case
|
|
7691
|
+
return _context.abrupt("return", false);
|
|
7692
|
+
case 7:
|
|
7534
7693
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7535
|
-
_context.
|
|
7694
|
+
_context.next = 10;
|
|
7536
7695
|
break;
|
|
7537
7696
|
}
|
|
7538
7697
|
message$1.warning('请先选择颜色!');
|
|
7539
|
-
return _context.
|
|
7540
|
-
case
|
|
7698
|
+
return _context.abrupt("return", false);
|
|
7699
|
+
case 10:
|
|
7541
7700
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7542
7701
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7543
7702
|
}))) {
|
|
7544
|
-
_context.
|
|
7703
|
+
_context.next = 13;
|
|
7545
7704
|
break;
|
|
7546
7705
|
}
|
|
7547
7706
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7548
|
-
return _context.
|
|
7549
|
-
case
|
|
7707
|
+
return _context.abrupt("return", false);
|
|
7708
|
+
case 13:
|
|
7550
7709
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7551
|
-
_context.
|
|
7710
|
+
_context.next = 26;
|
|
7552
7711
|
break;
|
|
7553
7712
|
}
|
|
7554
7713
|
result = true;
|
|
7555
|
-
_context.
|
|
7556
|
-
_context.
|
|
7714
|
+
_context.prev = 15;
|
|
7715
|
+
_context.next = 18;
|
|
7557
7716
|
return checkSpuMatchCode({
|
|
7558
7717
|
skcCode: recordItem[recordKey],
|
|
7559
7718
|
matchingCode: changeValue,
|
|
7560
7719
|
ext1: recordItem.colorName
|
|
7561
7720
|
});
|
|
7562
|
-
case
|
|
7563
|
-
result = _context.
|
|
7721
|
+
case 18:
|
|
7722
|
+
result = _context.sent;
|
|
7564
7723
|
result = true;
|
|
7565
|
-
_context.
|
|
7724
|
+
_context.next = 25;
|
|
7566
7725
|
break;
|
|
7567
|
-
case
|
|
7568
|
-
_context.
|
|
7569
|
-
|
|
7570
|
-
result = typeof
|
|
7571
|
-
case
|
|
7572
|
-
return _context.
|
|
7573
|
-
case
|
|
7574
|
-
return _context.
|
|
7575
|
-
|
|
7576
|
-
|
|
7726
|
+
case 22:
|
|
7727
|
+
_context.prev = 22;
|
|
7728
|
+
_context.t0 = _context["catch"](15);
|
|
7729
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7730
|
+
case 25:
|
|
7731
|
+
return _context.abrupt("return", result);
|
|
7732
|
+
case 26:
|
|
7733
|
+
return _context.abrupt("return", true);
|
|
7734
|
+
case 27:
|
|
7735
|
+
case "end":
|
|
7736
|
+
return _context.stop();
|
|
7737
|
+
}
|
|
7738
|
+
}, _callee, null, [[15, 22]]);
|
|
7577
7739
|
}));
|
|
7578
7740
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7579
7741
|
return _ref2.apply(this, arguments);
|
|
@@ -7761,19 +7923,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7761
7923
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7762
7924
|
value: text || null,
|
|
7763
7925
|
onChange: function () {
|
|
7764
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7765
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7766
|
-
return
|
|
7767
|
-
while (1) switch (_context2.
|
|
7926
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7927
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7928
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7929
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7768
7930
|
case 0:
|
|
7769
7931
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7770
7932
|
return d[selectKey] == value;
|
|
7771
7933
|
})) || {};
|
|
7772
7934
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7773
|
-
_context2.
|
|
7935
|
+
_context2.next = 6;
|
|
7774
7936
|
break;
|
|
7775
7937
|
}
|
|
7776
|
-
_context2.
|
|
7938
|
+
_context2.next = 4;
|
|
7777
7939
|
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, {
|
|
7778
7940
|
record: record,
|
|
7779
7941
|
index: index,
|
|
@@ -7783,10 +7945,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7783
7945
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7784
7946
|
editRecord: editRecord
|
|
7785
7947
|
});
|
|
7786
|
-
case
|
|
7787
|
-
_context2.
|
|
7948
|
+
case 4:
|
|
7949
|
+
_context2.next = 25;
|
|
7788
7950
|
break;
|
|
7789
|
-
case
|
|
7951
|
+
case 6:
|
|
7790
7952
|
// 更新当前行数据函数
|
|
7791
7953
|
changeValue = function changeValue(v, dSSItem) {
|
|
7792
7954
|
var _item$dataSourceSelec;
|
|
@@ -7799,12 +7961,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7799
7961
|
}
|
|
7800
7962
|
}; // 处理校验,默认不校验
|
|
7801
7963
|
isCheckPass = true;
|
|
7802
|
-
_context2.
|
|
7964
|
+
_context2.prev = 8;
|
|
7803
7965
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7804
|
-
_context2.
|
|
7966
|
+
_context2.next = 15;
|
|
7805
7967
|
break;
|
|
7806
7968
|
}
|
|
7807
|
-
_context2.
|
|
7969
|
+
_context2.next = 12;
|
|
7808
7970
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7809
7971
|
record: record,
|
|
7810
7972
|
index: index,
|
|
@@ -7813,23 +7975,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7813
7975
|
changeValue: value,
|
|
7814
7976
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7815
7977
|
});
|
|
7816
|
-
case
|
|
7817
|
-
isCheckPass = _context2.
|
|
7818
|
-
_context2.
|
|
7978
|
+
case 12:
|
|
7979
|
+
isCheckPass = _context2.sent;
|
|
7980
|
+
_context2.next = 19;
|
|
7819
7981
|
break;
|
|
7820
|
-
case
|
|
7821
|
-
_context2.
|
|
7982
|
+
case 15:
|
|
7983
|
+
_context2.next = 17;
|
|
7822
7984
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7823
|
-
case
|
|
7824
|
-
isConformToTheRules = _context2.
|
|
7985
|
+
case 17:
|
|
7986
|
+
isConformToTheRules = _context2.sent;
|
|
7825
7987
|
isCheckPass = !isConformToTheRules;
|
|
7826
|
-
case
|
|
7827
|
-
_context2.
|
|
7988
|
+
case 19:
|
|
7989
|
+
_context2.next = 23;
|
|
7828
7990
|
break;
|
|
7829
|
-
case
|
|
7830
|
-
_context2.
|
|
7831
|
-
|
|
7832
|
-
case
|
|
7991
|
+
case 21:
|
|
7992
|
+
_context2.prev = 21;
|
|
7993
|
+
_context2.t0 = _context2["catch"](8);
|
|
7994
|
+
case 23:
|
|
7833
7995
|
if (isCheckPass) {
|
|
7834
7996
|
changeValue(value, dataSourceSelectItem);
|
|
7835
7997
|
} else {
|
|
@@ -7837,10 +7999,11 @@ var AddSelect = function AddSelect(props) {
|
|
|
7837
7999
|
}
|
|
7838
8000
|
// 更新已选表格函数
|
|
7839
8001
|
editRecord(record);
|
|
7840
|
-
case
|
|
7841
|
-
|
|
8002
|
+
case 25:
|
|
8003
|
+
case "end":
|
|
8004
|
+
return _context2.stop();
|
|
7842
8005
|
}
|
|
7843
|
-
}, _callee2, null, [[
|
|
8006
|
+
}, _callee2, null, [[8, 21]]);
|
|
7844
8007
|
}));
|
|
7845
8008
|
function onChange(_x7) {
|
|
7846
8009
|
return _onChange.apply(this, arguments);
|
|
@@ -9231,29 +9394,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9231
9394
|
dataIndex: 'propertyNameAndValue'
|
|
9232
9395
|
}];
|
|
9233
9396
|
var _useState9 = useState(false),
|
|
9234
|
-
|
|
9235
|
-
isModalVisible =
|
|
9236
|
-
setIsModalVisible =
|
|
9237
|
-
var
|
|
9397
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9398
|
+
isModalVisible = _useState10[0],
|
|
9399
|
+
setIsModalVisible = _useState10[1];
|
|
9400
|
+
var _useState11 = useState([{
|
|
9238
9401
|
hovered: false
|
|
9239
9402
|
}]),
|
|
9240
|
-
|
|
9241
|
-
data =
|
|
9242
|
-
setData =
|
|
9403
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9404
|
+
data = _useState12[0],
|
|
9405
|
+
setData = _useState12[1];
|
|
9243
9406
|
var tableRef = useRef(null);
|
|
9244
9407
|
var codeSelected = tableCode;
|
|
9245
|
-
var
|
|
9246
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9247
|
-
loading = _useState12[0],
|
|
9248
|
-
setLoading = _useState12[1];
|
|
9249
|
-
var _useState13 = useState([]),
|
|
9408
|
+
var _useState13 = useState(false),
|
|
9250
9409
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9251
|
-
|
|
9252
|
-
|
|
9410
|
+
loading = _useState14[0],
|
|
9411
|
+
setLoading = _useState14[1];
|
|
9253
9412
|
var _useState15 = useState([]),
|
|
9254
9413
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9255
|
-
|
|
9256
|
-
|
|
9414
|
+
selectColumns = _useState16[0],
|
|
9415
|
+
setSelectColumns = _useState16[1];
|
|
9416
|
+
var _useState17 = useState([]),
|
|
9417
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9418
|
+
showColumns = _useState18[0],
|
|
9419
|
+
setShowColumns = _useState18[1];
|
|
9257
9420
|
useEffect(function () {
|
|
9258
9421
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9259
9422
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9369,42 +9532,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9369
9532
|
});
|
|
9370
9533
|
};
|
|
9371
9534
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9372
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9535
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9373
9536
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9374
|
-
return
|
|
9375
|
-
while (1) switch (_context.
|
|
9537
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9538
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9376
9539
|
case 0:
|
|
9377
9540
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9378
|
-
_context.
|
|
9541
|
+
_context.next = 3;
|
|
9379
9542
|
break;
|
|
9380
9543
|
}
|
|
9381
9544
|
message$1.warning('至少录入一条数据');
|
|
9382
|
-
return _context.
|
|
9383
|
-
case
|
|
9545
|
+
return _context.abrupt("return");
|
|
9546
|
+
case 3:
|
|
9384
9547
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9385
9548
|
return d.skuCode && d.name;
|
|
9386
9549
|
})) {
|
|
9387
|
-
_context.
|
|
9550
|
+
_context.next = 6;
|
|
9388
9551
|
break;
|
|
9389
9552
|
}
|
|
9390
9553
|
message$1.warning('录入商品不存在');
|
|
9391
|
-
return _context.
|
|
9392
|
-
case
|
|
9554
|
+
return _context.abrupt("return");
|
|
9555
|
+
case 6:
|
|
9393
9556
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9394
9557
|
return d.count;
|
|
9395
9558
|
})) {
|
|
9396
|
-
_context.
|
|
9559
|
+
_context.next = 9;
|
|
9397
9560
|
break;
|
|
9398
9561
|
}
|
|
9399
9562
|
message$1.warning('请填写商品数量!');
|
|
9400
|
-
return _context.
|
|
9401
|
-
case
|
|
9402
|
-
_context.
|
|
9563
|
+
return _context.abrupt("return");
|
|
9564
|
+
case 9:
|
|
9565
|
+
_context.next = 11;
|
|
9403
9566
|
return isSkuCanEntry(data);
|
|
9404
|
-
case
|
|
9405
|
-
canEntryObject = _context.
|
|
9567
|
+
case 11:
|
|
9568
|
+
canEntryObject = _context.sent;
|
|
9406
9569
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9407
|
-
_context.
|
|
9570
|
+
_context.next = 16;
|
|
9408
9571
|
break;
|
|
9409
9572
|
}
|
|
9410
9573
|
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) {
|
|
@@ -9414,8 +9577,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9414
9577
|
content: messageInfo,
|
|
9415
9578
|
duration: 6
|
|
9416
9579
|
});
|
|
9417
|
-
return _context.
|
|
9418
|
-
case
|
|
9580
|
+
return _context.abrupt("return");
|
|
9581
|
+
case 16:
|
|
9419
9582
|
setLoading(true);
|
|
9420
9583
|
onSaveCallback(data).then(function (res) {
|
|
9421
9584
|
{
|
|
@@ -9433,8 +9596,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9433
9596
|
message$1.error(Error);
|
|
9434
9597
|
setLoading(false);
|
|
9435
9598
|
});
|
|
9436
|
-
case
|
|
9437
|
-
|
|
9599
|
+
case 18:
|
|
9600
|
+
case "end":
|
|
9601
|
+
return _context.stop();
|
|
9438
9602
|
}
|
|
9439
9603
|
}, _callee);
|
|
9440
9604
|
}));
|
|
@@ -11010,6 +11174,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11010
11174
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11011
11175
|
sourceName: 'warehouseIds'
|
|
11012
11176
|
}, requestConfigProp);
|
|
11177
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11178
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11179
|
+
extralHeaders: extralHeaders
|
|
11180
|
+
});
|
|
11181
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11182
|
+
'qp-status-eq': 10,
|
|
11183
|
+
'qp-isMain-eq': 1,
|
|
11184
|
+
'qp-type-in': '1,2'
|
|
11185
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11186
|
+
'qp-status-eq': 1
|
|
11187
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11188
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11189
|
+
return data['parentCode'] === '0';
|
|
11190
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11191
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11192
|
+
return data['parent'] === '0';
|
|
11193
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11194
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11195
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11196
|
+
});
|
|
11013
11197
|
tableSearchForm = [{
|
|
11014
11198
|
name: 'realWarehouseName*multiInput',
|
|
11015
11199
|
label: '逻辑仓名称',
|
|
@@ -11033,6 +11217,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11033
11217
|
},
|
|
11034
11218
|
label: '管理大区',
|
|
11035
11219
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11220
|
+
}, {
|
|
11221
|
+
name: 'qp-channelCode-in',
|
|
11222
|
+
type: 'treeSelect',
|
|
11223
|
+
label: '销售渠道',
|
|
11224
|
+
field: {
|
|
11225
|
+
type: 'treeSelect',
|
|
11226
|
+
props: {
|
|
11227
|
+
multiple: true,
|
|
11228
|
+
treeData: [],
|
|
11229
|
+
treeCheckable: false,
|
|
11230
|
+
notFoundContent: '暂无数据',
|
|
11231
|
+
allowClear: true,
|
|
11232
|
+
showSearch: true,
|
|
11233
|
+
showArrow: true,
|
|
11234
|
+
maxTagCount: 1,
|
|
11235
|
+
optionFilterProp: 'children',
|
|
11236
|
+
filterOption: function filterOption(input, option) {
|
|
11237
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11238
|
+
},
|
|
11239
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11240
|
+
}
|
|
11241
|
+
}
|
|
11242
|
+
}, {
|
|
11243
|
+
name: 'qp-refCode-in',
|
|
11244
|
+
type: 'treeSelect',
|
|
11245
|
+
label: '营销区域',
|
|
11246
|
+
field: {
|
|
11247
|
+
type: 'treeSelect',
|
|
11248
|
+
props: {
|
|
11249
|
+
multiple: true,
|
|
11250
|
+
treeData: [],
|
|
11251
|
+
treeCheckable: false,
|
|
11252
|
+
notFoundContent: '暂无数据',
|
|
11253
|
+
allowClear: true,
|
|
11254
|
+
showSearch: true,
|
|
11255
|
+
showArrow: true,
|
|
11256
|
+
maxTagCount: 1,
|
|
11257
|
+
optionFilterProp: 'children',
|
|
11258
|
+
filterOption: function filterOption(input, option) {
|
|
11259
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11260
|
+
},
|
|
11261
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11262
|
+
}
|
|
11263
|
+
}
|
|
11264
|
+
}, {
|
|
11265
|
+
name: 'qp-type-in',
|
|
11266
|
+
type: 'select',
|
|
11267
|
+
label: '店铺性质',
|
|
11268
|
+
field: {
|
|
11269
|
+
type: 'select',
|
|
11270
|
+
props: {
|
|
11271
|
+
mode: 'multiple',
|
|
11272
|
+
notFoundContent: '暂无数据',
|
|
11273
|
+
allowClear: true,
|
|
11274
|
+
showSearch: true,
|
|
11275
|
+
showArrow: true,
|
|
11276
|
+
maxTagCount: 1,
|
|
11277
|
+
optionFilterProp: 'children',
|
|
11278
|
+
filterOption: function filterOption(input, option) {
|
|
11279
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11280
|
+
}
|
|
11281
|
+
}
|
|
11282
|
+
},
|
|
11283
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11036
11284
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11037
11285
|
name: 'qp-isEnable-eq',
|
|
11038
11286
|
type: 'select',
|
|
@@ -11061,10 +11309,28 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11061
11309
|
render: function render(text) {
|
|
11062
11310
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11063
11311
|
}
|
|
11312
|
+
}, {
|
|
11313
|
+
title: '所属销售渠道',
|
|
11314
|
+
dataIndex: 'channelName',
|
|
11315
|
+
defaultSort: 4,
|
|
11316
|
+
width: 100
|
|
11317
|
+
}, {
|
|
11318
|
+
title: '营销区域',
|
|
11319
|
+
dataIndex: 'commonRelationAreaName',
|
|
11320
|
+
defaultSort: 5,
|
|
11321
|
+
width: 100
|
|
11322
|
+
}, {
|
|
11323
|
+
title: '店铺性质',
|
|
11324
|
+
dataIndex: 'type',
|
|
11325
|
+
defaultSort: 6,
|
|
11326
|
+
render: function render(text) {
|
|
11327
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11328
|
+
},
|
|
11329
|
+
width: 80
|
|
11064
11330
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11065
11331
|
title: '状态',
|
|
11066
11332
|
dataIndex: 'isEnable',
|
|
11067
|
-
defaultSort:
|
|
11333
|
+
defaultSort: 7,
|
|
11068
11334
|
render: function render(text) {
|
|
11069
11335
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11070
11336
|
}
|
|
@@ -11130,13 +11396,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11130
11396
|
label: '运营仓状态',
|
|
11131
11397
|
initialSource: getDictionarySource$1('SC00001')
|
|
11132
11398
|
}] : []));
|
|
11133
|
-
var
|
|
11399
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11134
11400
|
querySelectHeadersList: querySelectHeadersList,
|
|
11135
11401
|
extralHeaders: extralHeaders
|
|
11136
11402
|
});
|
|
11137
11403
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11138
11404
|
'qp-status-eq': 1
|
|
11139
|
-
}, getQueryHeadersItem(
|
|
11405
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
|
|
11140
11406
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11141
11407
|
});
|
|
11142
11408
|
modalTableProps = _objectSpread2({
|
|
@@ -11314,7 +11580,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11314
11580
|
label: '共享类型',
|
|
11315
11581
|
initialSource: sharingTypeDataList
|
|
11316
11582
|
}];
|
|
11317
|
-
var
|
|
11583
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11318
11584
|
querySelectHeadersList: querySelectHeadersList,
|
|
11319
11585
|
extralHeaders: extralHeaders
|
|
11320
11586
|
});
|
|
@@ -11322,14 +11588,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11322
11588
|
pageSize: 5000,
|
|
11323
11589
|
currentPage: 1,
|
|
11324
11590
|
'qp-companyType-eq': '30'
|
|
11325
|
-
}, getQueryHeadersItem(
|
|
11591
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11326
11592
|
pageSize: 5000,
|
|
11327
11593
|
currentPage: 1
|
|
11328
|
-
}, getQueryHeadersItem(
|
|
11594
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11329
11595
|
pageSize: 5000,
|
|
11330
11596
|
currentPage: 1,
|
|
11331
11597
|
'qp-companyType-eq': '20'
|
|
11332
|
-
}, getQueryHeadersItem(
|
|
11598
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11333
11599
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11334
11600
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11335
11601
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11442,11 +11708,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11442
11708
|
}
|
|
11443
11709
|
}
|
|
11444
11710
|
}];
|
|
11445
|
-
var
|
|
11711
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11446
11712
|
querySelectHeadersList: querySelectHeadersList,
|
|
11447
11713
|
extralHeaders: extralHeaders
|
|
11448
11714
|
});
|
|
11449
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11715
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
|
|
11450
11716
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11451
11717
|
var allList = firstElement && [firstElement, firstElement];
|
|
11452
11718
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -11608,7 +11874,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11608
11874
|
}
|
|
11609
11875
|
}
|
|
11610
11876
|
}];
|
|
11611
|
-
var
|
|
11877
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11612
11878
|
querySelectHeadersList: querySelectHeadersList,
|
|
11613
11879
|
extralHeaders: extralHeaders
|
|
11614
11880
|
});
|
|
@@ -11616,21 +11882,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11616
11882
|
pageSize: 5000,
|
|
11617
11883
|
currentPage: 1,
|
|
11618
11884
|
'qp-companyType-eq': '30'
|
|
11619
|
-
}, getQueryHeadersItem(
|
|
11885
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11620
11886
|
pageSize: 5000,
|
|
11621
11887
|
currentPage: 1,
|
|
11622
11888
|
'qp-companyType-eq': '20'
|
|
11623
|
-
}, getQueryHeadersItem(
|
|
11889
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11624
11890
|
// pageSize: 5000,
|
|
11625
11891
|
// currentPage: 1,
|
|
11626
11892
|
'qp-status-eq': '1'
|
|
11627
|
-
}, getQueryHeadersItem(
|
|
11893
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11628
11894
|
pageSize: 5000,
|
|
11629
11895
|
currentPage: 1
|
|
11630
|
-
}, getQueryHeadersItem(
|
|
11896
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11631
11897
|
pageSize: 5000,
|
|
11632
11898
|
currentPage: 1
|
|
11633
|
-
}, getQueryHeadersItem(
|
|
11899
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11634
11900
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11635
11901
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11636
11902
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11800,7 +12066,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11800
12066
|
},
|
|
11801
12067
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11802
12068
|
}];
|
|
11803
|
-
var
|
|
12069
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11804
12070
|
querySelectHeadersList: querySelectHeadersList,
|
|
11805
12071
|
extralHeaders: extralHeaders
|
|
11806
12072
|
});
|
|
@@ -11808,13 +12074,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11808
12074
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11809
12075
|
'qp-realOrg-eq': true,
|
|
11810
12076
|
'qp-status-eq': 10
|
|
11811
|
-
}, getQueryHeadersItem(
|
|
12077
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11812
12078
|
'qp-status-eq': 10,
|
|
11813
12079
|
'qp-isMain-eq': 1,
|
|
11814
12080
|
'qp-type-in': '1,2'
|
|
11815
|
-
}, getQueryHeadersItem(
|
|
12081
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11816
12082
|
'qp-status-eq': 1
|
|
11817
|
-
}, getQueryHeadersItem(
|
|
12083
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11818
12084
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11819
12085
|
return data['parentCode'] === '0';
|
|
11820
12086
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12052,7 +12318,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12052
12318
|
name: 'qp-officeTelephone-like',
|
|
12053
12319
|
label: '手机号'
|
|
12054
12320
|
}];
|
|
12055
|
-
var
|
|
12321
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12056
12322
|
querySelectHeadersList: querySelectHeadersList,
|
|
12057
12323
|
extralHeaders: extralHeaders
|
|
12058
12324
|
});
|
|
@@ -12060,7 +12326,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12060
12326
|
pageSize: 5000,
|
|
12061
12327
|
currentPage: 1,
|
|
12062
12328
|
'qp-companyType-eq': 20
|
|
12063
|
-
}, getQueryHeadersItem(
|
|
12329
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12064
12330
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12065
12331
|
});
|
|
12066
12332
|
modalTableProps = _objectSpread2({
|
|
@@ -12169,13 +12435,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12169
12435
|
name: 'qp-officeTelephone-like',
|
|
12170
12436
|
label: '手机号'
|
|
12171
12437
|
}]);
|
|
12172
|
-
var
|
|
12438
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12173
12439
|
querySelectHeadersList: querySelectHeadersList,
|
|
12174
12440
|
extralHeaders: extralHeaders
|
|
12175
12441
|
});
|
|
12176
12442
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12177
12443
|
'orgViewCode': 'administrative-organization-view'
|
|
12178
|
-
}, getQueryHeadersItem(
|
|
12444
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12179
12445
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12180
12446
|
});
|
|
12181
12447
|
modalTableProps = _objectSpread2({
|
|
@@ -12322,17 +12588,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12322
12588
|
name: 'qp-remark-like',
|
|
12323
12589
|
label: '备注'
|
|
12324
12590
|
}];
|
|
12325
|
-
var
|
|
12591
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12326
12592
|
querySelectHeadersList: querySelectHeadersList,
|
|
12327
12593
|
extralHeaders: extralHeaders
|
|
12328
12594
|
});
|
|
12329
12595
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12330
12596
|
pageSize: 5000,
|
|
12331
12597
|
currentPage: 1
|
|
12332
|
-
}, getQueryHeadersItem(
|
|
12598
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12333
12599
|
pageSize: 5000,
|
|
12334
12600
|
currentPage: 1
|
|
12335
|
-
}, getQueryHeadersItem(
|
|
12601
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12336
12602
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12337
12603
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12338
12604
|
});
|
|
@@ -12502,14 +12768,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12502
12768
|
}
|
|
12503
12769
|
}
|
|
12504
12770
|
}];
|
|
12505
|
-
var
|
|
12771
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12506
12772
|
querySelectHeadersList: querySelectHeadersList,
|
|
12507
12773
|
extralHeaders: extralHeaders
|
|
12508
12774
|
});
|
|
12509
12775
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12510
12776
|
pageSize: 5000,
|
|
12511
12777
|
currentPage: 1
|
|
12512
|
-
}, getQueryHeadersItem(
|
|
12778
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12513
12779
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12514
12780
|
});
|
|
12515
12781
|
modalTableProps = _objectSpread2({
|
|
@@ -12606,7 +12872,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12606
12872
|
}
|
|
12607
12873
|
}
|
|
12608
12874
|
}];
|
|
12609
|
-
var
|
|
12875
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12610
12876
|
querySelectHeadersList: querySelectHeadersList,
|
|
12611
12877
|
extralHeaders: extralHeaders
|
|
12612
12878
|
});
|
|
@@ -12614,7 +12880,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12614
12880
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12615
12881
|
'qp-realOrg-eq': true,
|
|
12616
12882
|
'qp-status-eq': 10
|
|
12617
|
-
}, getQueryHeadersItem(
|
|
12883
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12618
12884
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12619
12885
|
});
|
|
12620
12886
|
modalTableProps = _objectSpread2({
|
|
@@ -12720,13 +12986,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12720
12986
|
},
|
|
12721
12987
|
initialSource: nodeType
|
|
12722
12988
|
}];
|
|
12723
|
-
var
|
|
12989
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12724
12990
|
querySelectHeadersList: querySelectHeadersList,
|
|
12725
12991
|
extralHeaders: extralHeaders
|
|
12726
12992
|
});
|
|
12727
12993
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12728
12994
|
'qp-status-eq': 10
|
|
12729
|
-
}, getQueryHeadersItem(
|
|
12995
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12730
12996
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12731
12997
|
});
|
|
12732
12998
|
modalTableProps = _objectSpread2({
|
|
@@ -13052,13 +13318,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13052
13318
|
},
|
|
13053
13319
|
initialSource: nodeType
|
|
13054
13320
|
}];
|
|
13055
|
-
var
|
|
13321
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13056
13322
|
querySelectHeadersList: querySelectHeadersList,
|
|
13057
13323
|
extralHeaders: extralHeaders
|
|
13058
13324
|
});
|
|
13059
13325
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13060
13326
|
'qp-status-eq': 10
|
|
13061
|
-
}, getQueryHeadersItem(
|
|
13327
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13062
13328
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13063
13329
|
});
|
|
13064
13330
|
modalTableProps = _objectSpread2({
|
|
@@ -14003,9 +14269,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14003
14269
|
value = _useState8[0],
|
|
14004
14270
|
setValue = _useState8[1];
|
|
14005
14271
|
var _useState9 = useState([]),
|
|
14006
|
-
|
|
14007
|
-
propertyList =
|
|
14008
|
-
setPropertyList =
|
|
14272
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14273
|
+
propertyList = _useState10[0],
|
|
14274
|
+
setPropertyList = _useState10[1];
|
|
14009
14275
|
useEffect(function () {
|
|
14010
14276
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14011
14277
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14529,45 +14795,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14529
14795
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14530
14796
|
headers: headers
|
|
14531
14797
|
}).then(/*#__PURE__*/function () {
|
|
14532
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
14798
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14533
14799
|
var _ctx$form;
|
|
14534
14800
|
var resData, coverData, data, dataList;
|
|
14535
|
-
return
|
|
14536
|
-
while (1) switch (_context.
|
|
14801
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14802
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14537
14803
|
case 0:
|
|
14538
14804
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14539
14805
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14540
|
-
_context.
|
|
14806
|
+
_context.next = 13;
|
|
14541
14807
|
break;
|
|
14542
14808
|
}
|
|
14543
14809
|
data = resData.data;
|
|
14544
14810
|
if (!remoteSource.converter) {
|
|
14545
|
-
_context.
|
|
14811
|
+
_context.next = 9;
|
|
14546
14812
|
break;
|
|
14547
14813
|
}
|
|
14548
|
-
_context.
|
|
14814
|
+
_context.next = 6;
|
|
14549
14815
|
return remoteSource.converter({
|
|
14550
14816
|
data: [data]
|
|
14551
14817
|
});
|
|
14552
|
-
case
|
|
14553
|
-
coverData = _context.
|
|
14554
|
-
_context.
|
|
14818
|
+
case 6:
|
|
14819
|
+
coverData = _context.sent;
|
|
14820
|
+
_context.next = 11;
|
|
14555
14821
|
break;
|
|
14556
|
-
case
|
|
14822
|
+
case 9:
|
|
14557
14823
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14558
14824
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14559
14825
|
return _mapSearchTree(ites);
|
|
14560
14826
|
}) || [];
|
|
14561
|
-
case
|
|
14562
|
-
_context.
|
|
14827
|
+
case 11:
|
|
14828
|
+
_context.next = 14;
|
|
14563
14829
|
break;
|
|
14564
|
-
case
|
|
14830
|
+
case 13:
|
|
14565
14831
|
coverData = [];
|
|
14566
|
-
case
|
|
14832
|
+
case 14:
|
|
14567
14833
|
setTreeData(coverData);
|
|
14568
14834
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14569
|
-
case
|
|
14570
|
-
|
|
14835
|
+
case 16:
|
|
14836
|
+
case "end":
|
|
14837
|
+
return _context.stop();
|
|
14571
14838
|
}
|
|
14572
14839
|
}, _callee);
|
|
14573
14840
|
}));
|
|
@@ -18869,38 +19136,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18869
19136
|
};
|
|
18870
19137
|
var refs = useRef(null);
|
|
18871
19138
|
var _useState9 = useState(''),
|
|
18872
|
-
|
|
18873
|
-
pagePath =
|
|
18874
|
-
setPagePath =
|
|
19139
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19140
|
+
pagePath = _useState10[0],
|
|
19141
|
+
setPagePath = _useState10[1];
|
|
18875
19142
|
var _useLocation = useLocation(),
|
|
18876
19143
|
pathname = _useLocation.pathname,
|
|
18877
19144
|
_useLocation$state = _useLocation.state,
|
|
18878
19145
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18879
|
-
var
|
|
18880
|
-
|
|
18881
|
-
isFullScreen =
|
|
18882
|
-
setIsFnllScreen =
|
|
19146
|
+
var _useState11 = useState(false),
|
|
19147
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19148
|
+
isFullScreen = _useState12[0],
|
|
19149
|
+
setIsFnllScreen = _useState12[1];
|
|
18883
19150
|
// @ts-nocheck
|
|
18884
19151
|
var value = props;
|
|
18885
19152
|
var _props$fields = props.fields,
|
|
18886
19153
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18887
|
-
var
|
|
18888
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
18889
|
-
showColumn = _useState12[0],
|
|
18890
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
18891
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18892
|
-
var _useState13 = useState(originSearchFields),
|
|
19154
|
+
var _useState13 = useState([]),
|
|
18893
19155
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
var
|
|
19156
|
+
showColumn = _useState14[0],
|
|
19157
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19158
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19159
|
+
var _useState15 = useState(originSearchFields),
|
|
18897
19160
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
var _useState17 = useState(
|
|
19161
|
+
showSearchFields = _useState16[0],
|
|
19162
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19163
|
+
var _useState17 = useState([]),
|
|
18901
19164
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18902
|
-
|
|
18903
|
-
|
|
19165
|
+
showExportColumn = _useState18[0],
|
|
19166
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19167
|
+
var _useState19 = useState(''),
|
|
19168
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19169
|
+
height = _useState20[0],
|
|
19170
|
+
setHeight = _useState20[1];
|
|
18904
19171
|
var sortTableRef = useRef(null);
|
|
18905
19172
|
var searchTableRef = useRef(null);
|
|
18906
19173
|
var exportTableRef = useRef(null);
|
|
@@ -19948,19 +20215,22 @@ function outLogin(_x) {
|
|
|
19948
20215
|
return _outLogin.apply(this, arguments);
|
|
19949
20216
|
}
|
|
19950
20217
|
function _outLogin() {
|
|
19951
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20218
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19952
20219
|
var res;
|
|
19953
|
-
return
|
|
19954
|
-
while (1) switch (_context.
|
|
20220
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20221
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19955
20222
|
case 0:
|
|
19956
|
-
_context.
|
|
20223
|
+
_context.next = 2;
|
|
19957
20224
|
return requestUtil({
|
|
19958
20225
|
url: '/user/web/loginOut',
|
|
19959
20226
|
method: 'GET'
|
|
19960
20227
|
});
|
|
19961
|
-
case
|
|
19962
|
-
res = _context.
|
|
19963
|
-
return _context.
|
|
20228
|
+
case 2:
|
|
20229
|
+
res = _context.sent;
|
|
20230
|
+
return _context.abrupt("return", res);
|
|
20231
|
+
case 4:
|
|
20232
|
+
case "end":
|
|
20233
|
+
return _context.stop();
|
|
19964
20234
|
}
|
|
19965
20235
|
}, _callee);
|
|
19966
20236
|
}));
|
|
@@ -20087,20 +20357,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20087
20357
|
});
|
|
20088
20358
|
};
|
|
20089
20359
|
var loginOut = /*#__PURE__*/function () {
|
|
20090
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20360
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20091
20361
|
var sessionId;
|
|
20092
|
-
return
|
|
20093
|
-
while (1) switch (_context.
|
|
20362
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20363
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20094
20364
|
case 0:
|
|
20095
|
-
_context.
|
|
20365
|
+
_context.next = 2;
|
|
20096
20366
|
return getSessionId();
|
|
20097
|
-
case
|
|
20098
|
-
sessionId = _context.
|
|
20099
|
-
_context.
|
|
20367
|
+
case 2:
|
|
20368
|
+
sessionId = _context.sent;
|
|
20369
|
+
_context.next = 5;
|
|
20100
20370
|
return outLogin({
|
|
20101
20371
|
sessionId: sessionId
|
|
20102
20372
|
});
|
|
20103
|
-
case
|
|
20373
|
+
case 5:
|
|
20104
20374
|
// @ts-ignore
|
|
20105
20375
|
if (BUILD_TYPE) {
|
|
20106
20376
|
message$1.success('退出登录成功');
|
|
@@ -20110,8 +20380,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20110
20380
|
} else {
|
|
20111
20381
|
setLoginOutPath();
|
|
20112
20382
|
}
|
|
20113
|
-
case
|
|
20114
|
-
|
|
20383
|
+
case 6:
|
|
20384
|
+
case "end":
|
|
20385
|
+
return _context.stop();
|
|
20115
20386
|
}
|
|
20116
20387
|
}, _callee);
|
|
20117
20388
|
}));
|
|
@@ -20198,15 +20469,18 @@ function getStoreByName(_x) {
|
|
|
20198
20469
|
return _getStoreByName.apply(this, arguments);
|
|
20199
20470
|
}
|
|
20200
20471
|
function _getStoreByName() {
|
|
20201
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20202
|
-
return
|
|
20203
|
-
while (1) switch (_context.
|
|
20472
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20473
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20474
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20204
20475
|
case 0:
|
|
20205
|
-
return _context.
|
|
20476
|
+
return _context.abrupt("return", requestUtil({
|
|
20206
20477
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20207
20478
|
method: 'GET',
|
|
20208
20479
|
params: _objectSpread2({}, params)
|
|
20209
20480
|
}));
|
|
20481
|
+
case 1:
|
|
20482
|
+
case "end":
|
|
20483
|
+
return _context.stop();
|
|
20210
20484
|
}
|
|
20211
20485
|
}, _callee);
|
|
20212
20486
|
}));
|
|
@@ -20241,33 +20515,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20241
20515
|
openSelect = _useState8[0],
|
|
20242
20516
|
setOpenSelect = _useState8[1];
|
|
20243
20517
|
var _useState9 = useState([]),
|
|
20244
|
-
|
|
20245
|
-
options =
|
|
20246
|
-
setOptions =
|
|
20247
|
-
var
|
|
20248
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20249
|
-
rescouse = _useState10[0],
|
|
20250
|
-
setRescouse = _useState10[1];
|
|
20251
|
-
var _useState11 = useState(''),
|
|
20518
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20519
|
+
options = _useState10[0],
|
|
20520
|
+
setOptions = _useState10[1];
|
|
20521
|
+
var _useState11 = useState([]),
|
|
20252
20522
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
var _useState13 = useState(
|
|
20523
|
+
rescouse = _useState12[0],
|
|
20524
|
+
setRescouse = _useState12[1];
|
|
20525
|
+
var _useState13 = useState(''),
|
|
20526
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20527
|
+
searchValue = _useState14[0],
|
|
20528
|
+
setSearchValue = _useState14[1];
|
|
20529
|
+
var _useState15 = useState([{
|
|
20256
20530
|
label: name,
|
|
20257
20531
|
value: code
|
|
20258
20532
|
}]),
|
|
20259
|
-
|
|
20260
|
-
store =
|
|
20261
|
-
setStore =
|
|
20533
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
20534
|
+
store = _useState16[0],
|
|
20535
|
+
setStore = _useState16[1];
|
|
20262
20536
|
function fetchUserList(_x, _x2) {
|
|
20263
20537
|
return _fetchUserList.apply(this, arguments);
|
|
20264
20538
|
}
|
|
20265
20539
|
function _fetchUserList() {
|
|
20266
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20267
|
-
return
|
|
20268
|
-
while (1) switch (_context3.
|
|
20540
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
20541
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20542
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20269
20543
|
case 0:
|
|
20270
|
-
return _context3.
|
|
20544
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20271
20545
|
orgName: storeName ? storeName : undefined,
|
|
20272
20546
|
platCompanyCode: init ? undefined : key,
|
|
20273
20547
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20286,6 +20560,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20286
20560
|
};
|
|
20287
20561
|
});
|
|
20288
20562
|
}));
|
|
20563
|
+
case 1:
|
|
20564
|
+
case "end":
|
|
20565
|
+
return _context3.stop();
|
|
20289
20566
|
}
|
|
20290
20567
|
}, _callee3);
|
|
20291
20568
|
}));
|
|
@@ -20308,19 +20585,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20308
20585
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20309
20586
|
}, [debounceTimeout, key]);
|
|
20310
20587
|
var changeInput = /*#__PURE__*/function () {
|
|
20311
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20588
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20312
20589
|
var res;
|
|
20313
|
-
return
|
|
20314
|
-
while (1) switch (_context.
|
|
20590
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20591
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20315
20592
|
case 0:
|
|
20316
|
-
_context.
|
|
20593
|
+
_context.next = 2;
|
|
20317
20594
|
return debounceFetcher(str);
|
|
20318
|
-
case
|
|
20319
|
-
res = _context.
|
|
20595
|
+
case 2:
|
|
20596
|
+
res = _context.sent;
|
|
20320
20597
|
setOptions(res);
|
|
20321
20598
|
setRescouse(res);
|
|
20322
|
-
case
|
|
20323
|
-
|
|
20599
|
+
case 5:
|
|
20600
|
+
case "end":
|
|
20601
|
+
return _context.stop();
|
|
20324
20602
|
}
|
|
20325
20603
|
}, _callee);
|
|
20326
20604
|
}));
|
|
@@ -20329,15 +20607,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20329
20607
|
};
|
|
20330
20608
|
}();
|
|
20331
20609
|
useEffect(function () {
|
|
20332
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20610
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20333
20611
|
var res;
|
|
20334
|
-
return
|
|
20335
|
-
while (1) switch (_context2.
|
|
20612
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20613
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20336
20614
|
case 0:
|
|
20337
|
-
_context2.
|
|
20615
|
+
_context2.next = 2;
|
|
20338
20616
|
return fetchUserList(undefined, true);
|
|
20339
|
-
case
|
|
20340
|
-
res = _context2.
|
|
20617
|
+
case 2:
|
|
20618
|
+
res = _context2.sent;
|
|
20341
20619
|
res.map(function (item, indexNumber) {
|
|
20342
20620
|
if (item.label === name) {
|
|
20343
20621
|
setIndex(indexNumber);
|
|
@@ -20353,8 +20631,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20353
20631
|
});
|
|
20354
20632
|
setOptions(res);
|
|
20355
20633
|
setRescouse(res);
|
|
20356
|
-
case
|
|
20357
|
-
|
|
20634
|
+
case 6:
|
|
20635
|
+
case "end":
|
|
20636
|
+
return _context2.stop();
|
|
20358
20637
|
}
|
|
20359
20638
|
}, _callee2);
|
|
20360
20639
|
}))();
|
|
@@ -21403,25 +21682,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21403
21682
|
currentOneLevel = _useState8[0],
|
|
21404
21683
|
setCurrentOneLevel = _useState8[1];
|
|
21405
21684
|
var _useState9 = useState([]),
|
|
21406
|
-
|
|
21407
|
-
SearhData =
|
|
21408
|
-
setSearchMenuData =
|
|
21409
|
-
var
|
|
21410
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21411
|
-
rightMenuHeight = _useState10[0],
|
|
21412
|
-
setHeight = _useState10[1];
|
|
21413
|
-
var _useState11 = useState(900),
|
|
21685
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21686
|
+
SearhData = _useState10[0],
|
|
21687
|
+
setSearchMenuData = _useState10[1];
|
|
21688
|
+
var _useState11 = useState(600),
|
|
21414
21689
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
var _useState13 = useState(
|
|
21690
|
+
rightMenuHeight = _useState12[0],
|
|
21691
|
+
setHeight = _useState12[1];
|
|
21692
|
+
var _useState13 = useState(900),
|
|
21418
21693
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21419
|
-
|
|
21420
|
-
|
|
21694
|
+
drawHeight = _useState14[0],
|
|
21695
|
+
setDrawHeight = _useState14[1];
|
|
21421
21696
|
var _useState15 = useState(false),
|
|
21422
21697
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21423
|
-
|
|
21424
|
-
|
|
21698
|
+
moreBtnShow = _useState16[0],
|
|
21699
|
+
setMoreBtnShow = _useState16[1];
|
|
21700
|
+
var _useState17 = useState(false),
|
|
21701
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
21702
|
+
showScroll = _useState18[0],
|
|
21703
|
+
setShowScroll = _useState18[1];
|
|
21425
21704
|
useEffect(function () {
|
|
21426
21705
|
var _originRoutes$find;
|
|
21427
21706
|
getMenuContentHeight();
|
|
@@ -23032,11 +23311,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23032
23311
|
},
|
|
23033
23312
|
menu: {
|
|
23034
23313
|
request: function () {
|
|
23035
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23036
|
-
return
|
|
23037
|
-
while (1) switch (_context.
|
|
23314
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23315
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23316
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23038
23317
|
case 0:
|
|
23039
|
-
return _context.
|
|
23318
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23319
|
+
case 1:
|
|
23320
|
+
case "end":
|
|
23321
|
+
return _context.stop();
|
|
23040
23322
|
}
|
|
23041
23323
|
}, _callee);
|
|
23042
23324
|
}));
|
|
@@ -23441,31 +23723,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23441
23723
|
multiTableData = _useState8[0],
|
|
23442
23724
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23443
23725
|
var _useState9 = useState(10),
|
|
23444
|
-
|
|
23445
|
-
viewCount =
|
|
23446
|
-
setViewCount =
|
|
23726
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
23727
|
+
viewCount = _useState10[0],
|
|
23728
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
23447
23729
|
var itemWidth = 100; // 表格每一项宽度
|
|
23448
|
-
var
|
|
23449
|
-
|
|
23450
|
-
realColHeaderWidth =
|
|
23451
|
-
setLeftWidth =
|
|
23730
|
+
var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
23731
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
23732
|
+
realColHeaderWidth = _useState12[0],
|
|
23733
|
+
setLeftWidth = _useState12[1];
|
|
23452
23734
|
var viewPort = useRef(null);
|
|
23453
23735
|
var topScrollBar = useRef(null);
|
|
23454
23736
|
var leftTableRef = useRef(null);
|
|
23455
23737
|
//起始渲染item
|
|
23456
|
-
var
|
|
23457
|
-
|
|
23458
|
-
startIndex =
|
|
23459
|
-
setStartIndex =
|
|
23738
|
+
var _useState13 = useState(0),
|
|
23739
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
23740
|
+
startIndex = _useState14[0],
|
|
23741
|
+
setStartIndex = _useState14[1];
|
|
23460
23742
|
//结束渲染item
|
|
23461
23743
|
var endIndex = useMemo(function () {
|
|
23462
23744
|
return startIndex + viewCount;
|
|
23463
23745
|
}, [startIndex, viewCount]);
|
|
23464
23746
|
//表格偏移量
|
|
23465
|
-
var
|
|
23466
|
-
|
|
23467
|
-
offsetWidth =
|
|
23468
|
-
setOffset =
|
|
23747
|
+
var _useState15 = useState(0),
|
|
23748
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
23749
|
+
offsetWidth = _useState16[0],
|
|
23750
|
+
setOffset = _useState16[1];
|
|
23469
23751
|
useEffect(function () {
|
|
23470
23752
|
setTimeout(function () {
|
|
23471
23753
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30769,11 +31051,11 @@ var valueType = {
|
|
|
30769
31051
|
};
|
|
30770
31052
|
|
|
30771
31053
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30772
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30773
|
-
return
|
|
30774
|
-
while (1) switch (_context.
|
|
31054
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31055
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31056
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30775
31057
|
case 0:
|
|
30776
|
-
_context.
|
|
31058
|
+
_context.next = 2;
|
|
30777
31059
|
return request$2({
|
|
30778
31060
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30779
31061
|
converter: function converter(_ref2) {
|
|
@@ -30786,8 +31068,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30786
31068
|
});
|
|
30787
31069
|
}
|
|
30788
31070
|
});
|
|
30789
|
-
case
|
|
30790
|
-
return _context.
|
|
31071
|
+
case 2:
|
|
31072
|
+
return _context.abrupt("return", _context.sent);
|
|
31073
|
+
case 3:
|
|
31074
|
+
case "end":
|
|
31075
|
+
return _context.stop();
|
|
30791
31076
|
}
|
|
30792
31077
|
}, _callee);
|
|
30793
31078
|
}));
|
|
@@ -30834,12 +31119,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30834
31119
|
value: false
|
|
30835
31120
|
}];
|
|
30836
31121
|
var ref = useRef();
|
|
30837
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30838
|
-
var _ref$current, source
|
|
30839
|
-
return
|
|
30840
|
-
while (1) switch (_context.
|
|
31122
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31123
|
+
var _ref$current, source;
|
|
31124
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31125
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30841
31126
|
case 0:
|
|
30842
|
-
_context.
|
|
31127
|
+
_context.next = 2;
|
|
30843
31128
|
return setIsShowAndType(function (prev) {
|
|
30844
31129
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30845
31130
|
return {
|
|
@@ -30850,39 +31135,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30850
31135
|
}
|
|
30851
31136
|
return prev;
|
|
30852
31137
|
});
|
|
30853
|
-
case
|
|
31138
|
+
case 2:
|
|
30854
31139
|
if (!record.dictionaryCode) {
|
|
30855
|
-
_context.
|
|
31140
|
+
_context.next = 17;
|
|
30856
31141
|
break;
|
|
30857
31142
|
}
|
|
30858
31143
|
if (!(record.choiceType == 20)) {
|
|
30859
|
-
_context.
|
|
31144
|
+
_context.next = 7;
|
|
30860
31145
|
break;
|
|
30861
31146
|
}
|
|
30862
|
-
|
|
30863
|
-
_context.
|
|
31147
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31148
|
+
_context.next = 15;
|
|
30864
31149
|
break;
|
|
30865
|
-
case
|
|
31150
|
+
case 7:
|
|
30866
31151
|
if (!(record.choiceType == 30)) {
|
|
30867
|
-
_context.
|
|
31152
|
+
_context.next = 13;
|
|
30868
31153
|
break;
|
|
30869
31154
|
}
|
|
30870
|
-
_context.
|
|
31155
|
+
_context.next = 10;
|
|
30871
31156
|
return getDynamicDict(record.dictionaryCode);
|
|
30872
|
-
case
|
|
30873
|
-
|
|
30874
|
-
_context.
|
|
31157
|
+
case 10:
|
|
31158
|
+
_context.t1 = _context.sent;
|
|
31159
|
+
_context.next = 14;
|
|
30875
31160
|
break;
|
|
30876
|
-
case
|
|
30877
|
-
|
|
30878
|
-
case
|
|
30879
|
-
|
|
30880
|
-
case
|
|
30881
|
-
source =
|
|
31161
|
+
case 13:
|
|
31162
|
+
_context.t1 = [];
|
|
31163
|
+
case 14:
|
|
31164
|
+
_context.t0 = _context.t1;
|
|
31165
|
+
case 15:
|
|
31166
|
+
source = _context.t0;
|
|
30882
31167
|
// @ts-ignore
|
|
30883
31168
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30884
|
-
case
|
|
30885
|
-
|
|
31169
|
+
case 17:
|
|
31170
|
+
case "end":
|
|
31171
|
+
return _context.stop();
|
|
30886
31172
|
}
|
|
30887
31173
|
}, _callee);
|
|
30888
31174
|
})));
|
|
@@ -30947,10 +31233,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30947
31233
|
source: {
|
|
30948
31234
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30949
31235
|
type: function () {
|
|
30950
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31236
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30951
31237
|
var form, values, name, relates, source;
|
|
30952
|
-
return
|
|
30953
|
-
while (1) switch (_context2.
|
|
31238
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31239
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30954
31240
|
case 0:
|
|
30955
31241
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30956
31242
|
if (values[0]) {
|
|
@@ -30959,18 +31245,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30959
31245
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30960
31246
|
}
|
|
30961
31247
|
if (!values[1]) {
|
|
30962
|
-
_context2.
|
|
31248
|
+
_context2.next = 9;
|
|
30963
31249
|
break;
|
|
30964
31250
|
}
|
|
30965
|
-
_context2.
|
|
31251
|
+
_context2.next = 5;
|
|
30966
31252
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30967
|
-
case
|
|
30968
|
-
source = _context2.
|
|
31253
|
+
case 5:
|
|
31254
|
+
source = _context2.sent;
|
|
30969
31255
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30970
31256
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30971
31257
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30972
|
-
case
|
|
30973
|
-
|
|
31258
|
+
case 9:
|
|
31259
|
+
case "end":
|
|
31260
|
+
return _context2.stop();
|
|
30974
31261
|
}
|
|
30975
31262
|
}, _callee2);
|
|
30976
31263
|
}));
|
|
@@ -31426,25 +31713,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31426
31713
|
source: {
|
|
31427
31714
|
relates: ['choiceType', 'inputType'],
|
|
31428
31715
|
type: function () {
|
|
31429
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31716
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
31430
31717
|
var values, name, form, source;
|
|
31431
|
-
return
|
|
31432
|
-
while (1) switch (_context3.
|
|
31718
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31719
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31433
31720
|
case 0:
|
|
31434
|
-
values =
|
|
31721
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
31435
31722
|
if (values[1] === 40) {
|
|
31436
31723
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31437
31724
|
form.setFieldVisible(name, false);
|
|
31438
31725
|
}
|
|
31439
31726
|
if (!(values[0] === 30)) {
|
|
31440
|
-
_context3.
|
|
31727
|
+
_context3.next = 10;
|
|
31441
31728
|
break;
|
|
31442
31729
|
}
|
|
31443
|
-
_context3.
|
|
31730
|
+
_context3.next = 5;
|
|
31444
31731
|
return request$2({
|
|
31445
31732
|
url: '/basic/dictDynamicItem/queryList',
|
|
31446
|
-
converter: function converter(
|
|
31447
|
-
var data =
|
|
31733
|
+
converter: function converter(_ref11) {
|
|
31734
|
+
var data = _ref11.data;
|
|
31448
31735
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31449
31736
|
return {
|
|
31450
31737
|
text: d.dictCode,
|
|
@@ -31453,16 +31740,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31453
31740
|
});
|
|
31454
31741
|
}
|
|
31455
31742
|
});
|
|
31456
|
-
case
|
|
31457
|
-
source = _context3.
|
|
31743
|
+
case 5:
|
|
31744
|
+
source = _context3.sent;
|
|
31458
31745
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31459
31746
|
form.setFieldVisible(name, true);
|
|
31460
|
-
_context3.
|
|
31747
|
+
_context3.next = 11;
|
|
31461
31748
|
break;
|
|
31462
|
-
case
|
|
31749
|
+
case 10:
|
|
31463
31750
|
form.setFieldVisible(name, false);
|
|
31464
|
-
case
|
|
31465
|
-
|
|
31751
|
+
case 11:
|
|
31752
|
+
case "end":
|
|
31753
|
+
return _context3.stop();
|
|
31466
31754
|
}
|
|
31467
31755
|
}, _callee3);
|
|
31468
31756
|
}));
|
|
@@ -31477,8 +31765,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31477
31765
|
name: 'enumeration',
|
|
31478
31766
|
label: '维护自定义选项',
|
|
31479
31767
|
field: {
|
|
31480
|
-
type: function type(
|
|
31481
|
-
var form =
|
|
31768
|
+
type: function type(_ref12) {
|
|
31769
|
+
var form = _ref12.form;
|
|
31482
31770
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31483
31771
|
type: 'link',
|
|
31484
31772
|
onClick: function onClick() {
|
|
@@ -31504,10 +31792,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31504
31792
|
dependency: {
|
|
31505
31793
|
source: {
|
|
31506
31794
|
relates: ['choiceType'],
|
|
31507
|
-
type: function type(
|
|
31508
|
-
var values =
|
|
31509
|
-
name =
|
|
31510
|
-
form =
|
|
31795
|
+
type: function type(_ref13) {
|
|
31796
|
+
var values = _ref13.values,
|
|
31797
|
+
name = _ref13.name,
|
|
31798
|
+
form = _ref13.form;
|
|
31511
31799
|
if (values[0] === 10) {
|
|
31512
31800
|
form.setFieldVisible(name, true);
|
|
31513
31801
|
} else {
|
|
@@ -31523,10 +31811,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31523
31811
|
dependency: {
|
|
31524
31812
|
visible: {
|
|
31525
31813
|
relates: ['choiceType'],
|
|
31526
|
-
type: function type(
|
|
31527
|
-
var name =
|
|
31528
|
-
values =
|
|
31529
|
-
form =
|
|
31814
|
+
type: function type(_ref14) {
|
|
31815
|
+
var name = _ref14.name,
|
|
31816
|
+
values = _ref14.values,
|
|
31817
|
+
form = _ref14.form;
|
|
31530
31818
|
if (values[0] == 330) {
|
|
31531
31819
|
form.setFieldVisible(name, true);
|
|
31532
31820
|
} else {
|
|
@@ -31550,8 +31838,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31550
31838
|
params: {
|
|
31551
31839
|
'qp-businessType-eq': record.businessType
|
|
31552
31840
|
},
|
|
31553
|
-
converter: function converter(
|
|
31554
|
-
var data =
|
|
31841
|
+
converter: function converter(_ref15) {
|
|
31842
|
+
var data = _ref15.data;
|
|
31555
31843
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31556
31844
|
return {
|
|
31557
31845
|
text: d.name,
|
|
@@ -31591,8 +31879,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31591
31879
|
'qp-businessType-eq': record.businessType,
|
|
31592
31880
|
'qp-status-eq': 1
|
|
31593
31881
|
},
|
|
31594
|
-
converter: function converter(
|
|
31595
|
-
var data =
|
|
31882
|
+
converter: function converter(_ref16) {
|
|
31883
|
+
var data = _ref16.data;
|
|
31596
31884
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31597
31885
|
var _d$code;
|
|
31598
31886
|
return {
|
|
@@ -31620,8 +31908,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31620
31908
|
remoteSource: {
|
|
31621
31909
|
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),
|
|
31622
31910
|
method: 'get',
|
|
31623
|
-
converter: function converter(
|
|
31624
|
-
var data =
|
|
31911
|
+
converter: function converter(_ref17) {
|
|
31912
|
+
var data = _ref17.data;
|
|
31625
31913
|
if (lineDetail.moduleType == 1) {
|
|
31626
31914
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31627
31915
|
return {
|
|
@@ -31647,16 +31935,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31647
31935
|
width: 900,
|
|
31648
31936
|
maskClosable: false,
|
|
31649
31937
|
onOk: function () {
|
|
31650
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
31938
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31651
31939
|
var _ref$current4, _res$editableStatus;
|
|
31652
31940
|
var res, _res$defaultValue;
|
|
31653
|
-
return
|
|
31654
|
-
while (1) switch (_context4.
|
|
31941
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
31942
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31655
31943
|
case 0:
|
|
31656
|
-
_context4.
|
|
31944
|
+
_context4.next = 2;
|
|
31657
31945
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31658
|
-
case
|
|
31659
|
-
res = _context4.
|
|
31946
|
+
case 2:
|
|
31947
|
+
res = _context4.sent;
|
|
31660
31948
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31661
31949
|
res.fieldGroup = record.fieldGroup;
|
|
31662
31950
|
res.businessType = record.businessType;
|
|
@@ -31683,7 +31971,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31683
31971
|
delete res.formula;
|
|
31684
31972
|
delete res.showValue;
|
|
31685
31973
|
if (!(mode === 'create')) {
|
|
31686
|
-
_context4.
|
|
31974
|
+
_context4.next = 18;
|
|
31687
31975
|
break;
|
|
31688
31976
|
}
|
|
31689
31977
|
request$2({
|
|
@@ -31695,8 +31983,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31695
31983
|
onParentOk();
|
|
31696
31984
|
}
|
|
31697
31985
|
});
|
|
31698
|
-
return _context4.
|
|
31699
|
-
case
|
|
31986
|
+
return _context4.abrupt("return");
|
|
31987
|
+
case 18:
|
|
31700
31988
|
request$2({
|
|
31701
31989
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31702
31990
|
method: 'PATCH',
|
|
@@ -31706,8 +31994,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31706
31994
|
onParentOk();
|
|
31707
31995
|
}
|
|
31708
31996
|
});
|
|
31709
|
-
case
|
|
31710
|
-
|
|
31997
|
+
case 19:
|
|
31998
|
+
case "end":
|
|
31999
|
+
return _context4.stop();
|
|
31711
32000
|
}
|
|
31712
32001
|
}, _callee4);
|
|
31713
32002
|
}));
|
|
@@ -32163,21 +32452,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32163
32452
|
jsonEditorVal = _useState8[0],
|
|
32164
32453
|
setJsonEditorVal = _useState8[1];
|
|
32165
32454
|
var _useState9 = useState({}),
|
|
32166
|
-
|
|
32167
|
-
moduleParams =
|
|
32168
|
-
setModuleParams =
|
|
32169
|
-
var
|
|
32170
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32171
|
-
activeKey = _useState10[0],
|
|
32172
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32173
|
-
var _useState11 = useState({}),
|
|
32455
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
32456
|
+
moduleParams = _useState10[0],
|
|
32457
|
+
setModuleParams = _useState10[1];
|
|
32458
|
+
var _useState11 = useState('main'),
|
|
32174
32459
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
var _useState13 = useState(
|
|
32460
|
+
activeKey = _useState12[0],
|
|
32461
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
32462
|
+
var _useState13 = useState({}),
|
|
32178
32463
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32179
|
-
|
|
32180
|
-
|
|
32464
|
+
tablesConfigParams = _useState14[0],
|
|
32465
|
+
setTablesConfigParams = _useState14[1];
|
|
32466
|
+
var _useState15 = useState([]),
|
|
32467
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
32468
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
32469
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32181
32470
|
useEffect(function () {
|
|
32182
32471
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32183
32472
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32553,11 +32842,11 @@ function getMetaData(_x) {
|
|
|
32553
32842
|
|
|
32554
32843
|
// 获取数据
|
|
32555
32844
|
function _getMetaData() {
|
|
32556
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32557
|
-
return
|
|
32558
|
-
while (1) switch (_context.
|
|
32845
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
32846
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32847
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32559
32848
|
case 0:
|
|
32560
|
-
return _context.
|
|
32849
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
32561
32850
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32562
32851
|
params: {
|
|
32563
32852
|
'qp-entityId-eq': id
|
|
@@ -32569,6 +32858,9 @@ function _getMetaData() {
|
|
|
32569
32858
|
reject([]);
|
|
32570
32859
|
});
|
|
32571
32860
|
}));
|
|
32861
|
+
case 1:
|
|
32862
|
+
case "end":
|
|
32863
|
+
return _context.stop();
|
|
32572
32864
|
}
|
|
32573
32865
|
}, _callee);
|
|
32574
32866
|
}));
|
|
@@ -32772,11 +33064,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32772
33064
|
tableState = _useState4[0],
|
|
32773
33065
|
setTableState = _useState4[1];
|
|
32774
33066
|
var handleOpen = /*#__PURE__*/function () {
|
|
32775
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33067
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32776
33068
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32777
33069
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32778
|
-
return
|
|
32779
|
-
while (1) switch (_context.
|
|
33070
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33071
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32780
33072
|
case 0:
|
|
32781
33073
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32782
33074
|
isSearchForm: props.isSearchForm,
|
|
@@ -32784,16 +33076,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32784
33076
|
searchFormData: searchFormData
|
|
32785
33077
|
});
|
|
32786
33078
|
if (requestConfigNew) {
|
|
32787
|
-
_context.
|
|
33079
|
+
_context.next = 3;
|
|
32788
33080
|
break;
|
|
32789
33081
|
}
|
|
32790
|
-
return _context.
|
|
32791
|
-
case
|
|
33082
|
+
return _context.abrupt("return");
|
|
33083
|
+
case 3:
|
|
32792
33084
|
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;
|
|
32793
|
-
_context.
|
|
33085
|
+
_context.next = 6;
|
|
32794
33086
|
return getMetaData(metaDataId);
|
|
32795
|
-
case
|
|
32796
|
-
metaData = _context.
|
|
33087
|
+
case 6:
|
|
33088
|
+
metaData = _context.sent;
|
|
32797
33089
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32798
33090
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32799
33091
|
})) || [];
|
|
@@ -32833,8 +33125,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32833
33125
|
// @ts-ignore
|
|
32834
33126
|
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);
|
|
32835
33127
|
}
|
|
32836
|
-
case
|
|
32837
|
-
|
|
33128
|
+
case 14:
|
|
33129
|
+
case "end":
|
|
33130
|
+
return _context.stop();
|
|
32838
33131
|
}
|
|
32839
33132
|
}, _callee);
|
|
32840
33133
|
}));
|
|
@@ -32937,7 +33230,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32937
33230
|
}, [requestConfig, tableState.columns]);
|
|
32938
33231
|
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';
|
|
32939
33232
|
var handleOk = function handleOk(rowData) {
|
|
32940
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33233
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
32941
33234
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
32942
33235
|
//多选数据处理
|
|
32943
33236
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -32948,9 +33241,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32948
33241
|
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()) || [];
|
|
32949
33242
|
var realSelectedRows = selectedRows;
|
|
32950
33243
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
32951
|
-
var _queryTableRef$
|
|
33244
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
32952
33245
|
// @ts-ignore
|
|
32953
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33246
|
+
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()) || [];
|
|
32954
33247
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
32955
33248
|
return selectedKesys.includes(s[rowKey]);
|
|
32956
33249
|
});
|
|
@@ -32983,10 +33276,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32983
33276
|
});
|
|
32984
33277
|
}
|
|
32985
33278
|
mappings.map(function (item) {
|
|
32986
|
-
var _props$
|
|
32987
|
-
if (((_props$
|
|
32988
|
-
var _props$
|
|
32989
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33279
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
33280
|
+
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]) {
|
|
33281
|
+
var _props$customSelector14, _props$customSelector15;
|
|
33282
|
+
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];
|
|
32990
33283
|
}
|
|
32991
33284
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
32992
33285
|
});
|
|
@@ -33041,10 +33334,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33041
33334
|
}
|
|
33042
33335
|
props.onCancel();
|
|
33043
33336
|
//@ts-ignore
|
|
33044
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33337
|
+
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();
|
|
33045
33338
|
};
|
|
33046
33339
|
var config = useMemo(function () {
|
|
33047
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33340
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33048
33341
|
var returnConfig = {
|
|
33049
33342
|
size: 'small',
|
|
33050
33343
|
needPageHeader: false,
|
|
@@ -33053,7 +33346,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33053
33346
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33054
33347
|
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) {
|
|
33055
33348
|
return v.key || v;
|
|
33056
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33349
|
+
})) || (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))
|
|
33057
33350
|
} : false,
|
|
33058
33351
|
remoteDataSource: remoteDataSource,
|
|
33059
33352
|
fields: tableState.fields,
|
|
@@ -33061,8 +33354,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33061
33354
|
rowKey: rowKey,
|
|
33062
33355
|
tableProps: !isView && {
|
|
33063
33356
|
rowClassName: function rowClassName(record) {
|
|
33064
|
-
var _props$
|
|
33065
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33357
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
33358
|
+
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' : '';
|
|
33066
33359
|
},
|
|
33067
33360
|
onRow: function onRow(record) {
|
|
33068
33361
|
return {
|
|
@@ -33107,10 +33400,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33107
33400
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33108
33401
|
type: "default",
|
|
33109
33402
|
onClick: function onClick() {
|
|
33110
|
-
var _queryTableRef$
|
|
33403
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33111
33404
|
props.onCancel();
|
|
33112
33405
|
//@ts-ignore
|
|
33113
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33406
|
+
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();
|
|
33114
33407
|
}
|
|
33115
33408
|
}, "\u53D6\u6D88"))));
|
|
33116
33409
|
});
|
|
@@ -33334,19 +33627,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33334
33627
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33335
33628
|
handSource = _useState2[0],
|
|
33336
33629
|
setHandSource = _useState2[1];
|
|
33337
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33630
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33338
33631
|
var resData, data;
|
|
33339
|
-
return
|
|
33340
|
-
while (1) switch (_context.
|
|
33632
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33633
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33341
33634
|
case 0:
|
|
33342
33635
|
if (!(!source && initRequestSource)) {
|
|
33343
|
-
_context.
|
|
33636
|
+
_context.next = 6;
|
|
33344
33637
|
break;
|
|
33345
33638
|
}
|
|
33346
|
-
_context.
|
|
33639
|
+
_context.next = 3;
|
|
33347
33640
|
return initRequestSource();
|
|
33348
|
-
case
|
|
33349
|
-
resData = _context.
|
|
33641
|
+
case 3:
|
|
33642
|
+
resData = _context.sent;
|
|
33350
33643
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33351
33644
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33352
33645
|
label: item.text,
|
|
@@ -33354,8 +33647,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33354
33647
|
});
|
|
33355
33648
|
})) || [];
|
|
33356
33649
|
setHandSource(data);
|
|
33357
|
-
case
|
|
33358
|
-
|
|
33650
|
+
case 6:
|
|
33651
|
+
case "end":
|
|
33652
|
+
return _context.stop();
|
|
33359
33653
|
}
|
|
33360
33654
|
}, _callee);
|
|
33361
33655
|
})), []);
|
|
@@ -33485,17 +33779,20 @@ function getRegularThresholdRange(_x) {
|
|
|
33485
33779
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33486
33780
|
}
|
|
33487
33781
|
function _getRegularThresholdRange() {
|
|
33488
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33489
|
-
return
|
|
33490
|
-
while (1) switch (_context.
|
|
33782
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
33783
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33784
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33491
33785
|
case 0:
|
|
33492
|
-
return _context.
|
|
33786
|
+
return _context.abrupt("return", requestUtil({
|
|
33493
33787
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33494
33788
|
method: 'POST',
|
|
33495
33789
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33496
33790
|
queryIdentify: undefined
|
|
33497
33791
|
})
|
|
33498
33792
|
}));
|
|
33793
|
+
case 1:
|
|
33794
|
+
case "end":
|
|
33795
|
+
return _context.stop();
|
|
33499
33796
|
}
|
|
33500
33797
|
}, _callee);
|
|
33501
33798
|
}));
|
|
@@ -33636,24 +33933,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33636
33933
|
};
|
|
33637
33934
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33638
33935
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33639
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33936
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33640
33937
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33641
|
-
return
|
|
33642
|
-
while (1) switch (_context.
|
|
33938
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33939
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33643
33940
|
case 0:
|
|
33644
33941
|
if (queryIdentify) {
|
|
33645
|
-
_context.
|
|
33942
|
+
_context.next = 2;
|
|
33646
33943
|
break;
|
|
33647
33944
|
}
|
|
33648
|
-
return _context.
|
|
33649
|
-
case
|
|
33945
|
+
return _context.abrupt("return");
|
|
33946
|
+
case 2:
|
|
33650
33947
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33651
33948
|
extraRequestUrl = '';
|
|
33652
33949
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33653
33950
|
if (!queryIdentityInfo.find(function (item) {
|
|
33654
33951
|
return item.identity == propertyCode;
|
|
33655
33952
|
})) {
|
|
33656
|
-
_context.
|
|
33953
|
+
_context.next = 10;
|
|
33657
33954
|
break;
|
|
33658
33955
|
}
|
|
33659
33956
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33667,15 +33964,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33667
33964
|
if (!needQueryList.some(function (item) {
|
|
33668
33965
|
return !querParams[item] || !querParams[item].length;
|
|
33669
33966
|
})) {
|
|
33670
|
-
_context.
|
|
33967
|
+
_context.next = 9;
|
|
33671
33968
|
break;
|
|
33672
33969
|
}
|
|
33673
|
-
return _context.
|
|
33674
|
-
case
|
|
33970
|
+
return _context.abrupt("return");
|
|
33971
|
+
case 9:
|
|
33675
33972
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33676
33973
|
return item.identity == propertyCode;
|
|
33677
33974
|
}).requestUrl || '';
|
|
33678
|
-
case
|
|
33975
|
+
case 10:
|
|
33679
33976
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33680
33977
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33681
33978
|
querParams = {
|
|
@@ -33686,7 +33983,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33686
33983
|
// querParams = { dictCode: queryIdentify }
|
|
33687
33984
|
}
|
|
33688
33985
|
if (!extraRequestUrl) {
|
|
33689
|
-
_context.
|
|
33986
|
+
_context.next = 16;
|
|
33690
33987
|
break;
|
|
33691
33988
|
}
|
|
33692
33989
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33725,42 +34022,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33725
34022
|
return handleData;
|
|
33726
34023
|
}
|
|
33727
34024
|
});
|
|
33728
|
-
_context.
|
|
34025
|
+
_context.next = 29;
|
|
33729
34026
|
break;
|
|
33730
|
-
case
|
|
34027
|
+
case 16:
|
|
33731
34028
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33732
|
-
_context.
|
|
34029
|
+
_context.next = 20;
|
|
33733
34030
|
break;
|
|
33734
34031
|
}
|
|
33735
34032
|
_this.setState({
|
|
33736
34033
|
thresholdList: queryIdentify
|
|
33737
34034
|
});
|
|
33738
|
-
_context.
|
|
34035
|
+
_context.next = 29;
|
|
33739
34036
|
break;
|
|
33740
|
-
case
|
|
34037
|
+
case 20:
|
|
33741
34038
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33742
|
-
_context.
|
|
34039
|
+
_context.next = 24;
|
|
33743
34040
|
break;
|
|
33744
34041
|
}
|
|
33745
34042
|
// TODO待处理
|
|
33746
34043
|
_this.setState({
|
|
33747
34044
|
thresholdList: []
|
|
33748
34045
|
});
|
|
33749
|
-
_context.
|
|
34046
|
+
_context.next = 29;
|
|
33750
34047
|
break;
|
|
33751
|
-
case
|
|
34048
|
+
case 24:
|
|
33752
34049
|
querParams.queryIdentify = queryIdentify;
|
|
33753
|
-
_context.
|
|
34050
|
+
_context.next = 27;
|
|
33754
34051
|
return getRegularThresholdRange(querParams);
|
|
33755
|
-
case
|
|
33756
|
-
res = _context.
|
|
34052
|
+
case 27:
|
|
34053
|
+
res = _context.sent;
|
|
33757
34054
|
if (handleError(res)) {
|
|
33758
34055
|
_this.setState({
|
|
33759
34056
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33760
34057
|
});
|
|
33761
34058
|
}
|
|
33762
|
-
case
|
|
33763
|
-
|
|
34059
|
+
case 29:
|
|
34060
|
+
case "end":
|
|
34061
|
+
return _context.stop();
|
|
33764
34062
|
}
|
|
33765
34063
|
}, _callee);
|
|
33766
34064
|
}));
|
|
@@ -34592,11 +34890,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34592
34890
|
isAll: true,
|
|
34593
34891
|
needNameAndCode: true,
|
|
34594
34892
|
notChangeOnSelect: true,
|
|
34595
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34596
|
-
return
|
|
34597
|
-
while (1) switch (_context2.
|
|
34893
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34894
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34895
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34598
34896
|
case 0:
|
|
34599
|
-
_context2.
|
|
34897
|
+
_context2.next = 2;
|
|
34600
34898
|
return request$2({
|
|
34601
34899
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34602
34900
|
method: 'get',
|
|
@@ -34613,8 +34911,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34613
34911
|
return handleData;
|
|
34614
34912
|
}
|
|
34615
34913
|
});
|
|
34616
|
-
case
|
|
34617
|
-
return _context2.
|
|
34914
|
+
case 2:
|
|
34915
|
+
return _context2.abrupt("return", _context2.sent);
|
|
34916
|
+
case 3:
|
|
34917
|
+
case "end":
|
|
34918
|
+
return _context2.stop();
|
|
34618
34919
|
}
|
|
34619
34920
|
}, _callee2);
|
|
34620
34921
|
})),
|
|
@@ -34638,11 +34939,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34638
34939
|
isAll: true,
|
|
34639
34940
|
needNameAndCode: true,
|
|
34640
34941
|
notChangeOnSelect: true,
|
|
34641
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34642
|
-
return
|
|
34643
|
-
while (1) switch (_context3.
|
|
34942
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
34943
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
34944
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
34644
34945
|
case 0:
|
|
34645
|
-
_context3.
|
|
34946
|
+
_context3.next = 2;
|
|
34646
34947
|
return request$2({
|
|
34647
34948
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34648
34949
|
method: 'get',
|
|
@@ -34659,8 +34960,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34659
34960
|
return handleData;
|
|
34660
34961
|
}
|
|
34661
34962
|
});
|
|
34662
|
-
case
|
|
34663
|
-
return _context3.
|
|
34963
|
+
case 2:
|
|
34964
|
+
return _context3.abrupt("return", _context3.sent);
|
|
34965
|
+
case 3:
|
|
34966
|
+
case "end":
|
|
34967
|
+
return _context3.stop();
|
|
34664
34968
|
}
|
|
34665
34969
|
}, _callee3);
|
|
34666
34970
|
})),
|
|
@@ -34686,11 +34990,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34686
34990
|
isAll: true,
|
|
34687
34991
|
needNameAndCode: true,
|
|
34688
34992
|
notChangeOnSelect: true,
|
|
34689
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34690
|
-
return
|
|
34691
|
-
while (1) switch (_context4.
|
|
34993
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
34994
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
34995
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
34692
34996
|
case 0:
|
|
34693
|
-
_context4.
|
|
34997
|
+
_context4.next = 2;
|
|
34694
34998
|
return request$2({
|
|
34695
34999
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34696
35000
|
method: 'get',
|
|
@@ -34707,8 +35011,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34707
35011
|
return handleData;
|
|
34708
35012
|
}
|
|
34709
35013
|
});
|
|
34710
|
-
case
|
|
34711
|
-
return _context4.
|
|
35014
|
+
case 2:
|
|
35015
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35016
|
+
case 3:
|
|
35017
|
+
case "end":
|
|
35018
|
+
return _context4.stop();
|
|
34712
35019
|
}
|
|
34713
35020
|
}, _callee4);
|
|
34714
35021
|
})),
|
|
@@ -35395,8 +35702,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35395
35702
|
}
|
|
35396
35703
|
}));
|
|
35397
35704
|
} else {
|
|
35398
|
-
var
|
|
35399
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35705
|
+
var _values10;
|
|
35706
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35400
35707
|
return {
|
|
35401
35708
|
key: s,
|
|
35402
35709
|
label: valueNames[vIndex],
|
|
@@ -35674,8 +35981,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35674
35981
|
}
|
|
35675
35982
|
}));
|
|
35676
35983
|
} else {
|
|
35677
|
-
var
|
|
35678
|
-
var
|
|
35984
|
+
var _values11;
|
|
35985
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
35679
35986
|
return {
|
|
35680
35987
|
key: s,
|
|
35681
35988
|
label: valueNames[vIndex],
|
|
@@ -35697,7 +36004,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35697
36004
|
} : {}),
|
|
35698
36005
|
disabled: disabled,
|
|
35699
36006
|
labelInValue: true,
|
|
35700
|
-
value:
|
|
36007
|
+
value: _currentValue10,
|
|
35701
36008
|
requestConfig: {
|
|
35702
36009
|
filterInit: 'qp-code-in'
|
|
35703
36010
|
},
|
|
@@ -35790,8 +36097,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35790
36097
|
}
|
|
35791
36098
|
}));
|
|
35792
36099
|
} else {
|
|
35793
|
-
var
|
|
35794
|
-
var
|
|
36100
|
+
var _values12;
|
|
36101
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
35795
36102
|
return {
|
|
35796
36103
|
key: s,
|
|
35797
36104
|
label: valueNames[vIndex],
|
|
@@ -35813,7 +36120,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35813
36120
|
} : {}),
|
|
35814
36121
|
disabled: disabled,
|
|
35815
36122
|
labelInValue: true,
|
|
35816
|
-
value:
|
|
36123
|
+
value: _currentValue11,
|
|
35817
36124
|
requestConfig: {
|
|
35818
36125
|
filterInit: 'qp-code-in'
|
|
35819
36126
|
},
|
|
@@ -35906,8 +36213,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35906
36213
|
}
|
|
35907
36214
|
}));
|
|
35908
36215
|
} else {
|
|
35909
|
-
var
|
|
35910
|
-
var
|
|
36216
|
+
var _values13;
|
|
36217
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
35911
36218
|
return {
|
|
35912
36219
|
key: s,
|
|
35913
36220
|
label: valueNames[vIndex],
|
|
@@ -35929,7 +36236,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35929
36236
|
} : {}),
|
|
35930
36237
|
disabled: disabled,
|
|
35931
36238
|
labelInValue: true,
|
|
35932
|
-
value:
|
|
36239
|
+
value: _currentValue12,
|
|
35933
36240
|
requestConfig: {
|
|
35934
36241
|
filterInit: 'qp-brandCode-in'
|
|
35935
36242
|
},
|
|
@@ -36120,8 +36427,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36120
36427
|
}
|
|
36121
36428
|
}));
|
|
36122
36429
|
} else {
|
|
36123
|
-
var
|
|
36124
|
-
var
|
|
36430
|
+
var _values14;
|
|
36431
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36125
36432
|
return {
|
|
36126
36433
|
key: s,
|
|
36127
36434
|
label: valueNames[vIndex]
|
|
@@ -36149,7 +36456,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36149
36456
|
isSearchForm: true,
|
|
36150
36457
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36151
36458
|
disabled: disabled,
|
|
36152
|
-
value:
|
|
36459
|
+
value: _currentValue13,
|
|
36153
36460
|
onChange: function onChange(value, sourceList) {
|
|
36154
36461
|
if (dataInputBusinessType === 12) {
|
|
36155
36462
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36469,9 +36776,9 @@ var App$1 = function App(_ref) {
|
|
|
36469
36776
|
UpdateState(res);
|
|
36470
36777
|
};
|
|
36471
36778
|
var _useState9 = useState(false),
|
|
36472
|
-
|
|
36473
|
-
isModalVisible =
|
|
36474
|
-
setIsModalVisible =
|
|
36779
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
36780
|
+
isModalVisible = _useState10[0],
|
|
36781
|
+
setIsModalVisible = _useState10[1];
|
|
36475
36782
|
var showModal = function showModal() {
|
|
36476
36783
|
setIsModalVisible(true);
|
|
36477
36784
|
};
|
|
@@ -36952,26 +37259,27 @@ function RenderCompItem(props) {
|
|
|
36952
37259
|
dictData = _useState2[0],
|
|
36953
37260
|
setDictData = _useState2[1];
|
|
36954
37261
|
var getDictData = /*#__PURE__*/function () {
|
|
36955
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37262
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36956
37263
|
var _data$map;
|
|
36957
37264
|
var data;
|
|
36958
|
-
return
|
|
36959
|
-
while (1) switch (_context.
|
|
37265
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37266
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36960
37267
|
case 0:
|
|
36961
|
-
_context.
|
|
37268
|
+
_context.next = 2;
|
|
36962
37269
|
return request$2({
|
|
36963
37270
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
36964
37271
|
});
|
|
36965
|
-
case
|
|
36966
|
-
data = _context.
|
|
37272
|
+
case 2:
|
|
37273
|
+
data = _context.sent;
|
|
36967
37274
|
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) {
|
|
36968
37275
|
return {
|
|
36969
37276
|
text: item.dictItemName,
|
|
36970
37277
|
value: item.dictItemCode
|
|
36971
37278
|
};
|
|
36972
37279
|
}));
|
|
36973
|
-
case
|
|
36974
|
-
|
|
37280
|
+
case 4:
|
|
37281
|
+
case "end":
|
|
37282
|
+
return _context.stop();
|
|
36975
37283
|
}
|
|
36976
37284
|
}, _callee);
|
|
36977
37285
|
}));
|
|
@@ -37212,11 +37520,11 @@ function RenderCompItem(props) {
|
|
|
37212
37520
|
needNameAndCode: true,
|
|
37213
37521
|
notChangeOnSelect: true,
|
|
37214
37522
|
initRequestSource: function () {
|
|
37215
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37216
|
-
return
|
|
37217
|
-
while (1) switch (_context2.
|
|
37523
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
37524
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
37525
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37218
37526
|
case 0:
|
|
37219
|
-
_context2.
|
|
37527
|
+
_context2.next = 2;
|
|
37220
37528
|
return request$2({
|
|
37221
37529
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37222
37530
|
method: 'get',
|
|
@@ -37234,8 +37542,11 @@ function RenderCompItem(props) {
|
|
|
37234
37542
|
return handleData;
|
|
37235
37543
|
}
|
|
37236
37544
|
});
|
|
37237
|
-
case
|
|
37238
|
-
return _context2.
|
|
37545
|
+
case 2:
|
|
37546
|
+
return _context2.abrupt("return", _context2.sent);
|
|
37547
|
+
case 3:
|
|
37548
|
+
case "end":
|
|
37549
|
+
return _context2.stop();
|
|
37239
37550
|
}
|
|
37240
37551
|
}, _callee2);
|
|
37241
37552
|
}));
|
|
@@ -39285,13 +39596,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39285
39596
|
ruleTypeData = _useState8[0],
|
|
39286
39597
|
setRuleTypeData = _useState8[1];
|
|
39287
39598
|
var _useState9 = useState([]),
|
|
39288
|
-
|
|
39289
|
-
ruleReturnConfig =
|
|
39290
|
-
setRuleReturnConfig =
|
|
39291
|
-
var
|
|
39292
|
-
|
|
39293
|
-
templateData =
|
|
39294
|
-
setTemplateData =
|
|
39599
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39600
|
+
ruleReturnConfig = _useState10[0],
|
|
39601
|
+
setRuleReturnConfig = _useState10[1];
|
|
39602
|
+
var _useState11 = useState({}),
|
|
39603
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39604
|
+
templateData = _useState12[0],
|
|
39605
|
+
setTemplateData = _useState12[1];
|
|
39295
39606
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39296
39607
|
request$2({
|
|
39297
39608
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39627,25 +39938,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39627
39938
|
regularDataList = _useState8[0],
|
|
39628
39939
|
setRegularDataList = _useState8[1];
|
|
39629
39940
|
var _useState9 = useState([]),
|
|
39630
|
-
|
|
39631
|
-
baseRuleDetailList =
|
|
39632
|
-
setBaseRuleDetailList =
|
|
39633
|
-
var
|
|
39634
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
39635
|
-
systemVariableList = _useState10[0],
|
|
39636
|
-
setSystemVariableList = _useState10[1];
|
|
39637
|
-
var _useState11 = useState(false),
|
|
39941
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39942
|
+
baseRuleDetailList = _useState10[0],
|
|
39943
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
39944
|
+
var _useState11 = useState([]),
|
|
39638
39945
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39639
|
-
|
|
39640
|
-
|
|
39946
|
+
systemVariableList = _useState12[0],
|
|
39947
|
+
setSystemVariableList = _useState12[1];
|
|
39641
39948
|
var _useState13 = useState(false),
|
|
39642
39949
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39643
|
-
|
|
39644
|
-
|
|
39950
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
39951
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39645
39952
|
var _useState15 = useState(false),
|
|
39646
39953
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39647
|
-
|
|
39648
|
-
|
|
39954
|
+
isGetRuleDataRes = _useState16[0],
|
|
39955
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
39956
|
+
var _useState17 = useState(false),
|
|
39957
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
39958
|
+
groupOtherPriorityList = _useState18[0],
|
|
39959
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
39649
39960
|
var baseRuleRef = useRef();
|
|
39650
39961
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39651
39962
|
// 查询规则组下所有规则实例
|
|
@@ -39969,83 +40280,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39969
40280
|
}, children));
|
|
39970
40281
|
};
|
|
39971
40282
|
|
|
39972
|
-
|
|
39973
|
-
var SystemLog = function SystemLog(_ref) {
|
|
39974
|
-
var modeType = _ref.modeType,
|
|
39975
|
-
code = _ref.code,
|
|
39976
|
-
containerName = _ref.containerName,
|
|
39977
|
-
_ref$renderLogRef = _ref.renderLogRef,
|
|
39978
|
-
renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
|
|
39979
|
-
_ref$extraParams = _ref.extraParams,
|
|
39980
|
-
extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
|
|
39981
|
-
return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
|
|
39982
|
-
initialVisible: modeType != 'create',
|
|
39983
|
-
fields: [{
|
|
39984
|
-
name: 'table',
|
|
39985
|
-
label: false,
|
|
39986
|
-
itemLayout: {
|
|
39987
|
-
span: 24,
|
|
39988
|
-
labelCol: {
|
|
39989
|
-
span: 0
|
|
39990
|
-
},
|
|
39991
|
-
wrapperCol: {
|
|
39992
|
-
span: 24
|
|
39993
|
-
}
|
|
39994
|
-
},
|
|
39995
|
-
field: function field(ctx) {
|
|
39996
|
-
return code && /*#__PURE__*/React$1.createElement(Table$1, {
|
|
39997
|
-
remoteDataSource: {
|
|
39998
|
-
url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
|
|
39999
|
-
convertParams: function convertParams(_ref2) {
|
|
40000
|
-
var params = _ref2.params;
|
|
40001
|
-
return _objectSpread2({
|
|
40002
|
-
pageSize: params.pageSize,
|
|
40003
|
-
currentPage: params.current
|
|
40004
|
-
}, extraParams);
|
|
40005
|
-
},
|
|
40006
|
-
converter: function converter(_ref3) {
|
|
40007
|
-
var data = _ref3.data;
|
|
40008
|
-
return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
|
|
40009
|
-
}
|
|
40010
|
-
},
|
|
40011
|
-
columns: [{
|
|
40012
|
-
title: '操作人',
|
|
40013
|
-
dataIndex: 'handlerName'
|
|
40014
|
-
}, {
|
|
40015
|
-
title: '操作名称',
|
|
40016
|
-
dataIndex: 'handlerType'
|
|
40017
|
-
}, {
|
|
40018
|
-
title: '操作时间',
|
|
40019
|
-
dataIndex: 'handlerTime',
|
|
40020
|
-
render: function render(_ref4) {
|
|
40021
|
-
var text = _ref4.text;
|
|
40022
|
-
return handleCommonTimeRender$1(text);
|
|
40023
|
-
}
|
|
40024
|
-
}, {
|
|
40025
|
-
title: '操作内容',
|
|
40026
|
-
dataIndex: 'logcontent'
|
|
40027
|
-
}],
|
|
40028
|
-
style: {
|
|
40029
|
-
width: '100%',
|
|
40030
|
-
marginTop: '-16px',
|
|
40031
|
-
padding: '0px'
|
|
40032
|
-
},
|
|
40033
|
-
rowKey: "id",
|
|
40034
|
-
scroll: {
|
|
40035
|
-
x: 'max-content'
|
|
40036
|
-
},
|
|
40037
|
-
pagination: {
|
|
40038
|
-
showTotal: function showTotal(total) {
|
|
40039
|
-
return "\u5171 ".concat(total, " \u6761");
|
|
40040
|
-
},
|
|
40041
|
-
showQuickJumper: true,
|
|
40042
|
-
hideOnSinglePage: true
|
|
40043
|
-
},
|
|
40044
|
-
ref: renderLogRef
|
|
40045
|
-
});
|
|
40046
|
-
}
|
|
40047
|
-
}]
|
|
40048
|
-
});
|
|
40049
|
-
};
|
|
40050
|
-
|
|
40051
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
40283
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|