@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1385 -796
- package/dist/index.js +1385 -796
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +234 -38
- package/src/components/Business/StateFlow/index.css +126 -0
- package/src/components/Business/StateFlow/index.less +17 -17
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/SearchSelect/index.css +274 -0
- package/src/components/Functional/SearchSelect/index.less +5 -5
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (
|
|
223
|
+
if (e.includes(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,115 +230,306 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
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
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
-
i = e;
|
|
283
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
-
} catch (t) {
|
|
285
|
-
i = e, c = 1, u = t;
|
|
286
|
-
} finally {
|
|
287
|
-
f = 1;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
return {
|
|
291
|
-
value: t,
|
|
292
|
-
done: y
|
|
293
|
-
};
|
|
233
|
+
function _regeneratorRuntime() {
|
|
234
|
+
_regeneratorRuntime = function () {
|
|
235
|
+
return e;
|
|
236
|
+
};
|
|
237
|
+
var t,
|
|
238
|
+
e = {},
|
|
239
|
+
r = Object.prototype,
|
|
240
|
+
n = r.hasOwnProperty,
|
|
241
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
242
|
+
t[e] = r.value;
|
|
243
|
+
},
|
|
244
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
245
|
+
a = i.iterator || "@@iterator",
|
|
246
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
247
|
+
u = i.toStringTag || "@@toStringTag";
|
|
248
|
+
function define(t, e, r) {
|
|
249
|
+
return Object.defineProperty(t, e, {
|
|
250
|
+
value: r,
|
|
251
|
+
enumerable: !0,
|
|
252
|
+
configurable: !0,
|
|
253
|
+
writable: !0
|
|
254
|
+
}), t[e];
|
|
255
|
+
}
|
|
256
|
+
try {
|
|
257
|
+
define({}, "");
|
|
258
|
+
} catch (t) {
|
|
259
|
+
define = function (t, e, r) {
|
|
260
|
+
return t[e] = r;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function wrap(t, e, r, n) {
|
|
264
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
265
|
+
a = Object.create(i.prototype),
|
|
266
|
+
c = new Context(n || []);
|
|
267
|
+
return o(a, "_invoke", {
|
|
268
|
+
value: makeInvokeMethod(t, r, c)
|
|
269
|
+
}), a;
|
|
270
|
+
}
|
|
271
|
+
function tryCatch(t, e, r) {
|
|
272
|
+
try {
|
|
273
|
+
return {
|
|
274
|
+
type: "normal",
|
|
275
|
+
arg: t.call(e, r)
|
|
276
|
+
};
|
|
277
|
+
} catch (t) {
|
|
278
|
+
return {
|
|
279
|
+
type: "throw",
|
|
280
|
+
arg: t
|
|
294
281
|
};
|
|
295
|
-
}
|
|
282
|
+
}
|
|
296
283
|
}
|
|
297
|
-
|
|
284
|
+
e.wrap = wrap;
|
|
285
|
+
var h = "suspendedStart",
|
|
286
|
+
l = "suspendedYield",
|
|
287
|
+
f = "executing",
|
|
288
|
+
s = "completed",
|
|
289
|
+
y = {};
|
|
298
290
|
function Generator() {}
|
|
299
291
|
function GeneratorFunction() {}
|
|
300
292
|
function GeneratorFunctionPrototype() {}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return this;
|
|
304
|
-
}), t),
|
|
305
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
-
function f(e) {
|
|
307
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
-
}
|
|
309
|
-
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 () {
|
|
293
|
+
var p = {};
|
|
294
|
+
define(p, a, function () {
|
|
310
295
|
return this;
|
|
311
|
-
})
|
|
312
|
-
|
|
313
|
-
|
|
296
|
+
});
|
|
297
|
+
var d = Object.getPrototypeOf,
|
|
298
|
+
v = d && d(d(values([])));
|
|
299
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
+
function defineIteratorMethods(t) {
|
|
302
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
+
define(t, e, function (t) {
|
|
304
|
+
return this._invoke(e, t);
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
function AsyncIterator(t, e) {
|
|
309
|
+
function invoke(r, o, i, a) {
|
|
310
|
+
var c = tryCatch(t[r], t, o);
|
|
311
|
+
if ("throw" !== c.type) {
|
|
312
|
+
var u = c.arg,
|
|
313
|
+
h = u.value;
|
|
314
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
+
invoke("next", t, i, a);
|
|
316
|
+
}, function (t) {
|
|
317
|
+
invoke("throw", t, i, a);
|
|
318
|
+
}) : e.resolve(h).then(function (t) {
|
|
319
|
+
u.value = t, i(u);
|
|
320
|
+
}, function (t) {
|
|
321
|
+
return invoke("throw", t, i, a);
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
a(c.arg);
|
|
325
|
+
}
|
|
326
|
+
var r;
|
|
327
|
+
o(this, "_invoke", {
|
|
328
|
+
value: function (t, n) {
|
|
329
|
+
function callInvokeWithMethodAndArg() {
|
|
330
|
+
return new e(function (e, r) {
|
|
331
|
+
invoke(t, n, e, r);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
function makeInvokeMethod(e, r, n) {
|
|
339
|
+
var o = h;
|
|
340
|
+
return function (i, a) {
|
|
341
|
+
if (o === f) throw Error("Generator is already running");
|
|
342
|
+
if (o === s) {
|
|
343
|
+
if ("throw" === i) throw a;
|
|
344
|
+
return {
|
|
345
|
+
value: t,
|
|
346
|
+
done: !0
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
for (n.method = i, n.arg = a;;) {
|
|
350
|
+
var c = n.delegate;
|
|
351
|
+
if (c) {
|
|
352
|
+
var u = maybeInvokeDelegate(c, n);
|
|
353
|
+
if (u) {
|
|
354
|
+
if (u === y) continue;
|
|
355
|
+
return u;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
+
if (o === h) throw o = s, n.arg;
|
|
360
|
+
n.dispatchException(n.arg);
|
|
361
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
+
o = f;
|
|
363
|
+
var p = tryCatch(e, r, n);
|
|
364
|
+
if ("normal" === p.type) {
|
|
365
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
+
return {
|
|
367
|
+
value: p.arg,
|
|
368
|
+
done: n.done
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function maybeInvokeDelegate(e, r) {
|
|
376
|
+
var n = r.method,
|
|
377
|
+
o = e.iterator[n];
|
|
378
|
+
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;
|
|
379
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
+
var a = i.arg;
|
|
382
|
+
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);
|
|
383
|
+
}
|
|
384
|
+
function pushTryEntry(t) {
|
|
385
|
+
var e = {
|
|
386
|
+
tryLoc: t[0]
|
|
387
|
+
};
|
|
388
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
+
}
|
|
390
|
+
function resetTryEntry(t) {
|
|
391
|
+
var e = t.completion || {};
|
|
392
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
+
}
|
|
394
|
+
function Context(t) {
|
|
395
|
+
this.tryEntries = [{
|
|
396
|
+
tryLoc: "root"
|
|
397
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
+
}
|
|
399
|
+
function values(e) {
|
|
400
|
+
if (e || "" === e) {
|
|
401
|
+
var r = e[a];
|
|
402
|
+
if (r) return r.call(e);
|
|
403
|
+
if ("function" == typeof e.next) return e;
|
|
404
|
+
if (!isNaN(e.length)) {
|
|
405
|
+
var o = -1,
|
|
406
|
+
i = function next() {
|
|
407
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
+
return next.value = t, next.done = !0, next;
|
|
409
|
+
};
|
|
410
|
+
return i.next = i;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
+
}
|
|
415
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
+
value: GeneratorFunctionPrototype,
|
|
417
|
+
configurable: !0
|
|
418
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
+
value: GeneratorFunction,
|
|
420
|
+
configurable: !0
|
|
421
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
+
var e = "function" == typeof t && t.constructor;
|
|
423
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
+
}, e.mark = function (t) {
|
|
425
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
+
}, e.awrap = function (t) {
|
|
314
427
|
return {
|
|
315
|
-
|
|
316
|
-
m: f
|
|
428
|
+
__await: t
|
|
317
429
|
};
|
|
318
|
-
})()
|
|
319
|
-
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
430
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
431
|
+
return this;
|
|
432
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
433
|
+
void 0 === i && (i = Promise);
|
|
434
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
435
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
436
|
+
return t.done ? t.value : a.next();
|
|
437
|
+
});
|
|
438
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
439
|
+
return this;
|
|
440
|
+
}), define(g, "toString", function () {
|
|
441
|
+
return "[object Generator]";
|
|
442
|
+
}), e.keys = function (t) {
|
|
443
|
+
var e = Object(t),
|
|
444
|
+
r = [];
|
|
445
|
+
for (var n in e) r.push(n);
|
|
446
|
+
return r.reverse(), function next() {
|
|
447
|
+
for (; r.length;) {
|
|
448
|
+
var t = r.pop();
|
|
449
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
+
}
|
|
451
|
+
return next.done = !0, next;
|
|
452
|
+
};
|
|
453
|
+
}, e.values = values, Context.prototype = {
|
|
454
|
+
constructor: Context,
|
|
455
|
+
reset: function (e) {
|
|
456
|
+
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);
|
|
457
|
+
},
|
|
458
|
+
stop: function () {
|
|
459
|
+
this.done = !0;
|
|
460
|
+
var t = this.tryEntries[0].completion;
|
|
461
|
+
if ("throw" === t.type) throw t.arg;
|
|
462
|
+
return this.rval;
|
|
463
|
+
},
|
|
464
|
+
dispatchException: function (e) {
|
|
465
|
+
if (this.done) throw e;
|
|
466
|
+
var r = this;
|
|
467
|
+
function handle(n, o) {
|
|
468
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
+
}
|
|
470
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
+
var i = this.tryEntries[o],
|
|
472
|
+
a = i.completion;
|
|
473
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
+
if (i.tryLoc <= this.prev) {
|
|
475
|
+
var c = n.call(i, "catchLoc"),
|
|
476
|
+
u = n.call(i, "finallyLoc");
|
|
477
|
+
if (c && u) {
|
|
478
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
+
} else if (c) {
|
|
481
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
+
} else {
|
|
483
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
abrupt: function (t, e) {
|
|
490
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
+
var o = this.tryEntries[r];
|
|
492
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
+
var i = o;
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
+
var a = i ? i.completion : {};
|
|
499
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
+
},
|
|
501
|
+
complete: function (t, e) {
|
|
502
|
+
if ("throw" === t.type) throw t.arg;
|
|
503
|
+
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;
|
|
504
|
+
},
|
|
505
|
+
finish: function (t) {
|
|
506
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
+
var r = this.tryEntries[e];
|
|
508
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
catch: function (t) {
|
|
512
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
+
var r = this.tryEntries[e];
|
|
514
|
+
if (r.tryLoc === t) {
|
|
515
|
+
var n = r.completion;
|
|
516
|
+
if ("throw" === n.type) {
|
|
517
|
+
var o = n.arg;
|
|
518
|
+
resetTryEntry(r);
|
|
519
|
+
}
|
|
520
|
+
return o;
|
|
521
|
+
}
|
|
338
522
|
}
|
|
339
|
-
|
|
523
|
+
throw Error("illegal catch attempt");
|
|
524
|
+
},
|
|
525
|
+
delegateYield: function (e, r, n) {
|
|
526
|
+
return this.delegate = {
|
|
527
|
+
iterator: values(e),
|
|
528
|
+
resultName: r,
|
|
529
|
+
nextLoc: n
|
|
530
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
340
531
|
}
|
|
341
|
-
},
|
|
532
|
+
}, e;
|
|
342
533
|
}
|
|
343
534
|
function _setPrototypeOf(t, e) {
|
|
344
535
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1411,22 +1602,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1411
1602
|
// sheepMap是表头字段中英文映射
|
|
1412
1603
|
// sheetCount:表的数量,默认一张
|
|
1413
1604
|
var resolveFile = /*#__PURE__*/function () {
|
|
1414
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1605
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1415
1606
|
var config,
|
|
1416
1607
|
data,
|
|
1417
1608
|
_args = arguments;
|
|
1418
|
-
return
|
|
1419
|
-
while (1) switch (_context.
|
|
1609
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1610
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1420
1611
|
case 0:
|
|
1421
1612
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1422
1613
|
sheetMap: [],
|
|
1423
1614
|
sheetCount: 1
|
|
1424
1615
|
};
|
|
1425
|
-
_context.
|
|
1616
|
+
_context.next = 3;
|
|
1426
1617
|
return analyseExcelToByte(file);
|
|
1427
|
-
case
|
|
1428
|
-
data = _context.
|
|
1429
|
-
return _context.
|
|
1618
|
+
case 3:
|
|
1619
|
+
data = _context.sent;
|
|
1620
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1430
1621
|
var workbook = XLSX.read(data, {
|
|
1431
1622
|
type: 'binary'
|
|
1432
1623
|
});
|
|
@@ -1438,6 +1629,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1438
1629
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1439
1630
|
resolve(outdata);
|
|
1440
1631
|
}));
|
|
1632
|
+
case 5:
|
|
1633
|
+
case "end":
|
|
1634
|
+
return _context.stop();
|
|
1441
1635
|
}
|
|
1442
1636
|
}, _callee);
|
|
1443
1637
|
}));
|
|
@@ -1447,40 +1641,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1447
1641
|
}();
|
|
1448
1642
|
//读取文件
|
|
1449
1643
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1450
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1644
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1451
1645
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1452
|
-
return
|
|
1453
|
-
while (1) switch (_context2.
|
|
1646
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1647
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1454
1648
|
case 0:
|
|
1455
1649
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1456
1650
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1457
|
-
_context2.
|
|
1651
|
+
_context2.next = 15;
|
|
1458
1652
|
break;
|
|
1459
1653
|
}
|
|
1460
1654
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1461
|
-
_context2.
|
|
1655
|
+
_context2.next = 5;
|
|
1462
1656
|
return resolveFile(nowFile.originFileObj, {
|
|
1463
1657
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1464
1658
|
sheetCount: 1
|
|
1465
1659
|
});
|
|
1466
|
-
case
|
|
1467
|
-
data2 = _context2.
|
|
1660
|
+
case 5:
|
|
1661
|
+
data2 = _context2.sent;
|
|
1468
1662
|
data = data2[0];
|
|
1469
1663
|
if (data.length) {
|
|
1470
|
-
_context2.
|
|
1664
|
+
_context2.next = 10;
|
|
1471
1665
|
break;
|
|
1472
1666
|
}
|
|
1473
1667
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1474
|
-
return _context2.
|
|
1475
|
-
case
|
|
1668
|
+
return _context2.abrupt("return");
|
|
1669
|
+
case 10:
|
|
1476
1670
|
if (callback) callback(data);
|
|
1477
1671
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1478
|
-
return _context2.
|
|
1479
|
-
case
|
|
1672
|
+
return _context2.abrupt("return", data);
|
|
1673
|
+
case 15:
|
|
1480
1674
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1481
|
-
return _context2.
|
|
1482
|
-
case
|
|
1483
|
-
|
|
1675
|
+
return _context2.abrupt("return");
|
|
1676
|
+
case 17:
|
|
1677
|
+
case "end":
|
|
1678
|
+
return _context2.stop();
|
|
1484
1679
|
}
|
|
1485
1680
|
}, _callee2);
|
|
1486
1681
|
}));
|
|
@@ -2432,14 +2627,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2432
2627
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2433
2628
|
};
|
|
2434
2629
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2435
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2436
|
-
return
|
|
2437
|
-
while (1) switch (_context.
|
|
2630
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2631
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2632
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2438
2633
|
case 0:
|
|
2439
|
-
return _context.
|
|
2634
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2440
2635
|
data: response,
|
|
2441
2636
|
status: response.status
|
|
2442
2637
|
}));
|
|
2638
|
+
case 1:
|
|
2639
|
+
case "end":
|
|
2640
|
+
return _context.stop();
|
|
2443
2641
|
}
|
|
2444
2642
|
}, _callee);
|
|
2445
2643
|
}));
|
|
@@ -4582,27 +4780,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4582
4780
|
popvalue = _useState8[0],
|
|
4583
4781
|
setPopValue = _useState8[1];
|
|
4584
4782
|
var _useState9 = React$1.useState([]),
|
|
4585
|
-
|
|
4586
|
-
source =
|
|
4587
|
-
setSource =
|
|
4783
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4784
|
+
source = _useState10[0],
|
|
4785
|
+
setSource = _useState10[1];
|
|
4588
4786
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4589
4787
|
getData();
|
|
4590
4788
|
}, {
|
|
4591
4789
|
wait: 1000
|
|
4592
4790
|
}),
|
|
4593
4791
|
run = _useDebounceFn.run;
|
|
4594
|
-
var
|
|
4595
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4596
|
-
fetching = _useState10[0],
|
|
4597
|
-
setFetching = _useState10[1];
|
|
4598
|
-
var _useState11 = React$1.useState(''),
|
|
4792
|
+
var _useState11 = React$1.useState(false),
|
|
4599
4793
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
var _useState13 = React$1.useState(
|
|
4794
|
+
fetching = _useState12[0],
|
|
4795
|
+
setFetching = _useState12[1];
|
|
4796
|
+
var _useState13 = React$1.useState(''),
|
|
4603
4797
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4604
|
-
|
|
4605
|
-
|
|
4798
|
+
searchValue = _useState14[0],
|
|
4799
|
+
setSearchValue = _useState14[1];
|
|
4800
|
+
var _useState15 = React$1.useState(resultSourceKey),
|
|
4801
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4802
|
+
uniqueValue = _useState16[0],
|
|
4803
|
+
setUniqueValue = _useState16[1];
|
|
4606
4804
|
React$1.useEffect(function () {
|
|
4607
4805
|
setPopValue(value);
|
|
4608
4806
|
onValueChange(value);
|
|
@@ -4807,7 +5005,7 @@ function ToCDB$1(selectStr) {
|
|
|
4807
5005
|
return tmp;
|
|
4808
5006
|
}
|
|
4809
5007
|
|
|
4810
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh -
|
|
5008
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 190px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4811
5009
|
styleInject(css_248z$6);
|
|
4812
5010
|
|
|
4813
5011
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -5019,21 +5217,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5019
5217
|
notCommonProperty = _useState8[0],
|
|
5020
5218
|
setNotCommonProperty = _useState8[1];
|
|
5021
5219
|
var _useState9 = React$1.useState(false),
|
|
5022
|
-
|
|
5023
|
-
visible =
|
|
5024
|
-
setVisible =
|
|
5025
|
-
var
|
|
5026
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5027
|
-
showNotCommon = _useState10[0],
|
|
5028
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5029
|
-
var _useState11 = React$1.useState([]),
|
|
5220
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5221
|
+
visible = _useState10[0],
|
|
5222
|
+
setVisible = _useState10[1];
|
|
5223
|
+
var _useState11 = React$1.useState(false),
|
|
5030
5224
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
var _useState13 = React$1.useState(
|
|
5225
|
+
showNotCommon = _useState12[0],
|
|
5226
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5227
|
+
var _useState13 = React$1.useState([]),
|
|
5034
5228
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5035
|
-
|
|
5036
|
-
|
|
5229
|
+
classifyOptionList = _useState14[0],
|
|
5230
|
+
setClassifyOptionList = _useState14[1];
|
|
5231
|
+
var _useState15 = React$1.useState('1'),
|
|
5232
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5233
|
+
listKey = _useState16[0],
|
|
5234
|
+
setListKey = _useState16[1];
|
|
5037
5235
|
React$1.useEffect(function () {
|
|
5038
5236
|
requestUtil({
|
|
5039
5237
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5297,6 +5495,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5297
5495
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5298
5496
|
fieldComponent = props.fieldComponent,
|
|
5299
5497
|
onSaveCallback = props.onSaveCallback,
|
|
5498
|
+
_props$returnFormat = props.returnFormat,
|
|
5499
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5300
5500
|
selectBusinessType = props.selectBusinessType;
|
|
5301
5501
|
var _ref = rCTemp || {},
|
|
5302
5502
|
url = _ref.url,
|
|
@@ -5355,14 +5555,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5355
5555
|
var currentPage = 1;
|
|
5356
5556
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5357
5557
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5358
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5558
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5559
|
+
// 回显字段可自定义
|
|
5560
|
+
optionLabelProp: "label"
|
|
5561
|
+
}, selectProps), {}, {
|
|
5359
5562
|
// 以下属性不可更改----设计配置项
|
|
5360
5563
|
showArrow: true,
|
|
5361
5564
|
showSearch: true,
|
|
5362
5565
|
filterOption: false,
|
|
5363
5566
|
allowClear: true,
|
|
5364
5567
|
listHeight: 160,
|
|
5365
|
-
optionLabelProp: "label",
|
|
5366
5568
|
autoClearSearchValue: false,
|
|
5367
5569
|
placement: 'bottomRight'
|
|
5368
5570
|
});
|
|
@@ -5412,29 +5614,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5412
5614
|
scrollPage = _useState8[0],
|
|
5413
5615
|
setScrollPage = _useState8[1];
|
|
5414
5616
|
var _useState9 = React$1.useState(0),
|
|
5415
|
-
|
|
5416
|
-
itemsTotal =
|
|
5417
|
-
setItemsTotal =
|
|
5418
|
-
var
|
|
5419
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5420
|
-
fetching = _useState10[0],
|
|
5421
|
-
setFetching = _useState10[1];
|
|
5422
|
-
var _useState11 = React$1.useState(''),
|
|
5617
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5618
|
+
itemsTotal = _useState10[0],
|
|
5619
|
+
setItemsTotal = _useState10[1];
|
|
5620
|
+
var _useState11 = React$1.useState(false),
|
|
5423
5621
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
var _useState13 = React$1.useState(
|
|
5622
|
+
fetching = _useState12[0],
|
|
5623
|
+
setFetching = _useState12[1];
|
|
5624
|
+
var _useState13 = React$1.useState(''),
|
|
5427
5625
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
var _useState15 = React$1.useState(
|
|
5626
|
+
searchValue = _useState14[0],
|
|
5627
|
+
setSearchValue = _useState14[1];
|
|
5628
|
+
var _useState15 = React$1.useState(false),
|
|
5431
5629
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
var _useState17 = React$1.useState(
|
|
5630
|
+
isModalVisible = _useState16[0],
|
|
5631
|
+
setIsModalVisible = _useState16[1];
|
|
5632
|
+
var _useState17 = React$1.useState(initVal),
|
|
5435
5633
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5436
|
-
|
|
5437
|
-
|
|
5634
|
+
popvalue = _useState18[0],
|
|
5635
|
+
setPopValue = _useState18[1];
|
|
5636
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
5637
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5638
|
+
uniqueValue = _useState20[0],
|
|
5639
|
+
setUniqueValue = _useState20[1];
|
|
5438
5640
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5439
5641
|
// 优化搜索参数 支持传多个
|
|
5440
5642
|
var searchParams = {};
|
|
@@ -5463,58 +5665,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5463
5665
|
var _Form$useForm = antd.Form.useForm(),
|
|
5464
5666
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5465
5667
|
form = _Form$useForm2[0];
|
|
5466
|
-
var _useState19 = React$1.useState(true),
|
|
5467
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5468
|
-
collapsed = _useState20[0],
|
|
5469
|
-
setCollapsed = _useState20[1];
|
|
5470
5668
|
var _useState21 = React$1.useState(true),
|
|
5471
5669
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
var _useState23 = React$1.useState(
|
|
5670
|
+
collapsed = _useState22[0],
|
|
5671
|
+
setCollapsed = _useState22[1];
|
|
5672
|
+
var _useState23 = React$1.useState(true),
|
|
5475
5673
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
var _useState25 = React$1.useState(
|
|
5674
|
+
caretLeftFlag = _useState24[0],
|
|
5675
|
+
setCaretLeftFlag = _useState24[1];
|
|
5676
|
+
var _useState25 = React$1.useState([]),
|
|
5479
5677
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
var _useState27 = React$1.useState(
|
|
5678
|
+
tableData = _useState26[0],
|
|
5679
|
+
setTableData = _useState26[1];
|
|
5680
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
5483
5681
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5484
|
-
|
|
5485
|
-
|
|
5682
|
+
tablePagination = _useState28[0],
|
|
5683
|
+
setTablePagination = _useState28[1];
|
|
5486
5684
|
var _useState29 = React$1.useState([]),
|
|
5487
5685
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
var _useState31 = React$1.useState(
|
|
5686
|
+
selectedRowKeys = _useState30[0],
|
|
5687
|
+
setSelectedRowKeys = _useState30[1];
|
|
5688
|
+
var _useState31 = React$1.useState([]),
|
|
5491
5689
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5492
|
-
|
|
5493
|
-
|
|
5690
|
+
selectedRows = _useState32[0],
|
|
5691
|
+
setSelectedRows = _useState32[1];
|
|
5494
5692
|
var _useState33 = React$1.useState(false),
|
|
5495
5693
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
var _useState35 = React$1.useState(
|
|
5694
|
+
checkedAll = _useState34[0],
|
|
5695
|
+
setCheckedAll = _useState34[1];
|
|
5696
|
+
var _useState35 = React$1.useState(false),
|
|
5499
5697
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
var _useState37 = React$1.useState(
|
|
5698
|
+
indeterminate = _useState36[0],
|
|
5699
|
+
setIndeterminate = _useState36[1];
|
|
5700
|
+
var _useState37 = React$1.useState({}),
|
|
5503
5701
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
var _useState39 = React$1.useState(
|
|
5702
|
+
tableFormParams = _useState38[0],
|
|
5703
|
+
setTableFormParams = _useState38[1];
|
|
5704
|
+
var _useState39 = React$1.useState(false),
|
|
5507
5705
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
var _useState41 = React$1.useState(
|
|
5706
|
+
tooltipVisible = _useState40[0],
|
|
5707
|
+
setTooltipVisible = _useState40[1];
|
|
5708
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5511
5709
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5512
|
-
|
|
5513
|
-
|
|
5710
|
+
tableShowColumns = _useState42[0],
|
|
5711
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5514
5712
|
var _useState43 = React$1.useState(false),
|
|
5515
5713
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5516
|
-
|
|
5517
|
-
|
|
5714
|
+
confirmLoading = _useState44[0],
|
|
5715
|
+
setConfirmLoading = _useState44[1];
|
|
5716
|
+
var _useState45 = React$1.useState(false),
|
|
5717
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5718
|
+
modalSearched = _useState46[0],
|
|
5719
|
+
setModalSearched = _useState46[1];
|
|
5518
5720
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5519
5721
|
setItems(list);
|
|
5520
5722
|
setItemsTotal(total);
|
|
@@ -5831,12 +6033,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5831
6033
|
};
|
|
5832
6034
|
var formaData = function formaData(value, source) {
|
|
5833
6035
|
if (labelInValue) {
|
|
6036
|
+
var getFromat = function getFromat(format, val) {
|
|
6037
|
+
return format.map(function (_ref8) {
|
|
6038
|
+
var key = _ref8.key,
|
|
6039
|
+
value = _ref8.value;
|
|
6040
|
+
return _defineProperty({}, key, val[value]);
|
|
6041
|
+
});
|
|
6042
|
+
};
|
|
5834
6043
|
var formatResult = value.map(function (i) {
|
|
5835
|
-
return {
|
|
6044
|
+
return Object.assign.apply(Object, [{
|
|
5836
6045
|
key: i[mappingValueField] || i.key,
|
|
5837
6046
|
label: i[mappingTextField] || i.label,
|
|
5838
6047
|
value: i[mappingValueField] || i.value
|
|
5839
|
-
};
|
|
6048
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5840
6049
|
});
|
|
5841
6050
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
5842
6051
|
} else {
|
|
@@ -5984,7 +6193,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5984
6193
|
})) || [];
|
|
5985
6194
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5986
6195
|
return searchList.map(function (i, index) {
|
|
5987
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6196
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5988
6197
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5989
6198
|
span: ColSpan,
|
|
5990
6199
|
key: i
|
|
@@ -6082,7 +6291,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6082
6291
|
disabled: setDisabled(i.name)
|
|
6083
6292
|
}))));
|
|
6084
6293
|
}
|
|
6085
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6294
|
+
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') {
|
|
6086
6295
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6087
6296
|
span: ColSpan,
|
|
6088
6297
|
key: i.name
|
|
@@ -6096,7 +6305,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6096
6305
|
}
|
|
6097
6306
|
})));
|
|
6098
6307
|
}
|
|
6099
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6308
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6100
6309
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6101
6310
|
span: ColSpan,
|
|
6102
6311
|
key: i.name
|
|
@@ -6106,8 +6315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6106
6315
|
key: i.name
|
|
6107
6316
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6108
6317
|
}
|
|
6109
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6110
|
-
var _i$
|
|
6318
|
+
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') {
|
|
6319
|
+
var _i$field13;
|
|
6111
6320
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6112
6321
|
span: ColSpan,
|
|
6113
6322
|
key: i.name
|
|
@@ -6120,9 +6329,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6120
6329
|
width: '100%'
|
|
6121
6330
|
},
|
|
6122
6331
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6123
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6332
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6124
6333
|
}
|
|
6125
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6334
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6126
6335
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6127
6336
|
span: ColSpan,
|
|
6128
6337
|
key: i.name
|
|
@@ -6151,7 +6360,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6151
6360
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6152
6361
|
allowClear: true,
|
|
6153
6362
|
maxLength: 100
|
|
6154
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6363
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6155
6364
|
disabled: setDisabled(i.name)
|
|
6156
6365
|
}))));
|
|
6157
6366
|
});
|
|
@@ -7471,132 +7680,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7471
7680
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7472
7681
|
form = _Form$useForm2[0];
|
|
7473
7682
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7474
|
-
|
|
7475
|
-
tableSearchForm =
|
|
7476
|
-
setTableSearchForm =
|
|
7477
|
-
var
|
|
7478
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7479
|
-
caretLeftFlag = _useState10[0],
|
|
7480
|
-
setCaretLeftFlag = _useState10[1];
|
|
7481
|
-
var _useState11 = React$1.useState([]),
|
|
7683
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7684
|
+
tableSearchForm = _useState10[0],
|
|
7685
|
+
setTableSearchForm = _useState10[1];
|
|
7686
|
+
var _useState11 = React$1.useState(true),
|
|
7482
7687
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
var _useState13 = React$1.useState(
|
|
7688
|
+
caretLeftFlag = _useState12[0],
|
|
7689
|
+
setCaretLeftFlag = _useState12[1];
|
|
7690
|
+
var _useState13 = React$1.useState([]),
|
|
7691
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7692
|
+
tableData = _useState14[0],
|
|
7693
|
+
setTableData = _useState14[1];
|
|
7694
|
+
var _useState15 = React$1.useState(_objectSpread2({
|
|
7486
7695
|
total: 0,
|
|
7487
7696
|
size: "small",
|
|
7488
7697
|
current: 1,
|
|
7489
7698
|
pageSize: tableInitPageSize
|
|
7490
7699
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7491
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7492
|
-
tablePagination = _useState14[0],
|
|
7493
|
-
setTablePagination = _useState14[1];
|
|
7494
|
-
var _useState15 = React$1.useState([]),
|
|
7495
7700
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
var _useState17 = React$1.useState(
|
|
7701
|
+
tablePagination = _useState16[0],
|
|
7702
|
+
setTablePagination = _useState16[1];
|
|
7703
|
+
var _useState17 = React$1.useState([]),
|
|
7499
7704
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
var _useState19 = React$1.useState(
|
|
7705
|
+
selectedRowKeys = _useState18[0],
|
|
7706
|
+
setSelectedRowKeys = _useState18[1];
|
|
7707
|
+
var _useState19 = React$1.useState({}),
|
|
7503
7708
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7504
|
-
|
|
7505
|
-
|
|
7709
|
+
tableFormParams = _useState20[0],
|
|
7710
|
+
setTableFormParams = _useState20[1];
|
|
7506
7711
|
var _useState21 = React$1.useState(false),
|
|
7507
7712
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
var _useState23 = React$1.useState(
|
|
7713
|
+
confirmLoading = _useState22[0],
|
|
7714
|
+
setConfirmLoading = _useState22[1];
|
|
7715
|
+
var _useState23 = React$1.useState(false),
|
|
7511
7716
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7512
|
-
|
|
7513
|
-
|
|
7717
|
+
confirmContinueLoading = _useState24[0],
|
|
7718
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7514
7719
|
var _useState25 = React$1.useState([]),
|
|
7515
7720
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7516
|
-
|
|
7517
|
-
|
|
7721
|
+
selectColumns = _useState26[0],
|
|
7722
|
+
setSelectColumns = _useState26[1];
|
|
7518
7723
|
var _useState27 = React$1.useState([]),
|
|
7519
7724
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7520
|
-
|
|
7521
|
-
|
|
7725
|
+
showColumns = _useState28[0],
|
|
7726
|
+
setShowColumns = _useState28[1];
|
|
7522
7727
|
var _useState29 = React$1.useState([]),
|
|
7523
7728
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7524
|
-
|
|
7525
|
-
|
|
7729
|
+
tableColumns = _useState30[0],
|
|
7730
|
+
setTableColumns = _useState30[1];
|
|
7731
|
+
var _useState31 = React$1.useState([]),
|
|
7732
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7733
|
+
showToChooseColumns = _useState32[0],
|
|
7734
|
+
setShowToChooseColumns = _useState32[1];
|
|
7526
7735
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7527
7736
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7528
7737
|
// FIXME: 特殊业务逻辑
|
|
7529
7738
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7530
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7531
|
-
var result
|
|
7532
|
-
return
|
|
7533
|
-
while (1) switch (_context.
|
|
7739
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7740
|
+
var result;
|
|
7741
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7742
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7534
7743
|
case 0:
|
|
7535
7744
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7536
7745
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7537
7746
|
}))) {
|
|
7538
|
-
_context.
|
|
7747
|
+
_context.next = 3;
|
|
7539
7748
|
break;
|
|
7540
7749
|
}
|
|
7541
7750
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7542
|
-
return _context.
|
|
7543
|
-
case
|
|
7751
|
+
return _context.abrupt("return", false);
|
|
7752
|
+
case 3:
|
|
7544
7753
|
if (!(bType == 'spu')) {
|
|
7545
|
-
_context.
|
|
7754
|
+
_context.next = 26;
|
|
7546
7755
|
break;
|
|
7547
7756
|
}
|
|
7548
7757
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7549
7758
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7550
7759
|
}))) {
|
|
7551
|
-
_context.
|
|
7760
|
+
_context.next = 7;
|
|
7552
7761
|
break;
|
|
7553
7762
|
}
|
|
7554
7763
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7555
|
-
return _context.
|
|
7556
|
-
case
|
|
7764
|
+
return _context.abrupt("return", false);
|
|
7765
|
+
case 7:
|
|
7557
7766
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7558
|
-
_context.
|
|
7767
|
+
_context.next = 10;
|
|
7559
7768
|
break;
|
|
7560
7769
|
}
|
|
7561
7770
|
antd.message.warning('请先选择颜色!');
|
|
7562
|
-
return _context.
|
|
7563
|
-
case
|
|
7771
|
+
return _context.abrupt("return", false);
|
|
7772
|
+
case 10:
|
|
7564
7773
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7565
7774
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7566
7775
|
}))) {
|
|
7567
|
-
_context.
|
|
7776
|
+
_context.next = 13;
|
|
7568
7777
|
break;
|
|
7569
7778
|
}
|
|
7570
7779
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7571
|
-
return _context.
|
|
7572
|
-
case
|
|
7780
|
+
return _context.abrupt("return", false);
|
|
7781
|
+
case 13:
|
|
7573
7782
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7574
|
-
_context.
|
|
7783
|
+
_context.next = 26;
|
|
7575
7784
|
break;
|
|
7576
7785
|
}
|
|
7577
7786
|
result = true;
|
|
7578
|
-
_context.
|
|
7579
|
-
_context.
|
|
7787
|
+
_context.prev = 15;
|
|
7788
|
+
_context.next = 18;
|
|
7580
7789
|
return checkSpuMatchCode({
|
|
7581
7790
|
skcCode: recordItem[recordKey],
|
|
7582
7791
|
matchingCode: changeValue,
|
|
7583
7792
|
ext1: recordItem.colorName
|
|
7584
7793
|
});
|
|
7585
|
-
case
|
|
7586
|
-
result = _context.
|
|
7794
|
+
case 18:
|
|
7795
|
+
result = _context.sent;
|
|
7587
7796
|
result = true;
|
|
7588
|
-
_context.
|
|
7797
|
+
_context.next = 25;
|
|
7589
7798
|
break;
|
|
7590
|
-
case
|
|
7591
|
-
_context.
|
|
7592
|
-
|
|
7593
|
-
result = typeof
|
|
7594
|
-
case
|
|
7595
|
-
return _context.
|
|
7596
|
-
case
|
|
7597
|
-
return _context.
|
|
7598
|
-
|
|
7599
|
-
|
|
7799
|
+
case 22:
|
|
7800
|
+
_context.prev = 22;
|
|
7801
|
+
_context.t0 = _context["catch"](15);
|
|
7802
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7803
|
+
case 25:
|
|
7804
|
+
return _context.abrupt("return", result);
|
|
7805
|
+
case 26:
|
|
7806
|
+
return _context.abrupt("return", true);
|
|
7807
|
+
case 27:
|
|
7808
|
+
case "end":
|
|
7809
|
+
return _context.stop();
|
|
7810
|
+
}
|
|
7811
|
+
}, _callee, null, [[15, 22]]);
|
|
7600
7812
|
}));
|
|
7601
7813
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7602
7814
|
return _ref2.apply(this, arguments);
|
|
@@ -7674,6 +7886,116 @@ var AddSelect = function AddSelect(props) {
|
|
|
7674
7886
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7675
7887
|
return acc;
|
|
7676
7888
|
}, {});
|
|
7889
|
+
// 可输入非数字字符
|
|
7890
|
+
if (item.canInputString) {
|
|
7891
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
7892
|
+
min: 0,
|
|
7893
|
+
precision: 0,
|
|
7894
|
+
controls: false
|
|
7895
|
+
}, inputProps), {}, {
|
|
7896
|
+
value: text || '',
|
|
7897
|
+
keyboard: false,
|
|
7898
|
+
onPressEnter: function onPressEnter(e) {
|
|
7899
|
+
e.target.blur();
|
|
7900
|
+
},
|
|
7901
|
+
onBlur: function () {
|
|
7902
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7903
|
+
var value;
|
|
7904
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7905
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7906
|
+
case 0:
|
|
7907
|
+
value = e.target.value;
|
|
7908
|
+
record[item.dataIndex] = value;
|
|
7909
|
+
editRecord(record);
|
|
7910
|
+
case 3:
|
|
7911
|
+
case "end":
|
|
7912
|
+
return _context2.stop();
|
|
7913
|
+
}
|
|
7914
|
+
}, _callee2);
|
|
7915
|
+
}));
|
|
7916
|
+
function onBlur(_x7) {
|
|
7917
|
+
return _onBlur.apply(this, arguments);
|
|
7918
|
+
}
|
|
7919
|
+
return onBlur;
|
|
7920
|
+
}(),
|
|
7921
|
+
onKeyDown: function onKeyDown(e) {
|
|
7922
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7923
|
+
var _document$getElementB;
|
|
7924
|
+
handleOk(true);
|
|
7925
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7926
|
+
}
|
|
7927
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7928
|
+
var _e$nativeEvent$path$;
|
|
7929
|
+
antd.message.success('删除当前行');
|
|
7930
|
+
e.stopPropagation();
|
|
7931
|
+
e.preventDefault();
|
|
7932
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7933
|
+
if (dom) {
|
|
7934
|
+
dom.select();
|
|
7935
|
+
dom.focus();
|
|
7936
|
+
dom.scrollIntoView(false);
|
|
7937
|
+
}
|
|
7938
|
+
dom = null;
|
|
7939
|
+
deleteRecord(record);
|
|
7940
|
+
}
|
|
7941
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7942
|
+
var _e$nativeEvent$path$2;
|
|
7943
|
+
// 左滑动
|
|
7944
|
+
e.stopPropagation();
|
|
7945
|
+
e.preventDefault();
|
|
7946
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7947
|
+
if (_dom) {
|
|
7948
|
+
_dom.select();
|
|
7949
|
+
_dom.focus();
|
|
7950
|
+
_dom.scrollIntoView(false);
|
|
7951
|
+
}
|
|
7952
|
+
_dom = null;
|
|
7953
|
+
}
|
|
7954
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7955
|
+
var _e$nativeEvent$path$3;
|
|
7956
|
+
// 右滑
|
|
7957
|
+
e.stopPropagation();
|
|
7958
|
+
e.preventDefault();
|
|
7959
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7960
|
+
if (_dom2) {
|
|
7961
|
+
_dom2.select();
|
|
7962
|
+
_dom2.focus();
|
|
7963
|
+
_dom2.scrollIntoView(false);
|
|
7964
|
+
}
|
|
7965
|
+
_dom2 = null;
|
|
7966
|
+
}
|
|
7967
|
+
if (e.keyCode === 40) {
|
|
7968
|
+
var _e$nativeEvent$path$4;
|
|
7969
|
+
e.stopPropagation();
|
|
7970
|
+
e.preventDefault();
|
|
7971
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7972
|
+
if (_dom3) {
|
|
7973
|
+
_dom3.select();
|
|
7974
|
+
_dom3.focus();
|
|
7975
|
+
_dom3.scrollIntoView(false);
|
|
7976
|
+
}
|
|
7977
|
+
_dom3 = null;
|
|
7978
|
+
} else if (e.keyCode === 38) {
|
|
7979
|
+
var _e$nativeEvent$path$5;
|
|
7980
|
+
e.stopPropagation();
|
|
7981
|
+
e.preventDefault();
|
|
7982
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7983
|
+
if (dom1) {
|
|
7984
|
+
// dom1.value=""
|
|
7985
|
+
// dom1.setSelectionRange(100, 0);
|
|
7986
|
+
dom1.select();
|
|
7987
|
+
dom1.focus();
|
|
7988
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7989
|
+
// dom1.value=record['count']
|
|
7990
|
+
}
|
|
7991
|
+
dom1 = null;
|
|
7992
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7993
|
+
e.stopPropagation();
|
|
7994
|
+
e.preventDefault();
|
|
7995
|
+
}
|
|
7996
|
+
}
|
|
7997
|
+
}));
|
|
7998
|
+
}
|
|
7677
7999
|
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7678
8000
|
value: text || '',
|
|
7679
8001
|
min: 0,
|
|
@@ -7691,16 +8013,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7691
8013
|
// }}
|
|
7692
8014
|
onKeyDown: function onKeyDown(e) {
|
|
7693
8015
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7694
|
-
var _document$
|
|
8016
|
+
var _document$getElementB2;
|
|
7695
8017
|
handleOk(true);
|
|
7696
|
-
(_document$
|
|
8018
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7697
8019
|
}
|
|
7698
8020
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7699
|
-
var _e$nativeEvent$path
|
|
8021
|
+
var _e$nativeEvent$path$6;
|
|
7700
8022
|
antd.message.success('删除当前行');
|
|
7701
8023
|
e.stopPropagation();
|
|
7702
8024
|
e.preventDefault();
|
|
7703
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
8025
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7704
8026
|
if (dom) {
|
|
7705
8027
|
dom.select();
|
|
7706
8028
|
dom.focus();
|
|
@@ -7710,47 +8032,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7710
8032
|
deleteRecord(record);
|
|
7711
8033
|
}
|
|
7712
8034
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7713
|
-
var _e$nativeEvent$path$
|
|
8035
|
+
var _e$nativeEvent$path$7;
|
|
7714
8036
|
// 左滑动
|
|
7715
8037
|
e.stopPropagation();
|
|
7716
8038
|
e.preventDefault();
|
|
7717
|
-
var
|
|
7718
|
-
if (
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
8039
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
8040
|
+
if (_dom4) {
|
|
8041
|
+
_dom4.select();
|
|
8042
|
+
_dom4.focus();
|
|
8043
|
+
_dom4.scrollIntoView(false);
|
|
7722
8044
|
}
|
|
7723
|
-
|
|
8045
|
+
_dom4 = null;
|
|
7724
8046
|
}
|
|
7725
8047
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7726
|
-
var _e$nativeEvent$path$
|
|
8048
|
+
var _e$nativeEvent$path$8;
|
|
7727
8049
|
// 右滑
|
|
7728
8050
|
e.stopPropagation();
|
|
7729
8051
|
e.preventDefault();
|
|
7730
|
-
var
|
|
7731
|
-
if (
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
8052
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
8053
|
+
if (_dom5) {
|
|
8054
|
+
_dom5.select();
|
|
8055
|
+
_dom5.focus();
|
|
8056
|
+
_dom5.scrollIntoView(false);
|
|
7735
8057
|
}
|
|
7736
|
-
|
|
8058
|
+
_dom5 = null;
|
|
7737
8059
|
}
|
|
7738
8060
|
if (e.keyCode === 40) {
|
|
7739
|
-
var _e$nativeEvent$path$
|
|
8061
|
+
var _e$nativeEvent$path$9;
|
|
7740
8062
|
e.stopPropagation();
|
|
7741
8063
|
e.preventDefault();
|
|
7742
|
-
var
|
|
7743
|
-
if (
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
8064
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
8065
|
+
if (_dom6) {
|
|
8066
|
+
_dom6.select();
|
|
8067
|
+
_dom6.focus();
|
|
8068
|
+
_dom6.scrollIntoView(false);
|
|
7747
8069
|
}
|
|
7748
|
-
|
|
8070
|
+
_dom6 = null;
|
|
7749
8071
|
} else if (e.keyCode === 38) {
|
|
7750
|
-
var _e$nativeEvent$path$
|
|
8072
|
+
var _e$nativeEvent$path$10;
|
|
7751
8073
|
e.stopPropagation();
|
|
7752
8074
|
e.preventDefault();
|
|
7753
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8075
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7754
8076
|
if (dom1) {
|
|
7755
8077
|
// dom1.value=""
|
|
7756
8078
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7784,19 +8106,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7784
8106
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7785
8107
|
value: text || null,
|
|
7786
8108
|
onChange: function () {
|
|
7787
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7788
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7789
|
-
return
|
|
7790
|
-
while (1) switch (
|
|
8109
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8110
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8111
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8112
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7791
8113
|
case 0:
|
|
7792
8114
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7793
8115
|
return d[selectKey] == value;
|
|
7794
8116
|
})) || {};
|
|
7795
8117
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7796
|
-
|
|
8118
|
+
_context3.next = 6;
|
|
7797
8119
|
break;
|
|
7798
8120
|
}
|
|
7799
|
-
|
|
8121
|
+
_context3.next = 4;
|
|
7800
8122
|
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, {
|
|
7801
8123
|
record: record,
|
|
7802
8124
|
index: index,
|
|
@@ -7806,10 +8128,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7806
8128
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7807
8129
|
editRecord: editRecord
|
|
7808
8130
|
});
|
|
7809
|
-
case
|
|
7810
|
-
|
|
8131
|
+
case 4:
|
|
8132
|
+
_context3.next = 25;
|
|
7811
8133
|
break;
|
|
7812
|
-
case
|
|
8134
|
+
case 6:
|
|
7813
8135
|
// 更新当前行数据函数
|
|
7814
8136
|
changeValue = function changeValue(v, dSSItem) {
|
|
7815
8137
|
var _item$dataSourceSelec;
|
|
@@ -7822,12 +8144,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7822
8144
|
}
|
|
7823
8145
|
}; // 处理校验,默认不校验
|
|
7824
8146
|
isCheckPass = true;
|
|
7825
|
-
|
|
8147
|
+
_context3.prev = 8;
|
|
7826
8148
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7827
|
-
|
|
8149
|
+
_context3.next = 15;
|
|
7828
8150
|
break;
|
|
7829
8151
|
}
|
|
7830
|
-
|
|
8152
|
+
_context3.next = 12;
|
|
7831
8153
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7832
8154
|
record: record,
|
|
7833
8155
|
index: index,
|
|
@@ -7836,23 +8158,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7836
8158
|
changeValue: value,
|
|
7837
8159
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7838
8160
|
});
|
|
7839
|
-
case
|
|
7840
|
-
isCheckPass =
|
|
7841
|
-
|
|
8161
|
+
case 12:
|
|
8162
|
+
isCheckPass = _context3.sent;
|
|
8163
|
+
_context3.next = 19;
|
|
7842
8164
|
break;
|
|
7843
|
-
case
|
|
7844
|
-
|
|
8165
|
+
case 15:
|
|
8166
|
+
_context3.next = 17;
|
|
7845
8167
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7846
|
-
case
|
|
7847
|
-
isConformToTheRules =
|
|
8168
|
+
case 17:
|
|
8169
|
+
isConformToTheRules = _context3.sent;
|
|
7848
8170
|
isCheckPass = !isConformToTheRules;
|
|
7849
|
-
case
|
|
7850
|
-
|
|
8171
|
+
case 19:
|
|
8172
|
+
_context3.next = 23;
|
|
7851
8173
|
break;
|
|
7852
|
-
case
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
case
|
|
8174
|
+
case 21:
|
|
8175
|
+
_context3.prev = 21;
|
|
8176
|
+
_context3.t0 = _context3["catch"](8);
|
|
8177
|
+
case 23:
|
|
7856
8178
|
if (isCheckPass) {
|
|
7857
8179
|
changeValue(value, dataSourceSelectItem);
|
|
7858
8180
|
} else {
|
|
@@ -7860,12 +8182,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7860
8182
|
}
|
|
7861
8183
|
// 更新已选表格函数
|
|
7862
8184
|
editRecord(record);
|
|
7863
|
-
case
|
|
7864
|
-
|
|
8185
|
+
case 25:
|
|
8186
|
+
case "end":
|
|
8187
|
+
return _context3.stop();
|
|
7865
8188
|
}
|
|
7866
|
-
},
|
|
8189
|
+
}, _callee3, null, [[8, 21]]);
|
|
7867
8190
|
}));
|
|
7868
|
-
function onChange(
|
|
8191
|
+
function onChange(_x8) {
|
|
7869
8192
|
return _onChange.apply(this, arguments);
|
|
7870
8193
|
}
|
|
7871
8194
|
return onChange;
|
|
@@ -8125,8 +8448,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8125
8448
|
}
|
|
8126
8449
|
}
|
|
8127
8450
|
setTimeout(function () {
|
|
8128
|
-
var _document$
|
|
8129
|
-
(_document$
|
|
8451
|
+
var _document$getElementB3;
|
|
8452
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8130
8453
|
}, 50);
|
|
8131
8454
|
};
|
|
8132
8455
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8156,7 +8479,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8156
8479
|
handleLoading(isContinue, true);
|
|
8157
8480
|
onSaveCallback(popvalue).then(function (res) {
|
|
8158
8481
|
{
|
|
8159
|
-
var _Object$keys2, _document$
|
|
8482
|
+
var _Object$keys2, _document$getElementB4;
|
|
8160
8483
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8161
8484
|
var initSuccessMessage = '保存成功';
|
|
8162
8485
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8166,7 +8489,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8166
8489
|
antd.message.success(initSuccessMessage);
|
|
8167
8490
|
}
|
|
8168
8491
|
deleteSelectRows();
|
|
8169
|
-
(_document$
|
|
8492
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8170
8493
|
!isContinue && handleCancel();
|
|
8171
8494
|
}
|
|
8172
8495
|
handleLoading(isContinue, false);
|
|
@@ -9254,29 +9577,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9254
9577
|
dataIndex: 'propertyNameAndValue'
|
|
9255
9578
|
}];
|
|
9256
9579
|
var _useState9 = React$1.useState(false),
|
|
9257
|
-
|
|
9258
|
-
isModalVisible =
|
|
9259
|
-
setIsModalVisible =
|
|
9260
|
-
var
|
|
9580
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9581
|
+
isModalVisible = _useState10[0],
|
|
9582
|
+
setIsModalVisible = _useState10[1];
|
|
9583
|
+
var _useState11 = React$1.useState([{
|
|
9261
9584
|
hovered: false
|
|
9262
9585
|
}]),
|
|
9263
|
-
|
|
9264
|
-
data =
|
|
9265
|
-
setData =
|
|
9586
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9587
|
+
data = _useState12[0],
|
|
9588
|
+
setData = _useState12[1];
|
|
9266
9589
|
var tableRef = React$1.useRef(null);
|
|
9267
9590
|
var codeSelected = tableCode;
|
|
9268
|
-
var
|
|
9269
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9270
|
-
loading = _useState12[0],
|
|
9271
|
-
setLoading = _useState12[1];
|
|
9272
|
-
var _useState13 = React$1.useState([]),
|
|
9591
|
+
var _useState13 = React$1.useState(false),
|
|
9273
9592
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9274
|
-
|
|
9275
|
-
|
|
9593
|
+
loading = _useState14[0],
|
|
9594
|
+
setLoading = _useState14[1];
|
|
9276
9595
|
var _useState15 = React$1.useState([]),
|
|
9277
9596
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9278
|
-
|
|
9279
|
-
|
|
9597
|
+
selectColumns = _useState16[0],
|
|
9598
|
+
setSelectColumns = _useState16[1];
|
|
9599
|
+
var _useState17 = React$1.useState([]),
|
|
9600
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9601
|
+
showColumns = _useState18[0],
|
|
9602
|
+
setShowColumns = _useState18[1];
|
|
9280
9603
|
React$1.useEffect(function () {
|
|
9281
9604
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9282
9605
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9392,42 +9715,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9392
9715
|
});
|
|
9393
9716
|
};
|
|
9394
9717
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9395
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9718
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9396
9719
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9397
|
-
return
|
|
9398
|
-
while (1) switch (_context.
|
|
9720
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9721
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9399
9722
|
case 0:
|
|
9400
9723
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9401
|
-
_context.
|
|
9724
|
+
_context.next = 3;
|
|
9402
9725
|
break;
|
|
9403
9726
|
}
|
|
9404
9727
|
antd.message.warning('至少录入一条数据');
|
|
9405
|
-
return _context.
|
|
9406
|
-
case
|
|
9728
|
+
return _context.abrupt("return");
|
|
9729
|
+
case 3:
|
|
9407
9730
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9408
9731
|
return d.skuCode && d.name;
|
|
9409
9732
|
})) {
|
|
9410
|
-
_context.
|
|
9733
|
+
_context.next = 6;
|
|
9411
9734
|
break;
|
|
9412
9735
|
}
|
|
9413
9736
|
antd.message.warning('录入商品不存在');
|
|
9414
|
-
return _context.
|
|
9415
|
-
case
|
|
9737
|
+
return _context.abrupt("return");
|
|
9738
|
+
case 6:
|
|
9416
9739
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9417
9740
|
return d.count;
|
|
9418
9741
|
})) {
|
|
9419
|
-
_context.
|
|
9742
|
+
_context.next = 9;
|
|
9420
9743
|
break;
|
|
9421
9744
|
}
|
|
9422
9745
|
antd.message.warning('请填写商品数量!');
|
|
9423
|
-
return _context.
|
|
9424
|
-
case
|
|
9425
|
-
_context.
|
|
9746
|
+
return _context.abrupt("return");
|
|
9747
|
+
case 9:
|
|
9748
|
+
_context.next = 11;
|
|
9426
9749
|
return isSkuCanEntry(data);
|
|
9427
|
-
case
|
|
9428
|
-
canEntryObject = _context.
|
|
9750
|
+
case 11:
|
|
9751
|
+
canEntryObject = _context.sent;
|
|
9429
9752
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9430
|
-
_context.
|
|
9753
|
+
_context.next = 16;
|
|
9431
9754
|
break;
|
|
9432
9755
|
}
|
|
9433
9756
|
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) {
|
|
@@ -9437,8 +9760,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9437
9760
|
content: messageInfo,
|
|
9438
9761
|
duration: 6
|
|
9439
9762
|
});
|
|
9440
|
-
return _context.
|
|
9441
|
-
case
|
|
9763
|
+
return _context.abrupt("return");
|
|
9764
|
+
case 16:
|
|
9442
9765
|
setLoading(true);
|
|
9443
9766
|
onSaveCallback(data).then(function (res) {
|
|
9444
9767
|
{
|
|
@@ -9456,8 +9779,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9456
9779
|
antd.message.error(Error);
|
|
9457
9780
|
setLoading(false);
|
|
9458
9781
|
});
|
|
9459
|
-
case
|
|
9460
|
-
|
|
9782
|
+
case 18:
|
|
9783
|
+
case "end":
|
|
9784
|
+
return _context.stop();
|
|
9461
9785
|
}
|
|
9462
9786
|
}, _callee);
|
|
9463
9787
|
}));
|
|
@@ -10343,10 +10667,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10343
10667
|
selectProps = _objectSpread2({
|
|
10344
10668
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10345
10669
|
renderTableColumns: [{
|
|
10346
|
-
title: '
|
|
10670
|
+
title: 'SPU编码',
|
|
10347
10671
|
dataIndex: 'itemCode'
|
|
10348
10672
|
}, {
|
|
10349
|
-
title: '
|
|
10673
|
+
title: 'SPU名称',
|
|
10350
10674
|
dataIndex: 'name'
|
|
10351
10675
|
}]
|
|
10352
10676
|
}, selectConfigProps);
|
|
@@ -10363,11 +10687,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10363
10687
|
}, requestConfigProp);
|
|
10364
10688
|
tableSearchForm = [{
|
|
10365
10689
|
name: 'itemCode*multiInput',
|
|
10366
|
-
label: '
|
|
10690
|
+
label: 'SPU编码',
|
|
10367
10691
|
type: 'multipleQueryInput'
|
|
10368
10692
|
}, {
|
|
10369
10693
|
name: 'name*multiInput',
|
|
10370
|
-
label: '
|
|
10694
|
+
label: 'SPU名称',
|
|
10371
10695
|
type: 'multipleQueryInput'
|
|
10372
10696
|
}, {
|
|
10373
10697
|
name: 'qp-brandId-in',
|
|
@@ -10461,11 +10785,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10461
10785
|
dataIndex: 'keyIndex',
|
|
10462
10786
|
defaultSort: 0
|
|
10463
10787
|
}, {
|
|
10464
|
-
title: '
|
|
10788
|
+
title: 'SPU编码',
|
|
10465
10789
|
dataIndex: 'itemCode',
|
|
10466
10790
|
defaultSort: 1
|
|
10467
10791
|
}, {
|
|
10468
|
-
title: '
|
|
10792
|
+
title: 'SPU名称',
|
|
10469
10793
|
dataIndex: 'name',
|
|
10470
10794
|
defaultSort: 2
|
|
10471
10795
|
}, {
|
|
@@ -10819,7 +11143,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10819
11143
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10820
11144
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10821
11145
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10822
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11146
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10823
11147
|
});
|
|
10824
11148
|
requestConfig = _objectSpread2({
|
|
10825
11149
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11033,6 +11357,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11033
11357
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11034
11358
|
sourceName: 'warehouseIds'
|
|
11035
11359
|
}, requestConfigProp);
|
|
11360
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11361
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11362
|
+
extralHeaders: extralHeaders
|
|
11363
|
+
});
|
|
11364
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11365
|
+
'qp-status-eq': 10,
|
|
11366
|
+
'qp-isMain-eq': 1,
|
|
11367
|
+
'qp-type-in': '1,2'
|
|
11368
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11369
|
+
'qp-status-eq': 1
|
|
11370
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11371
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11372
|
+
return data['parentCode'] === '0';
|
|
11373
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11374
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11375
|
+
return data['parent'] === '0';
|
|
11376
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11377
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11378
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11379
|
+
});
|
|
11036
11380
|
tableSearchForm = [{
|
|
11037
11381
|
name: 'realWarehouseName*multiInput',
|
|
11038
11382
|
label: '逻辑仓名称',
|
|
@@ -11056,6 +11400,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11056
11400
|
},
|
|
11057
11401
|
label: '管理大区',
|
|
11058
11402
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11403
|
+
}, {
|
|
11404
|
+
name: 'qp-channelCode-in',
|
|
11405
|
+
type: 'treeSelect',
|
|
11406
|
+
label: '销售渠道',
|
|
11407
|
+
field: {
|
|
11408
|
+
type: 'treeSelect',
|
|
11409
|
+
props: {
|
|
11410
|
+
multiple: true,
|
|
11411
|
+
treeData: [],
|
|
11412
|
+
treeCheckable: false,
|
|
11413
|
+
notFoundContent: '暂无数据',
|
|
11414
|
+
allowClear: true,
|
|
11415
|
+
showSearch: true,
|
|
11416
|
+
showArrow: true,
|
|
11417
|
+
maxTagCount: 1,
|
|
11418
|
+
optionFilterProp: 'children',
|
|
11419
|
+
filterOption: function filterOption(input, option) {
|
|
11420
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11421
|
+
},
|
|
11422
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11423
|
+
}
|
|
11424
|
+
}
|
|
11425
|
+
}, {
|
|
11426
|
+
name: 'qp-refCode-in',
|
|
11427
|
+
type: 'treeSelect',
|
|
11428
|
+
label: '营销区域',
|
|
11429
|
+
field: {
|
|
11430
|
+
type: 'treeSelect',
|
|
11431
|
+
props: {
|
|
11432
|
+
multiple: true,
|
|
11433
|
+
treeData: [],
|
|
11434
|
+
treeCheckable: false,
|
|
11435
|
+
notFoundContent: '暂无数据',
|
|
11436
|
+
allowClear: true,
|
|
11437
|
+
showSearch: true,
|
|
11438
|
+
showArrow: true,
|
|
11439
|
+
maxTagCount: 1,
|
|
11440
|
+
optionFilterProp: 'children',
|
|
11441
|
+
filterOption: function filterOption(input, option) {
|
|
11442
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11443
|
+
},
|
|
11444
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11445
|
+
}
|
|
11446
|
+
}
|
|
11447
|
+
}, {
|
|
11448
|
+
name: 'qp-type-in',
|
|
11449
|
+
type: 'select',
|
|
11450
|
+
label: '店铺性质',
|
|
11451
|
+
field: {
|
|
11452
|
+
type: 'select',
|
|
11453
|
+
props: {
|
|
11454
|
+
mode: 'multiple',
|
|
11455
|
+
notFoundContent: '暂无数据',
|
|
11456
|
+
allowClear: true,
|
|
11457
|
+
showSearch: true,
|
|
11458
|
+
showArrow: true,
|
|
11459
|
+
maxTagCount: 1,
|
|
11460
|
+
optionFilterProp: 'children',
|
|
11461
|
+
filterOption: function filterOption(input, option) {
|
|
11462
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11463
|
+
}
|
|
11464
|
+
}
|
|
11465
|
+
},
|
|
11466
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11059
11467
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11060
11468
|
name: 'qp-isEnable-eq',
|
|
11061
11469
|
type: 'select',
|
|
@@ -11084,10 +11492,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11084
11492
|
render: function render(text) {
|
|
11085
11493
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11086
11494
|
}
|
|
11495
|
+
}, {
|
|
11496
|
+
title: '运营组名称',
|
|
11497
|
+
dataIndex: 'groupCode',
|
|
11498
|
+
defaultSort: 7,
|
|
11499
|
+
render: function render(text, record) {
|
|
11500
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11501
|
+
},
|
|
11502
|
+
width: 100
|
|
11503
|
+
}, {
|
|
11504
|
+
title: '所属销售渠道',
|
|
11505
|
+
dataIndex: 'channelName',
|
|
11506
|
+
defaultSort: 4,
|
|
11507
|
+
width: 100
|
|
11508
|
+
}, {
|
|
11509
|
+
title: '营销区域',
|
|
11510
|
+
dataIndex: 'commonRelationAreaName',
|
|
11511
|
+
defaultSort: 5,
|
|
11512
|
+
width: 100
|
|
11513
|
+
}, {
|
|
11514
|
+
title: '店铺性质',
|
|
11515
|
+
dataIndex: 'type',
|
|
11516
|
+
defaultSort: 6,
|
|
11517
|
+
render: function render(text) {
|
|
11518
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11519
|
+
},
|
|
11520
|
+
width: 80
|
|
11087
11521
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11088
11522
|
title: '状态',
|
|
11089
11523
|
dataIndex: 'isEnable',
|
|
11090
|
-
defaultSort:
|
|
11524
|
+
defaultSort: 8,
|
|
11091
11525
|
render: function render(text) {
|
|
11092
11526
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11093
11527
|
}
|
|
@@ -11147,20 +11581,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11147
11581
|
}
|
|
11148
11582
|
}
|
|
11149
11583
|
}
|
|
11584
|
+
}, {
|
|
11585
|
+
name: 'qp-channelCode-in',
|
|
11586
|
+
type: 'treeSelect',
|
|
11587
|
+
label: '销售渠道',
|
|
11588
|
+
field: {
|
|
11589
|
+
type: 'treeSelect',
|
|
11590
|
+
props: {
|
|
11591
|
+
multiple: true,
|
|
11592
|
+
treeData: [],
|
|
11593
|
+
treeCheckable: false,
|
|
11594
|
+
notFoundContent: '暂无数据',
|
|
11595
|
+
allowClear: true,
|
|
11596
|
+
showSearch: true,
|
|
11597
|
+
showArrow: true,
|
|
11598
|
+
maxTagCount: 1,
|
|
11599
|
+
optionFilterProp: 'children',
|
|
11600
|
+
filterOption: function filterOption(input, option) {
|
|
11601
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11602
|
+
},
|
|
11603
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11150
11606
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11151
11607
|
name: 'qp-status-eq',
|
|
11152
11608
|
type: 'select',
|
|
11153
11609
|
label: '运营仓状态',
|
|
11154
11610
|
initialSource: getDictionarySource$1('SC00001')
|
|
11155
11611
|
}] : []));
|
|
11156
|
-
var
|
|
11612
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11157
11613
|
querySelectHeadersList: querySelectHeadersList,
|
|
11158
11614
|
extralHeaders: extralHeaders
|
|
11159
11615
|
});
|
|
11160
11616
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11161
11617
|
'qp-status-eq': 1
|
|
11162
|
-
}, getQueryHeadersItem(
|
|
11618
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11619
|
+
'qp-status-eq': 10,
|
|
11620
|
+
'qp-isMain-eq': 1,
|
|
11621
|
+
'qp-type-in': '1,2'
|
|
11622
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11163
11623
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11624
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11625
|
+
return data['parentCode'] === '0';
|
|
11626
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11627
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11164
11628
|
});
|
|
11165
11629
|
modalTableProps = _objectSpread2({
|
|
11166
11630
|
modalTableTitle: '选择运营仓',
|
|
@@ -11188,7 +11652,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11188
11652
|
render: function render(text) {
|
|
11189
11653
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11190
11654
|
}
|
|
11191
|
-
}] : [])
|
|
11655
|
+
}] : []), [{
|
|
11656
|
+
title: '所属销售渠道',
|
|
11657
|
+
dataIndex: 'channelName',
|
|
11658
|
+
defaultSort: 5,
|
|
11659
|
+
width: 100
|
|
11660
|
+
}])
|
|
11192
11661
|
}, modalTableBusProps);
|
|
11193
11662
|
}
|
|
11194
11663
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11337,7 +11806,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11337
11806
|
label: '共享类型',
|
|
11338
11807
|
initialSource: sharingTypeDataList
|
|
11339
11808
|
}];
|
|
11340
|
-
var
|
|
11809
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11341
11810
|
querySelectHeadersList: querySelectHeadersList,
|
|
11342
11811
|
extralHeaders: extralHeaders
|
|
11343
11812
|
});
|
|
@@ -11345,14 +11814,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11345
11814
|
pageSize: 5000,
|
|
11346
11815
|
currentPage: 1,
|
|
11347
11816
|
'qp-companyType-eq': '30'
|
|
11348
|
-
}, getQueryHeadersItem(
|
|
11817
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11349
11818
|
pageSize: 5000,
|
|
11350
11819
|
currentPage: 1
|
|
11351
|
-
}, getQueryHeadersItem(
|
|
11820
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11352
11821
|
pageSize: 5000,
|
|
11353
11822
|
currentPage: 1,
|
|
11354
11823
|
'qp-companyType-eq': '20'
|
|
11355
|
-
}, getQueryHeadersItem(
|
|
11824
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11356
11825
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11357
11826
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11358
11827
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11464,16 +11933,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11464
11933
|
}
|
|
11465
11934
|
}
|
|
11466
11935
|
}
|
|
11936
|
+
}, {
|
|
11937
|
+
name: 'qp-saleChannel-in',
|
|
11938
|
+
type: 'treeSelect',
|
|
11939
|
+
label: '销售渠道',
|
|
11940
|
+
field: {
|
|
11941
|
+
type: 'treeSelect',
|
|
11942
|
+
props: {
|
|
11943
|
+
multiple: true,
|
|
11944
|
+
treeData: [],
|
|
11945
|
+
treeCheckable: false,
|
|
11946
|
+
notFoundContent: '暂无数据',
|
|
11947
|
+
allowClear: true,
|
|
11948
|
+
showSearch: true,
|
|
11949
|
+
showArrow: true,
|
|
11950
|
+
maxTagCount: 1,
|
|
11951
|
+
optionFilterProp: 'children',
|
|
11952
|
+
filterOption: function filterOption(input, option) {
|
|
11953
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11954
|
+
},
|
|
11955
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11956
|
+
}
|
|
11957
|
+
}
|
|
11958
|
+
}, {
|
|
11959
|
+
name: 'qp-refCode-in',
|
|
11960
|
+
type: 'treeSelect',
|
|
11961
|
+
label: '营销区域',
|
|
11962
|
+
field: {
|
|
11963
|
+
type: 'treeSelect',
|
|
11964
|
+
props: {
|
|
11965
|
+
multiple: true,
|
|
11966
|
+
treeData: [],
|
|
11967
|
+
treeCheckable: false,
|
|
11968
|
+
notFoundContent: '暂无数据',
|
|
11969
|
+
allowClear: true,
|
|
11970
|
+
showSearch: true,
|
|
11971
|
+
showArrow: true,
|
|
11972
|
+
maxTagCount: 1,
|
|
11973
|
+
optionFilterProp: 'children',
|
|
11974
|
+
filterOption: function filterOption(input, option) {
|
|
11975
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11976
|
+
},
|
|
11977
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11978
|
+
}
|
|
11979
|
+
}
|
|
11467
11980
|
}];
|
|
11468
|
-
var
|
|
11981
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11469
11982
|
querySelectHeadersList: querySelectHeadersList,
|
|
11470
11983
|
extralHeaders: extralHeaders
|
|
11471
11984
|
});
|
|
11472
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11985
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11986
|
+
'qp-status-eq': 10,
|
|
11987
|
+
'qp-isMain-eq': 1,
|
|
11988
|
+
'qp-type-in': '1,2'
|
|
11989
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11990
|
+
'qp-status-eq': 1
|
|
11991
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11473
11992
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11474
11993
|
var allList = firstElement && [firstElement, firstElement];
|
|
11475
11994
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11476
11995
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11996
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11997
|
+
return data['parentCode'] === '0';
|
|
11998
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11999
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
12000
|
+
return data['parent'] === '0';
|
|
12001
|
+
}; // 所属营销区域 树节点不能点判断
|
|
12002
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12003
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11477
12004
|
});
|
|
11478
12005
|
modalTableProps = _objectSpread2({
|
|
11479
12006
|
modalTableTitle: '选择客户',
|
|
@@ -11497,7 +12024,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11497
12024
|
}, {
|
|
11498
12025
|
title: '使用组织',
|
|
11499
12026
|
dataIndex: 'salesOrgName',
|
|
11500
|
-
defaultSort: 4
|
|
12027
|
+
defaultSort: 4,
|
|
12028
|
+
width: 100
|
|
12029
|
+
}, {
|
|
12030
|
+
title: '所属销售渠道',
|
|
12031
|
+
dataIndex: 'channelName',
|
|
12032
|
+
defaultSort: 5,
|
|
12033
|
+
width: 100
|
|
12034
|
+
}, {
|
|
12035
|
+
title: '营销区域',
|
|
12036
|
+
dataIndex: 'commonRelationAreaName',
|
|
12037
|
+
defaultSort: 6,
|
|
12038
|
+
width: 100
|
|
11501
12039
|
}]
|
|
11502
12040
|
}, modalTableBusProps);
|
|
11503
12041
|
}
|
|
@@ -11525,12 +12063,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11525
12063
|
sourceName: 'code'
|
|
11526
12064
|
}, requestConfigProp);
|
|
11527
12065
|
tableSearchForm = [{
|
|
11528
|
-
name: '
|
|
11529
|
-
label: '店铺名称'
|
|
11530
|
-
|
|
11531
|
-
name: 'qp-code-like',
|
|
11532
|
-
label: '店铺编码'
|
|
12066
|
+
name: 'name*multiInput',
|
|
12067
|
+
label: '店铺名称',
|
|
12068
|
+
type: 'multipleQueryInput'
|
|
11533
12069
|
}, {
|
|
12070
|
+
name: 'code*multiInput',
|
|
12071
|
+
label: '店铺编码',
|
|
12072
|
+
type: 'multipleQueryInput'
|
|
12073
|
+
},
|
|
12074
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12075
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12076
|
+
{
|
|
11534
12077
|
name: 'qp-conglomerateCode-in',
|
|
11535
12078
|
type: 'select',
|
|
11536
12079
|
label: '归属集团',
|
|
@@ -11631,7 +12174,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11631
12174
|
}
|
|
11632
12175
|
}
|
|
11633
12176
|
}];
|
|
11634
|
-
var
|
|
12177
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11635
12178
|
querySelectHeadersList: querySelectHeadersList,
|
|
11636
12179
|
extralHeaders: extralHeaders
|
|
11637
12180
|
});
|
|
@@ -11639,21 +12182,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11639
12182
|
pageSize: 5000,
|
|
11640
12183
|
currentPage: 1,
|
|
11641
12184
|
'qp-companyType-eq': '30'
|
|
11642
|
-
}, getQueryHeadersItem(
|
|
12185
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11643
12186
|
pageSize: 5000,
|
|
11644
12187
|
currentPage: 1,
|
|
11645
12188
|
'qp-companyType-eq': '20'
|
|
11646
|
-
}, getQueryHeadersItem(
|
|
12189
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11647
12190
|
// pageSize: 5000,
|
|
11648
12191
|
// currentPage: 1,
|
|
11649
12192
|
'qp-status-eq': '1'
|
|
11650
|
-
}, getQueryHeadersItem(
|
|
12193
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11651
12194
|
pageSize: 5000,
|
|
11652
12195
|
currentPage: 1
|
|
11653
|
-
}, getQueryHeadersItem(
|
|
12196
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11654
12197
|
pageSize: 5000,
|
|
11655
12198
|
currentPage: 1
|
|
11656
|
-
}, getQueryHeadersItem(
|
|
12199
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11657
12200
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11658
12201
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11659
12202
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11823,7 +12366,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11823
12366
|
},
|
|
11824
12367
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11825
12368
|
}];
|
|
11826
|
-
var
|
|
12369
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11827
12370
|
querySelectHeadersList: querySelectHeadersList,
|
|
11828
12371
|
extralHeaders: extralHeaders
|
|
11829
12372
|
});
|
|
@@ -11831,13 +12374,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11831
12374
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11832
12375
|
'qp-realOrg-eq': true,
|
|
11833
12376
|
'qp-status-eq': 10
|
|
11834
|
-
}, getQueryHeadersItem(
|
|
12377
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11835
12378
|
'qp-status-eq': 10,
|
|
11836
12379
|
'qp-isMain-eq': 1,
|
|
11837
12380
|
'qp-type-in': '1,2'
|
|
11838
|
-
}, getQueryHeadersItem(
|
|
12381
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11839
12382
|
'qp-status-eq': 1
|
|
11840
|
-
}, getQueryHeadersItem(
|
|
12383
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11841
12384
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11842
12385
|
return data['parentCode'] === '0';
|
|
11843
12386
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12072,10 +12615,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12072
12615
|
name: 'qp-email-like',
|
|
12073
12616
|
label: '邮箱'
|
|
12074
12617
|
}, {
|
|
12075
|
-
name: 'qp-
|
|
12618
|
+
name: 'qp-phone-like',
|
|
12076
12619
|
label: '手机号'
|
|
12077
12620
|
}];
|
|
12078
|
-
var
|
|
12621
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12079
12622
|
querySelectHeadersList: querySelectHeadersList,
|
|
12080
12623
|
extralHeaders: extralHeaders
|
|
12081
12624
|
});
|
|
@@ -12083,7 +12626,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12083
12626
|
pageSize: 5000,
|
|
12084
12627
|
currentPage: 1,
|
|
12085
12628
|
'qp-companyType-eq': 20
|
|
12086
|
-
}, getQueryHeadersItem(
|
|
12629
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12087
12630
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12088
12631
|
});
|
|
12089
12632
|
modalTableProps = _objectSpread2({
|
|
@@ -12189,16 +12732,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12189
12732
|
name: 'qp-email-like',
|
|
12190
12733
|
label: '邮箱'
|
|
12191
12734
|
}, {
|
|
12192
|
-
name: 'qp-
|
|
12735
|
+
name: 'qp-phone-like',
|
|
12193
12736
|
label: '手机号'
|
|
12194
12737
|
}]);
|
|
12195
|
-
var
|
|
12738
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12196
12739
|
querySelectHeadersList: querySelectHeadersList,
|
|
12197
12740
|
extralHeaders: extralHeaders
|
|
12198
12741
|
});
|
|
12199
12742
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12200
12743
|
'orgViewCode': 'administrative-organization-view'
|
|
12201
|
-
}, getQueryHeadersItem(
|
|
12744
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12202
12745
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12203
12746
|
});
|
|
12204
12747
|
modalTableProps = _objectSpread2({
|
|
@@ -12345,17 +12888,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12345
12888
|
name: 'qp-remark-like',
|
|
12346
12889
|
label: '备注'
|
|
12347
12890
|
}];
|
|
12348
|
-
var
|
|
12891
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12349
12892
|
querySelectHeadersList: querySelectHeadersList,
|
|
12350
12893
|
extralHeaders: extralHeaders
|
|
12351
12894
|
});
|
|
12352
12895
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12353
12896
|
pageSize: 5000,
|
|
12354
12897
|
currentPage: 1
|
|
12355
|
-
}, getQueryHeadersItem(
|
|
12898
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12356
12899
|
pageSize: 5000,
|
|
12357
12900
|
currentPage: 1
|
|
12358
|
-
}, getQueryHeadersItem(
|
|
12901
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12359
12902
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12360
12903
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12361
12904
|
});
|
|
@@ -12525,14 +13068,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12525
13068
|
}
|
|
12526
13069
|
}
|
|
12527
13070
|
}];
|
|
12528
|
-
var
|
|
13071
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12529
13072
|
querySelectHeadersList: querySelectHeadersList,
|
|
12530
13073
|
extralHeaders: extralHeaders
|
|
12531
13074
|
});
|
|
12532
13075
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12533
13076
|
pageSize: 5000,
|
|
12534
13077
|
currentPage: 1
|
|
12535
|
-
}, getQueryHeadersItem(
|
|
13078
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12536
13079
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12537
13080
|
});
|
|
12538
13081
|
modalTableProps = _objectSpread2({
|
|
@@ -12629,7 +13172,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12629
13172
|
}
|
|
12630
13173
|
}
|
|
12631
13174
|
}];
|
|
12632
|
-
var
|
|
13175
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12633
13176
|
querySelectHeadersList: querySelectHeadersList,
|
|
12634
13177
|
extralHeaders: extralHeaders
|
|
12635
13178
|
});
|
|
@@ -12637,7 +13180,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12637
13180
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12638
13181
|
'qp-realOrg-eq': true,
|
|
12639
13182
|
'qp-status-eq': 10
|
|
12640
|
-
}, getQueryHeadersItem(
|
|
13183
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12641
13184
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12642
13185
|
});
|
|
12643
13186
|
modalTableProps = _objectSpread2({
|
|
@@ -12743,13 +13286,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12743
13286
|
},
|
|
12744
13287
|
initialSource: nodeType
|
|
12745
13288
|
}];
|
|
12746
|
-
var
|
|
13289
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12747
13290
|
querySelectHeadersList: querySelectHeadersList,
|
|
12748
13291
|
extralHeaders: extralHeaders
|
|
12749
13292
|
});
|
|
12750
13293
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12751
13294
|
'qp-status-eq': 10
|
|
12752
|
-
}, getQueryHeadersItem(
|
|
13295
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12753
13296
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12754
13297
|
});
|
|
12755
13298
|
modalTableProps = _objectSpread2({
|
|
@@ -13075,13 +13618,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13075
13618
|
},
|
|
13076
13619
|
initialSource: nodeType
|
|
13077
13620
|
}];
|
|
13078
|
-
var
|
|
13621
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13079
13622
|
querySelectHeadersList: querySelectHeadersList,
|
|
13080
13623
|
extralHeaders: extralHeaders
|
|
13081
13624
|
});
|
|
13082
13625
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13083
13626
|
'qp-status-eq': 10
|
|
13084
|
-
}, getQueryHeadersItem(
|
|
13627
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13085
13628
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13086
13629
|
});
|
|
13087
13630
|
modalTableProps = _objectSpread2({
|
|
@@ -14026,9 +14569,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14026
14569
|
value = _useState8[0],
|
|
14027
14570
|
setValue = _useState8[1];
|
|
14028
14571
|
var _useState9 = React$1.useState([]),
|
|
14029
|
-
|
|
14030
|
-
propertyList =
|
|
14031
|
-
setPropertyList =
|
|
14572
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14573
|
+
propertyList = _useState10[0],
|
|
14574
|
+
setPropertyList = _useState10[1];
|
|
14032
14575
|
React$1.useEffect(function () {
|
|
14033
14576
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14034
14577
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14552,45 +15095,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14552
15095
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14553
15096
|
headers: headers
|
|
14554
15097
|
}).then(/*#__PURE__*/function () {
|
|
14555
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15098
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14556
15099
|
var _ctx$form;
|
|
14557
15100
|
var resData, coverData, data, dataList;
|
|
14558
|
-
return
|
|
14559
|
-
while (1) switch (_context.
|
|
15101
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15102
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14560
15103
|
case 0:
|
|
14561
15104
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14562
15105
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14563
|
-
_context.
|
|
15106
|
+
_context.next = 13;
|
|
14564
15107
|
break;
|
|
14565
15108
|
}
|
|
14566
15109
|
data = resData.data;
|
|
14567
15110
|
if (!remoteSource.converter) {
|
|
14568
|
-
_context.
|
|
15111
|
+
_context.next = 9;
|
|
14569
15112
|
break;
|
|
14570
15113
|
}
|
|
14571
|
-
_context.
|
|
15114
|
+
_context.next = 6;
|
|
14572
15115
|
return remoteSource.converter({
|
|
14573
15116
|
data: [data]
|
|
14574
15117
|
});
|
|
14575
|
-
case
|
|
14576
|
-
coverData = _context.
|
|
14577
|
-
_context.
|
|
15118
|
+
case 6:
|
|
15119
|
+
coverData = _context.sent;
|
|
15120
|
+
_context.next = 11;
|
|
14578
15121
|
break;
|
|
14579
|
-
case
|
|
15122
|
+
case 9:
|
|
14580
15123
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14581
15124
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14582
15125
|
return _mapSearchTree(ites);
|
|
14583
15126
|
}) || [];
|
|
14584
|
-
case
|
|
14585
|
-
_context.
|
|
15127
|
+
case 11:
|
|
15128
|
+
_context.next = 14;
|
|
14586
15129
|
break;
|
|
14587
|
-
case
|
|
15130
|
+
case 13:
|
|
14588
15131
|
coverData = [];
|
|
14589
|
-
case
|
|
15132
|
+
case 14:
|
|
14590
15133
|
setTreeData(coverData);
|
|
14591
15134
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14592
|
-
case
|
|
14593
|
-
|
|
15135
|
+
case 16:
|
|
15136
|
+
case "end":
|
|
15137
|
+
return _context.stop();
|
|
14594
15138
|
}
|
|
14595
15139
|
}, _callee);
|
|
14596
15140
|
}));
|
|
@@ -14894,7 +15438,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
14894
15438
|
return true;
|
|
14895
15439
|
});
|
|
14896
15440
|
|
|
14897
|
-
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n
|
|
15441
|
+
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF95;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
14898
15442
|
styleInject(css_248z$b);
|
|
14899
15443
|
|
|
14900
15444
|
var index$2 = (function (props) {
|
|
@@ -18892,38 +19436,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18892
19436
|
};
|
|
18893
19437
|
var refs = React$1.useRef(null);
|
|
18894
19438
|
var _useState9 = React$1.useState(''),
|
|
18895
|
-
|
|
18896
|
-
pagePath =
|
|
18897
|
-
setPagePath =
|
|
19439
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19440
|
+
pagePath = _useState10[0],
|
|
19441
|
+
setPagePath = _useState10[1];
|
|
18898
19442
|
var _useLocation = umi.useLocation(),
|
|
18899
19443
|
pathname = _useLocation.pathname,
|
|
18900
19444
|
_useLocation$state = _useLocation.state,
|
|
18901
19445
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18902
|
-
var
|
|
18903
|
-
|
|
18904
|
-
isFullScreen =
|
|
18905
|
-
setIsFnllScreen =
|
|
19446
|
+
var _useState11 = React$1.useState(false),
|
|
19447
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19448
|
+
isFullScreen = _useState12[0],
|
|
19449
|
+
setIsFnllScreen = _useState12[1];
|
|
18906
19450
|
// @ts-nocheck
|
|
18907
19451
|
var value = props;
|
|
18908
19452
|
var _props$fields = props.fields,
|
|
18909
19453
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18910
|
-
var
|
|
18911
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
18912
|
-
showColumn = _useState12[0],
|
|
18913
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
18914
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18915
|
-
var _useState13 = React$1.useState(originSearchFields),
|
|
19454
|
+
var _useState13 = React$1.useState([]),
|
|
18916
19455
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
var
|
|
19456
|
+
showColumn = _useState14[0],
|
|
19457
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19458
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19459
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
18920
19460
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
var _useState17 = React$1.useState(
|
|
19461
|
+
showSearchFields = _useState16[0],
|
|
19462
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19463
|
+
var _useState17 = React$1.useState([]),
|
|
18924
19464
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18925
|
-
|
|
18926
|
-
|
|
19465
|
+
showExportColumn = _useState18[0],
|
|
19466
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19467
|
+
var _useState19 = React$1.useState(''),
|
|
19468
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19469
|
+
height = _useState20[0],
|
|
19470
|
+
setHeight = _useState20[1];
|
|
18927
19471
|
var sortTableRef = React$1.useRef(null);
|
|
18928
19472
|
var searchTableRef = React$1.useRef(null);
|
|
18929
19473
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -19971,19 +20515,22 @@ function outLogin(_x) {
|
|
|
19971
20515
|
return _outLogin.apply(this, arguments);
|
|
19972
20516
|
}
|
|
19973
20517
|
function _outLogin() {
|
|
19974
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20518
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19975
20519
|
var res;
|
|
19976
|
-
return
|
|
19977
|
-
while (1) switch (_context.
|
|
20520
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20521
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19978
20522
|
case 0:
|
|
19979
|
-
_context.
|
|
20523
|
+
_context.next = 2;
|
|
19980
20524
|
return requestUtil({
|
|
19981
20525
|
url: '/user/web/loginOut',
|
|
19982
20526
|
method: 'GET'
|
|
19983
20527
|
});
|
|
19984
|
-
case
|
|
19985
|
-
res = _context.
|
|
19986
|
-
return _context.
|
|
20528
|
+
case 2:
|
|
20529
|
+
res = _context.sent;
|
|
20530
|
+
return _context.abrupt("return", res);
|
|
20531
|
+
case 4:
|
|
20532
|
+
case "end":
|
|
20533
|
+
return _context.stop();
|
|
19987
20534
|
}
|
|
19988
20535
|
}, _callee);
|
|
19989
20536
|
}));
|
|
@@ -20110,20 +20657,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20110
20657
|
});
|
|
20111
20658
|
};
|
|
20112
20659
|
var loginOut = /*#__PURE__*/function () {
|
|
20113
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20660
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20114
20661
|
var sessionId;
|
|
20115
|
-
return
|
|
20116
|
-
while (1) switch (_context.
|
|
20662
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20663
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20117
20664
|
case 0:
|
|
20118
|
-
_context.
|
|
20665
|
+
_context.next = 2;
|
|
20119
20666
|
return getSessionId();
|
|
20120
|
-
case
|
|
20121
|
-
sessionId = _context.
|
|
20122
|
-
_context.
|
|
20667
|
+
case 2:
|
|
20668
|
+
sessionId = _context.sent;
|
|
20669
|
+
_context.next = 5;
|
|
20123
20670
|
return outLogin({
|
|
20124
20671
|
sessionId: sessionId
|
|
20125
20672
|
});
|
|
20126
|
-
case
|
|
20673
|
+
case 5:
|
|
20127
20674
|
// @ts-ignore
|
|
20128
20675
|
if (BUILD_TYPE) {
|
|
20129
20676
|
antd.message.success('退出登录成功');
|
|
@@ -20133,8 +20680,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20133
20680
|
} else {
|
|
20134
20681
|
setLoginOutPath();
|
|
20135
20682
|
}
|
|
20136
|
-
case
|
|
20137
|
-
|
|
20683
|
+
case 6:
|
|
20684
|
+
case "end":
|
|
20685
|
+
return _context.stop();
|
|
20138
20686
|
}
|
|
20139
20687
|
}, _callee);
|
|
20140
20688
|
}));
|
|
@@ -20221,15 +20769,18 @@ function getStoreByName(_x) {
|
|
|
20221
20769
|
return _getStoreByName.apply(this, arguments);
|
|
20222
20770
|
}
|
|
20223
20771
|
function _getStoreByName() {
|
|
20224
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20225
|
-
return
|
|
20226
|
-
while (1) switch (_context.
|
|
20772
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20773
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20774
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20227
20775
|
case 0:
|
|
20228
|
-
return _context.
|
|
20776
|
+
return _context.abrupt("return", requestUtil({
|
|
20229
20777
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20230
20778
|
method: 'GET',
|
|
20231
20779
|
params: _objectSpread2({}, params)
|
|
20232
20780
|
}));
|
|
20781
|
+
case 1:
|
|
20782
|
+
case "end":
|
|
20783
|
+
return _context.stop();
|
|
20233
20784
|
}
|
|
20234
20785
|
}, _callee);
|
|
20235
20786
|
}));
|
|
@@ -20264,33 +20815,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20264
20815
|
openSelect = _useState8[0],
|
|
20265
20816
|
setOpenSelect = _useState8[1];
|
|
20266
20817
|
var _useState9 = React$1.useState([]),
|
|
20267
|
-
|
|
20268
|
-
options =
|
|
20269
|
-
setOptions =
|
|
20270
|
-
var
|
|
20271
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20272
|
-
rescouse = _useState10[0],
|
|
20273
|
-
setRescouse = _useState10[1];
|
|
20274
|
-
var _useState11 = React$1.useState(''),
|
|
20818
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20819
|
+
options = _useState10[0],
|
|
20820
|
+
setOptions = _useState10[1];
|
|
20821
|
+
var _useState11 = React$1.useState([]),
|
|
20275
20822
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
var _useState13 = React$1.useState(
|
|
20823
|
+
rescouse = _useState12[0],
|
|
20824
|
+
setRescouse = _useState12[1];
|
|
20825
|
+
var _useState13 = React$1.useState(''),
|
|
20826
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20827
|
+
searchValue = _useState14[0],
|
|
20828
|
+
setSearchValue = _useState14[1];
|
|
20829
|
+
var _useState15 = React$1.useState([{
|
|
20279
20830
|
label: name,
|
|
20280
20831
|
value: code
|
|
20281
20832
|
}]),
|
|
20282
|
-
|
|
20283
|
-
store =
|
|
20284
|
-
setStore =
|
|
20833
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
20834
|
+
store = _useState16[0],
|
|
20835
|
+
setStore = _useState16[1];
|
|
20285
20836
|
function fetchUserList(_x, _x2) {
|
|
20286
20837
|
return _fetchUserList.apply(this, arguments);
|
|
20287
20838
|
}
|
|
20288
20839
|
function _fetchUserList() {
|
|
20289
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20290
|
-
return
|
|
20291
|
-
while (1) switch (_context3.
|
|
20840
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
20841
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20842
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20292
20843
|
case 0:
|
|
20293
|
-
return _context3.
|
|
20844
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20294
20845
|
orgName: storeName ? storeName : undefined,
|
|
20295
20846
|
platCompanyCode: init ? undefined : key,
|
|
20296
20847
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20309,6 +20860,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20309
20860
|
};
|
|
20310
20861
|
});
|
|
20311
20862
|
}));
|
|
20863
|
+
case 1:
|
|
20864
|
+
case "end":
|
|
20865
|
+
return _context3.stop();
|
|
20312
20866
|
}
|
|
20313
20867
|
}, _callee3);
|
|
20314
20868
|
}));
|
|
@@ -20331,19 +20885,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20331
20885
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
20332
20886
|
}, [debounceTimeout, key]);
|
|
20333
20887
|
var changeInput = /*#__PURE__*/function () {
|
|
20334
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20888
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20335
20889
|
var res;
|
|
20336
|
-
return
|
|
20337
|
-
while (1) switch (_context.
|
|
20890
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20891
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20338
20892
|
case 0:
|
|
20339
|
-
_context.
|
|
20893
|
+
_context.next = 2;
|
|
20340
20894
|
return debounceFetcher(str);
|
|
20341
|
-
case
|
|
20342
|
-
res = _context.
|
|
20895
|
+
case 2:
|
|
20896
|
+
res = _context.sent;
|
|
20343
20897
|
setOptions(res);
|
|
20344
20898
|
setRescouse(res);
|
|
20345
|
-
case
|
|
20346
|
-
|
|
20899
|
+
case 5:
|
|
20900
|
+
case "end":
|
|
20901
|
+
return _context.stop();
|
|
20347
20902
|
}
|
|
20348
20903
|
}, _callee);
|
|
20349
20904
|
}));
|
|
@@ -20352,15 +20907,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20352
20907
|
};
|
|
20353
20908
|
}();
|
|
20354
20909
|
React$1.useEffect(function () {
|
|
20355
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20910
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20356
20911
|
var res;
|
|
20357
|
-
return
|
|
20358
|
-
while (1) switch (_context2.
|
|
20912
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20913
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20359
20914
|
case 0:
|
|
20360
|
-
_context2.
|
|
20915
|
+
_context2.next = 2;
|
|
20361
20916
|
return fetchUserList(undefined, true);
|
|
20362
|
-
case
|
|
20363
|
-
res = _context2.
|
|
20917
|
+
case 2:
|
|
20918
|
+
res = _context2.sent;
|
|
20364
20919
|
res.map(function (item, indexNumber) {
|
|
20365
20920
|
if (item.label === name) {
|
|
20366
20921
|
setIndex(indexNumber);
|
|
@@ -20376,8 +20931,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20376
20931
|
});
|
|
20377
20932
|
setOptions(res);
|
|
20378
20933
|
setRescouse(res);
|
|
20379
|
-
case
|
|
20380
|
-
|
|
20934
|
+
case 6:
|
|
20935
|
+
case "end":
|
|
20936
|
+
return _context2.stop();
|
|
20381
20937
|
}
|
|
20382
20938
|
}, _callee2);
|
|
20383
20939
|
}))();
|
|
@@ -21426,25 +21982,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21426
21982
|
currentOneLevel = _useState8[0],
|
|
21427
21983
|
setCurrentOneLevel = _useState8[1];
|
|
21428
21984
|
var _useState9 = React$1.useState([]),
|
|
21429
|
-
|
|
21430
|
-
SearhData =
|
|
21431
|
-
setSearchMenuData =
|
|
21432
|
-
var
|
|
21433
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21434
|
-
rightMenuHeight = _useState10[0],
|
|
21435
|
-
setHeight = _useState10[1];
|
|
21436
|
-
var _useState11 = React$1.useState(900),
|
|
21985
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21986
|
+
SearhData = _useState10[0],
|
|
21987
|
+
setSearchMenuData = _useState10[1];
|
|
21988
|
+
var _useState11 = React$1.useState(600),
|
|
21437
21989
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
var _useState13 = React$1.useState(
|
|
21990
|
+
rightMenuHeight = _useState12[0],
|
|
21991
|
+
setHeight = _useState12[1];
|
|
21992
|
+
var _useState13 = React$1.useState(900),
|
|
21441
21993
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21442
|
-
|
|
21443
|
-
|
|
21994
|
+
drawHeight = _useState14[0],
|
|
21995
|
+
setDrawHeight = _useState14[1];
|
|
21444
21996
|
var _useState15 = React$1.useState(false),
|
|
21445
21997
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21446
|
-
|
|
21447
|
-
|
|
21998
|
+
moreBtnShow = _useState16[0],
|
|
21999
|
+
setMoreBtnShow = _useState16[1];
|
|
22000
|
+
var _useState17 = React$1.useState(false),
|
|
22001
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
22002
|
+
showScroll = _useState18[0],
|
|
22003
|
+
setShowScroll = _useState18[1];
|
|
21448
22004
|
React$1.useEffect(function () {
|
|
21449
22005
|
var _originRoutes$find;
|
|
21450
22006
|
getMenuContentHeight();
|
|
@@ -23055,11 +23611,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23055
23611
|
},
|
|
23056
23612
|
menu: {
|
|
23057
23613
|
request: function () {
|
|
23058
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23059
|
-
return
|
|
23060
|
-
while (1) switch (_context.
|
|
23614
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23615
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23616
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23061
23617
|
case 0:
|
|
23062
|
-
return _context.
|
|
23618
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23619
|
+
case 1:
|
|
23620
|
+
case "end":
|
|
23621
|
+
return _context.stop();
|
|
23063
23622
|
}
|
|
23064
23623
|
}, _callee);
|
|
23065
23624
|
}));
|
|
@@ -23464,31 +24023,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
23464
24023
|
multiTableData = _useState8[0],
|
|
23465
24024
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23466
24025
|
var _useState9 = React$1.useState(10),
|
|
23467
|
-
|
|
23468
|
-
viewCount =
|
|
23469
|
-
setViewCount =
|
|
24026
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24027
|
+
viewCount = _useState10[0],
|
|
24028
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
23470
24029
|
var itemWidth = 100; // 表格每一项宽度
|
|
23471
|
-
var
|
|
23472
|
-
|
|
23473
|
-
realColHeaderWidth =
|
|
23474
|
-
setLeftWidth =
|
|
24030
|
+
var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24031
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24032
|
+
realColHeaderWidth = _useState12[0],
|
|
24033
|
+
setLeftWidth = _useState12[1];
|
|
23475
24034
|
var viewPort = React$1.useRef(null);
|
|
23476
24035
|
var topScrollBar = React$1.useRef(null);
|
|
23477
24036
|
var leftTableRef = React$1.useRef(null);
|
|
23478
24037
|
//起始渲染item
|
|
23479
|
-
var
|
|
23480
|
-
|
|
23481
|
-
startIndex =
|
|
23482
|
-
setStartIndex =
|
|
24038
|
+
var _useState13 = React$1.useState(0),
|
|
24039
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24040
|
+
startIndex = _useState14[0],
|
|
24041
|
+
setStartIndex = _useState14[1];
|
|
23483
24042
|
//结束渲染item
|
|
23484
24043
|
var endIndex = React$1.useMemo(function () {
|
|
23485
24044
|
return startIndex + viewCount;
|
|
23486
24045
|
}, [startIndex, viewCount]);
|
|
23487
24046
|
//表格偏移量
|
|
23488
|
-
var
|
|
23489
|
-
|
|
23490
|
-
offsetWidth =
|
|
23491
|
-
setOffset =
|
|
24047
|
+
var _useState15 = React$1.useState(0),
|
|
24048
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24049
|
+
offsetWidth = _useState16[0],
|
|
24050
|
+
setOffset = _useState16[1];
|
|
23492
24051
|
React$1.useEffect(function () {
|
|
23493
24052
|
setTimeout(function () {
|
|
23494
24053
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30792,11 +31351,11 @@ var valueType = {
|
|
|
30792
31351
|
};
|
|
30793
31352
|
|
|
30794
31353
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30795
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30796
|
-
return
|
|
30797
|
-
while (1) switch (_context.
|
|
31354
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31355
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31356
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30798
31357
|
case 0:
|
|
30799
|
-
_context.
|
|
31358
|
+
_context.next = 2;
|
|
30800
31359
|
return bssula.request({
|
|
30801
31360
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30802
31361
|
converter: function converter(_ref2) {
|
|
@@ -30809,8 +31368,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30809
31368
|
});
|
|
30810
31369
|
}
|
|
30811
31370
|
});
|
|
30812
|
-
case
|
|
30813
|
-
return _context.
|
|
31371
|
+
case 2:
|
|
31372
|
+
return _context.abrupt("return", _context.sent);
|
|
31373
|
+
case 3:
|
|
31374
|
+
case "end":
|
|
31375
|
+
return _context.stop();
|
|
30814
31376
|
}
|
|
30815
31377
|
}, _callee);
|
|
30816
31378
|
}));
|
|
@@ -30857,12 +31419,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30857
31419
|
value: false
|
|
30858
31420
|
}];
|
|
30859
31421
|
var ref = React$1.useRef();
|
|
30860
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30861
|
-
var _ref$current, source
|
|
30862
|
-
return
|
|
30863
|
-
while (1) switch (_context.
|
|
31422
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31423
|
+
var _ref$current, source;
|
|
31424
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31425
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30864
31426
|
case 0:
|
|
30865
|
-
_context.
|
|
31427
|
+
_context.next = 2;
|
|
30866
31428
|
return setIsShowAndType(function (prev) {
|
|
30867
31429
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30868
31430
|
return {
|
|
@@ -30873,39 +31435,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30873
31435
|
}
|
|
30874
31436
|
return prev;
|
|
30875
31437
|
});
|
|
30876
|
-
case
|
|
31438
|
+
case 2:
|
|
30877
31439
|
if (!record.dictionaryCode) {
|
|
30878
|
-
_context.
|
|
31440
|
+
_context.next = 17;
|
|
30879
31441
|
break;
|
|
30880
31442
|
}
|
|
30881
31443
|
if (!(record.choiceType == 20)) {
|
|
30882
|
-
_context.
|
|
31444
|
+
_context.next = 7;
|
|
30883
31445
|
break;
|
|
30884
31446
|
}
|
|
30885
|
-
|
|
30886
|
-
_context.
|
|
31447
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31448
|
+
_context.next = 15;
|
|
30887
31449
|
break;
|
|
30888
|
-
case
|
|
31450
|
+
case 7:
|
|
30889
31451
|
if (!(record.choiceType == 30)) {
|
|
30890
|
-
_context.
|
|
31452
|
+
_context.next = 13;
|
|
30891
31453
|
break;
|
|
30892
31454
|
}
|
|
30893
|
-
_context.
|
|
31455
|
+
_context.next = 10;
|
|
30894
31456
|
return getDynamicDict(record.dictionaryCode);
|
|
30895
|
-
case
|
|
30896
|
-
|
|
30897
|
-
_context.
|
|
31457
|
+
case 10:
|
|
31458
|
+
_context.t1 = _context.sent;
|
|
31459
|
+
_context.next = 14;
|
|
30898
31460
|
break;
|
|
30899
|
-
case
|
|
30900
|
-
|
|
30901
|
-
case
|
|
30902
|
-
|
|
30903
|
-
case
|
|
30904
|
-
source =
|
|
31461
|
+
case 13:
|
|
31462
|
+
_context.t1 = [];
|
|
31463
|
+
case 14:
|
|
31464
|
+
_context.t0 = _context.t1;
|
|
31465
|
+
case 15:
|
|
31466
|
+
source = _context.t0;
|
|
30905
31467
|
// @ts-ignore
|
|
30906
31468
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30907
|
-
case
|
|
30908
|
-
|
|
31469
|
+
case 17:
|
|
31470
|
+
case "end":
|
|
31471
|
+
return _context.stop();
|
|
30909
31472
|
}
|
|
30910
31473
|
}, _callee);
|
|
30911
31474
|
})));
|
|
@@ -30970,10 +31533,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30970
31533
|
source: {
|
|
30971
31534
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30972
31535
|
type: function () {
|
|
30973
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31536
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30974
31537
|
var form, values, name, relates, source;
|
|
30975
|
-
return
|
|
30976
|
-
while (1) switch (_context2.
|
|
31538
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31539
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30977
31540
|
case 0:
|
|
30978
31541
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30979
31542
|
if (values[0]) {
|
|
@@ -30982,18 +31545,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30982
31545
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30983
31546
|
}
|
|
30984
31547
|
if (!values[1]) {
|
|
30985
|
-
_context2.
|
|
31548
|
+
_context2.next = 9;
|
|
30986
31549
|
break;
|
|
30987
31550
|
}
|
|
30988
|
-
_context2.
|
|
31551
|
+
_context2.next = 5;
|
|
30989
31552
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30990
|
-
case
|
|
30991
|
-
source = _context2.
|
|
31553
|
+
case 5:
|
|
31554
|
+
source = _context2.sent;
|
|
30992
31555
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30993
31556
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30994
31557
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30995
|
-
case
|
|
30996
|
-
|
|
31558
|
+
case 9:
|
|
31559
|
+
case "end":
|
|
31560
|
+
return _context2.stop();
|
|
30997
31561
|
}
|
|
30998
31562
|
}, _callee2);
|
|
30999
31563
|
}));
|
|
@@ -31449,25 +32013,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31449
32013
|
source: {
|
|
31450
32014
|
relates: ['choiceType', 'inputType'],
|
|
31451
32015
|
type: function () {
|
|
31452
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32016
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
31453
32017
|
var values, name, form, source;
|
|
31454
|
-
return
|
|
31455
|
-
while (1) switch (_context3.
|
|
32018
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32019
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31456
32020
|
case 0:
|
|
31457
|
-
values =
|
|
32021
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
31458
32022
|
if (values[1] === 40) {
|
|
31459
32023
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31460
32024
|
form.setFieldVisible(name, false);
|
|
31461
32025
|
}
|
|
31462
32026
|
if (!(values[0] === 30)) {
|
|
31463
|
-
_context3.
|
|
32027
|
+
_context3.next = 10;
|
|
31464
32028
|
break;
|
|
31465
32029
|
}
|
|
31466
|
-
_context3.
|
|
32030
|
+
_context3.next = 5;
|
|
31467
32031
|
return bssula.request({
|
|
31468
32032
|
url: '/basic/dictDynamicItem/queryList',
|
|
31469
|
-
converter: function converter(
|
|
31470
|
-
var data =
|
|
32033
|
+
converter: function converter(_ref11) {
|
|
32034
|
+
var data = _ref11.data;
|
|
31471
32035
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31472
32036
|
return {
|
|
31473
32037
|
text: d.dictCode,
|
|
@@ -31476,16 +32040,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31476
32040
|
});
|
|
31477
32041
|
}
|
|
31478
32042
|
});
|
|
31479
|
-
case
|
|
31480
|
-
source = _context3.
|
|
32043
|
+
case 5:
|
|
32044
|
+
source = _context3.sent;
|
|
31481
32045
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31482
32046
|
form.setFieldVisible(name, true);
|
|
31483
|
-
_context3.
|
|
32047
|
+
_context3.next = 11;
|
|
31484
32048
|
break;
|
|
31485
|
-
case
|
|
32049
|
+
case 10:
|
|
31486
32050
|
form.setFieldVisible(name, false);
|
|
31487
|
-
case
|
|
31488
|
-
|
|
32051
|
+
case 11:
|
|
32052
|
+
case "end":
|
|
32053
|
+
return _context3.stop();
|
|
31489
32054
|
}
|
|
31490
32055
|
}, _callee3);
|
|
31491
32056
|
}));
|
|
@@ -31500,8 +32065,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31500
32065
|
name: 'enumeration',
|
|
31501
32066
|
label: '维护自定义选项',
|
|
31502
32067
|
field: {
|
|
31503
|
-
type: function type(
|
|
31504
|
-
var form =
|
|
32068
|
+
type: function type(_ref12) {
|
|
32069
|
+
var form = _ref12.form;
|
|
31505
32070
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31506
32071
|
type: 'link',
|
|
31507
32072
|
onClick: function onClick() {
|
|
@@ -31527,10 +32092,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31527
32092
|
dependency: {
|
|
31528
32093
|
source: {
|
|
31529
32094
|
relates: ['choiceType'],
|
|
31530
|
-
type: function type(
|
|
31531
|
-
var values =
|
|
31532
|
-
name =
|
|
31533
|
-
form =
|
|
32095
|
+
type: function type(_ref13) {
|
|
32096
|
+
var values = _ref13.values,
|
|
32097
|
+
name = _ref13.name,
|
|
32098
|
+
form = _ref13.form;
|
|
31534
32099
|
if (values[0] === 10) {
|
|
31535
32100
|
form.setFieldVisible(name, true);
|
|
31536
32101
|
} else {
|
|
@@ -31546,10 +32111,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31546
32111
|
dependency: {
|
|
31547
32112
|
visible: {
|
|
31548
32113
|
relates: ['choiceType'],
|
|
31549
|
-
type: function type(
|
|
31550
|
-
var name =
|
|
31551
|
-
values =
|
|
31552
|
-
form =
|
|
32114
|
+
type: function type(_ref14) {
|
|
32115
|
+
var name = _ref14.name,
|
|
32116
|
+
values = _ref14.values,
|
|
32117
|
+
form = _ref14.form;
|
|
31553
32118
|
if (values[0] == 330) {
|
|
31554
32119
|
form.setFieldVisible(name, true);
|
|
31555
32120
|
} else {
|
|
@@ -31573,8 +32138,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31573
32138
|
params: {
|
|
31574
32139
|
'qp-businessType-eq': record.businessType
|
|
31575
32140
|
},
|
|
31576
|
-
converter: function converter(
|
|
31577
|
-
var data =
|
|
32141
|
+
converter: function converter(_ref15) {
|
|
32142
|
+
var data = _ref15.data;
|
|
31578
32143
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31579
32144
|
return {
|
|
31580
32145
|
text: d.name,
|
|
@@ -31614,8 +32179,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31614
32179
|
'qp-businessType-eq': record.businessType,
|
|
31615
32180
|
'qp-status-eq': 1
|
|
31616
32181
|
},
|
|
31617
|
-
converter: function converter(
|
|
31618
|
-
var data =
|
|
32182
|
+
converter: function converter(_ref16) {
|
|
32183
|
+
var data = _ref16.data;
|
|
31619
32184
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31620
32185
|
var _d$code;
|
|
31621
32186
|
return {
|
|
@@ -31643,8 +32208,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31643
32208
|
remoteSource: {
|
|
31644
32209
|
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),
|
|
31645
32210
|
method: 'get',
|
|
31646
|
-
converter: function converter(
|
|
31647
|
-
var data =
|
|
32211
|
+
converter: function converter(_ref17) {
|
|
32212
|
+
var data = _ref17.data;
|
|
31648
32213
|
if (lineDetail.moduleType == 1) {
|
|
31649
32214
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31650
32215
|
return {
|
|
@@ -31670,16 +32235,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31670
32235
|
width: 900,
|
|
31671
32236
|
maskClosable: false,
|
|
31672
32237
|
onOk: function () {
|
|
31673
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32238
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31674
32239
|
var _ref$current4, _res$editableStatus;
|
|
31675
32240
|
var res, _res$defaultValue;
|
|
31676
|
-
return
|
|
31677
|
-
while (1) switch (_context4.
|
|
32241
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32242
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31678
32243
|
case 0:
|
|
31679
|
-
_context4.
|
|
32244
|
+
_context4.next = 2;
|
|
31680
32245
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31681
|
-
case
|
|
31682
|
-
res = _context4.
|
|
32246
|
+
case 2:
|
|
32247
|
+
res = _context4.sent;
|
|
31683
32248
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31684
32249
|
res.fieldGroup = record.fieldGroup;
|
|
31685
32250
|
res.businessType = record.businessType;
|
|
@@ -31706,7 +32271,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31706
32271
|
delete res.formula;
|
|
31707
32272
|
delete res.showValue;
|
|
31708
32273
|
if (!(mode === 'create')) {
|
|
31709
|
-
_context4.
|
|
32274
|
+
_context4.next = 18;
|
|
31710
32275
|
break;
|
|
31711
32276
|
}
|
|
31712
32277
|
bssula.request({
|
|
@@ -31718,8 +32283,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31718
32283
|
onParentOk();
|
|
31719
32284
|
}
|
|
31720
32285
|
});
|
|
31721
|
-
return _context4.
|
|
31722
|
-
case
|
|
32286
|
+
return _context4.abrupt("return");
|
|
32287
|
+
case 18:
|
|
31723
32288
|
bssula.request({
|
|
31724
32289
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31725
32290
|
method: 'PATCH',
|
|
@@ -31729,8 +32294,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31729
32294
|
onParentOk();
|
|
31730
32295
|
}
|
|
31731
32296
|
});
|
|
31732
|
-
case
|
|
31733
|
-
|
|
32297
|
+
case 19:
|
|
32298
|
+
case "end":
|
|
32299
|
+
return _context4.stop();
|
|
31734
32300
|
}
|
|
31735
32301
|
}, _callee4);
|
|
31736
32302
|
}));
|
|
@@ -32186,21 +32752,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
32186
32752
|
jsonEditorVal = _useState8[0],
|
|
32187
32753
|
setJsonEditorVal = _useState8[1];
|
|
32188
32754
|
var _useState9 = React$1.useState({}),
|
|
32189
|
-
|
|
32190
|
-
moduleParams =
|
|
32191
|
-
setModuleParams =
|
|
32192
|
-
var
|
|
32193
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32194
|
-
activeKey = _useState10[0],
|
|
32195
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32196
|
-
var _useState11 = React$1.useState({}),
|
|
32755
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
32756
|
+
moduleParams = _useState10[0],
|
|
32757
|
+
setModuleParams = _useState10[1];
|
|
32758
|
+
var _useState11 = React$1.useState('main'),
|
|
32197
32759
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
var _useState13 = React$1.useState(
|
|
32760
|
+
activeKey = _useState12[0],
|
|
32761
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
32762
|
+
var _useState13 = React$1.useState({}),
|
|
32201
32763
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32202
|
-
|
|
32203
|
-
|
|
32764
|
+
tablesConfigParams = _useState14[0],
|
|
32765
|
+
setTablesConfigParams = _useState14[1];
|
|
32766
|
+
var _useState15 = React$1.useState([]),
|
|
32767
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
32768
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
32769
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32204
32770
|
React$1.useEffect(function () {
|
|
32205
32771
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32206
32772
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32576,11 +33142,11 @@ function getMetaData(_x) {
|
|
|
32576
33142
|
|
|
32577
33143
|
// 获取数据
|
|
32578
33144
|
function _getMetaData() {
|
|
32579
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32580
|
-
return
|
|
32581
|
-
while (1) switch (_context.
|
|
33145
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33146
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33147
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32582
33148
|
case 0:
|
|
32583
|
-
return _context.
|
|
33149
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
32584
33150
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
32585
33151
|
params: {
|
|
32586
33152
|
'qp-entityId-eq': id
|
|
@@ -32592,6 +33158,9 @@ function _getMetaData() {
|
|
|
32592
33158
|
reject([]);
|
|
32593
33159
|
});
|
|
32594
33160
|
}));
|
|
33161
|
+
case 1:
|
|
33162
|
+
case "end":
|
|
33163
|
+
return _context.stop();
|
|
32595
33164
|
}
|
|
32596
33165
|
}, _callee);
|
|
32597
33166
|
}));
|
|
@@ -32795,11 +33364,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32795
33364
|
tableState = _useState4[0],
|
|
32796
33365
|
setTableState = _useState4[1];
|
|
32797
33366
|
var handleOpen = /*#__PURE__*/function () {
|
|
32798
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33367
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32799
33368
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32800
33369
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32801
|
-
return
|
|
32802
|
-
while (1) switch (_context.
|
|
33370
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33371
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32803
33372
|
case 0:
|
|
32804
33373
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32805
33374
|
isSearchForm: props.isSearchForm,
|
|
@@ -32807,16 +33376,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32807
33376
|
searchFormData: searchFormData
|
|
32808
33377
|
});
|
|
32809
33378
|
if (requestConfigNew) {
|
|
32810
|
-
_context.
|
|
33379
|
+
_context.next = 3;
|
|
32811
33380
|
break;
|
|
32812
33381
|
}
|
|
32813
|
-
return _context.
|
|
32814
|
-
case
|
|
33382
|
+
return _context.abrupt("return");
|
|
33383
|
+
case 3:
|
|
32815
33384
|
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;
|
|
32816
|
-
_context.
|
|
33385
|
+
_context.next = 6;
|
|
32817
33386
|
return getMetaData(metaDataId);
|
|
32818
|
-
case
|
|
32819
|
-
metaData = _context.
|
|
33387
|
+
case 6:
|
|
33388
|
+
metaData = _context.sent;
|
|
32820
33389
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32821
33390
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32822
33391
|
})) || [];
|
|
@@ -32856,8 +33425,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32856
33425
|
// @ts-ignore
|
|
32857
33426
|
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);
|
|
32858
33427
|
}
|
|
32859
|
-
case
|
|
32860
|
-
|
|
33428
|
+
case 14:
|
|
33429
|
+
case "end":
|
|
33430
|
+
return _context.stop();
|
|
32861
33431
|
}
|
|
32862
33432
|
}, _callee);
|
|
32863
33433
|
}));
|
|
@@ -32960,7 +33530,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32960
33530
|
}, [requestConfig, tableState.columns]);
|
|
32961
33531
|
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';
|
|
32962
33532
|
var handleOk = function handleOk(rowData) {
|
|
32963
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33533
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
32964
33534
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
32965
33535
|
//多选数据处理
|
|
32966
33536
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -32971,9 +33541,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32971
33541
|
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()) || [];
|
|
32972
33542
|
var realSelectedRows = selectedRows;
|
|
32973
33543
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
32974
|
-
var _queryTableRef$
|
|
33544
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
32975
33545
|
// @ts-ignore
|
|
32976
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33546
|
+
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()) || [];
|
|
32977
33547
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
32978
33548
|
return selectedKesys.includes(s[rowKey]);
|
|
32979
33549
|
});
|
|
@@ -33006,10 +33576,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33006
33576
|
});
|
|
33007
33577
|
}
|
|
33008
33578
|
mappings.map(function (item) {
|
|
33009
|
-
var _props$
|
|
33010
|
-
if (((_props$
|
|
33011
|
-
var _props$
|
|
33012
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33579
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
33580
|
+
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]) {
|
|
33581
|
+
var _props$customSelector14, _props$customSelector15;
|
|
33582
|
+
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];
|
|
33013
33583
|
}
|
|
33014
33584
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33015
33585
|
});
|
|
@@ -33064,10 +33634,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33064
33634
|
}
|
|
33065
33635
|
props.onCancel();
|
|
33066
33636
|
//@ts-ignore
|
|
33067
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33637
|
+
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();
|
|
33068
33638
|
};
|
|
33069
33639
|
var config = React$1.useMemo(function () {
|
|
33070
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33640
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33071
33641
|
var returnConfig = {
|
|
33072
33642
|
size: 'small',
|
|
33073
33643
|
needPageHeader: false,
|
|
@@ -33076,7 +33646,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33076
33646
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33077
33647
|
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) {
|
|
33078
33648
|
return v.key || v;
|
|
33079
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33649
|
+
})) || (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))
|
|
33080
33650
|
} : false,
|
|
33081
33651
|
remoteDataSource: remoteDataSource,
|
|
33082
33652
|
fields: tableState.fields,
|
|
@@ -33084,8 +33654,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33084
33654
|
rowKey: rowKey,
|
|
33085
33655
|
tableProps: !isView && {
|
|
33086
33656
|
rowClassName: function rowClassName(record) {
|
|
33087
|
-
var _props$
|
|
33088
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33657
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
33658
|
+
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' : '';
|
|
33089
33659
|
},
|
|
33090
33660
|
onRow: function onRow(record) {
|
|
33091
33661
|
return {
|
|
@@ -33130,10 +33700,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33130
33700
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
33131
33701
|
type: "default",
|
|
33132
33702
|
onClick: function onClick() {
|
|
33133
|
-
var _queryTableRef$
|
|
33703
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33134
33704
|
props.onCancel();
|
|
33135
33705
|
//@ts-ignore
|
|
33136
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33706
|
+
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();
|
|
33137
33707
|
}
|
|
33138
33708
|
}, "\u53D6\u6D88"))));
|
|
33139
33709
|
});
|
|
@@ -33357,19 +33927,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33357
33927
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33358
33928
|
handSource = _useState2[0],
|
|
33359
33929
|
setHandSource = _useState2[1];
|
|
33360
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33930
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33361
33931
|
var resData, data;
|
|
33362
|
-
return
|
|
33363
|
-
while (1) switch (_context.
|
|
33932
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33933
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33364
33934
|
case 0:
|
|
33365
33935
|
if (!(!source && initRequestSource)) {
|
|
33366
|
-
_context.
|
|
33936
|
+
_context.next = 6;
|
|
33367
33937
|
break;
|
|
33368
33938
|
}
|
|
33369
|
-
_context.
|
|
33939
|
+
_context.next = 3;
|
|
33370
33940
|
return initRequestSource();
|
|
33371
|
-
case
|
|
33372
|
-
resData = _context.
|
|
33941
|
+
case 3:
|
|
33942
|
+
resData = _context.sent;
|
|
33373
33943
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33374
33944
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33375
33945
|
label: item.text,
|
|
@@ -33377,8 +33947,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33377
33947
|
});
|
|
33378
33948
|
})) || [];
|
|
33379
33949
|
setHandSource(data);
|
|
33380
|
-
case
|
|
33381
|
-
|
|
33950
|
+
case 6:
|
|
33951
|
+
case "end":
|
|
33952
|
+
return _context.stop();
|
|
33382
33953
|
}
|
|
33383
33954
|
}, _callee);
|
|
33384
33955
|
})), []);
|
|
@@ -33508,17 +34079,20 @@ function getRegularThresholdRange(_x) {
|
|
|
33508
34079
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33509
34080
|
}
|
|
33510
34081
|
function _getRegularThresholdRange() {
|
|
33511
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33512
|
-
return
|
|
33513
|
-
while (1) switch (_context.
|
|
34082
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
34083
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34084
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33514
34085
|
case 0:
|
|
33515
|
-
return _context.
|
|
34086
|
+
return _context.abrupt("return", requestUtil({
|
|
33516
34087
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33517
34088
|
method: 'POST',
|
|
33518
34089
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33519
34090
|
queryIdentify: undefined
|
|
33520
34091
|
})
|
|
33521
34092
|
}));
|
|
34093
|
+
case 1:
|
|
34094
|
+
case "end":
|
|
34095
|
+
return _context.stop();
|
|
33522
34096
|
}
|
|
33523
34097
|
}, _callee);
|
|
33524
34098
|
}));
|
|
@@ -33659,24 +34233,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33659
34233
|
};
|
|
33660
34234
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33661
34235
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33662
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34236
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33663
34237
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33664
|
-
return
|
|
33665
|
-
while (1) switch (_context.
|
|
34238
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34239
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33666
34240
|
case 0:
|
|
33667
34241
|
if (queryIdentify) {
|
|
33668
|
-
_context.
|
|
34242
|
+
_context.next = 2;
|
|
33669
34243
|
break;
|
|
33670
34244
|
}
|
|
33671
|
-
return _context.
|
|
33672
|
-
case
|
|
34245
|
+
return _context.abrupt("return");
|
|
34246
|
+
case 2:
|
|
33673
34247
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33674
34248
|
extraRequestUrl = '';
|
|
33675
34249
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33676
34250
|
if (!queryIdentityInfo.find(function (item) {
|
|
33677
34251
|
return item.identity == propertyCode;
|
|
33678
34252
|
})) {
|
|
33679
|
-
_context.
|
|
34253
|
+
_context.next = 10;
|
|
33680
34254
|
break;
|
|
33681
34255
|
}
|
|
33682
34256
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33690,15 +34264,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33690
34264
|
if (!needQueryList.some(function (item) {
|
|
33691
34265
|
return !querParams[item] || !querParams[item].length;
|
|
33692
34266
|
})) {
|
|
33693
|
-
_context.
|
|
34267
|
+
_context.next = 9;
|
|
33694
34268
|
break;
|
|
33695
34269
|
}
|
|
33696
|
-
return _context.
|
|
33697
|
-
case
|
|
34270
|
+
return _context.abrupt("return");
|
|
34271
|
+
case 9:
|
|
33698
34272
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33699
34273
|
return item.identity == propertyCode;
|
|
33700
34274
|
}).requestUrl || '';
|
|
33701
|
-
case
|
|
34275
|
+
case 10:
|
|
33702
34276
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33703
34277
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33704
34278
|
querParams = {
|
|
@@ -33709,7 +34283,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33709
34283
|
// querParams = { dictCode: queryIdentify }
|
|
33710
34284
|
}
|
|
33711
34285
|
if (!extraRequestUrl) {
|
|
33712
|
-
_context.
|
|
34286
|
+
_context.next = 16;
|
|
33713
34287
|
break;
|
|
33714
34288
|
}
|
|
33715
34289
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33748,42 +34322,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33748
34322
|
return handleData;
|
|
33749
34323
|
}
|
|
33750
34324
|
});
|
|
33751
|
-
_context.
|
|
34325
|
+
_context.next = 29;
|
|
33752
34326
|
break;
|
|
33753
|
-
case
|
|
34327
|
+
case 16:
|
|
33754
34328
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33755
|
-
_context.
|
|
34329
|
+
_context.next = 20;
|
|
33756
34330
|
break;
|
|
33757
34331
|
}
|
|
33758
34332
|
_this.setState({
|
|
33759
34333
|
thresholdList: queryIdentify
|
|
33760
34334
|
});
|
|
33761
|
-
_context.
|
|
34335
|
+
_context.next = 29;
|
|
33762
34336
|
break;
|
|
33763
|
-
case
|
|
34337
|
+
case 20:
|
|
33764
34338
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33765
|
-
_context.
|
|
34339
|
+
_context.next = 24;
|
|
33766
34340
|
break;
|
|
33767
34341
|
}
|
|
33768
34342
|
// TODO待处理
|
|
33769
34343
|
_this.setState({
|
|
33770
34344
|
thresholdList: []
|
|
33771
34345
|
});
|
|
33772
|
-
_context.
|
|
34346
|
+
_context.next = 29;
|
|
33773
34347
|
break;
|
|
33774
|
-
case
|
|
34348
|
+
case 24:
|
|
33775
34349
|
querParams.queryIdentify = queryIdentify;
|
|
33776
|
-
_context.
|
|
34350
|
+
_context.next = 27;
|
|
33777
34351
|
return getRegularThresholdRange(querParams);
|
|
33778
|
-
case
|
|
33779
|
-
res = _context.
|
|
34352
|
+
case 27:
|
|
34353
|
+
res = _context.sent;
|
|
33780
34354
|
if (handleError(res)) {
|
|
33781
34355
|
_this.setState({
|
|
33782
34356
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33783
34357
|
});
|
|
33784
34358
|
}
|
|
33785
|
-
case
|
|
33786
|
-
|
|
34359
|
+
case 29:
|
|
34360
|
+
case "end":
|
|
34361
|
+
return _context.stop();
|
|
33787
34362
|
}
|
|
33788
34363
|
}, _callee);
|
|
33789
34364
|
}));
|
|
@@ -34615,11 +35190,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34615
35190
|
isAll: true,
|
|
34616
35191
|
needNameAndCode: true,
|
|
34617
35192
|
notChangeOnSelect: true,
|
|
34618
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34619
|
-
return
|
|
34620
|
-
while (1) switch (_context2.
|
|
35193
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35194
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35195
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34621
35196
|
case 0:
|
|
34622
|
-
_context2.
|
|
35197
|
+
_context2.next = 2;
|
|
34623
35198
|
return bssula.request({
|
|
34624
35199
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34625
35200
|
method: 'get',
|
|
@@ -34636,8 +35211,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34636
35211
|
return handleData;
|
|
34637
35212
|
}
|
|
34638
35213
|
});
|
|
34639
|
-
case
|
|
34640
|
-
return _context2.
|
|
35214
|
+
case 2:
|
|
35215
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35216
|
+
case 3:
|
|
35217
|
+
case "end":
|
|
35218
|
+
return _context2.stop();
|
|
34641
35219
|
}
|
|
34642
35220
|
}, _callee2);
|
|
34643
35221
|
})),
|
|
@@ -34661,11 +35239,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34661
35239
|
isAll: true,
|
|
34662
35240
|
needNameAndCode: true,
|
|
34663
35241
|
notChangeOnSelect: true,
|
|
34664
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34665
|
-
return
|
|
34666
|
-
while (1) switch (_context3.
|
|
35242
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35243
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35244
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
34667
35245
|
case 0:
|
|
34668
|
-
_context3.
|
|
35246
|
+
_context3.next = 2;
|
|
34669
35247
|
return bssula.request({
|
|
34670
35248
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34671
35249
|
method: 'get',
|
|
@@ -34682,8 +35260,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34682
35260
|
return handleData;
|
|
34683
35261
|
}
|
|
34684
35262
|
});
|
|
34685
|
-
case
|
|
34686
|
-
return _context3.
|
|
35263
|
+
case 2:
|
|
35264
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35265
|
+
case 3:
|
|
35266
|
+
case "end":
|
|
35267
|
+
return _context3.stop();
|
|
34687
35268
|
}
|
|
34688
35269
|
}, _callee3);
|
|
34689
35270
|
})),
|
|
@@ -34709,11 +35290,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34709
35290
|
isAll: true,
|
|
34710
35291
|
needNameAndCode: true,
|
|
34711
35292
|
notChangeOnSelect: true,
|
|
34712
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34713
|
-
return
|
|
34714
|
-
while (1) switch (_context4.
|
|
35293
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35294
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35295
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
34715
35296
|
case 0:
|
|
34716
|
-
_context4.
|
|
35297
|
+
_context4.next = 2;
|
|
34717
35298
|
return bssula.request({
|
|
34718
35299
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34719
35300
|
method: 'get',
|
|
@@ -34730,8 +35311,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34730
35311
|
return handleData;
|
|
34731
35312
|
}
|
|
34732
35313
|
});
|
|
34733
|
-
case
|
|
34734
|
-
return _context4.
|
|
35314
|
+
case 2:
|
|
35315
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35316
|
+
case 3:
|
|
35317
|
+
case "end":
|
|
35318
|
+
return _context4.stop();
|
|
34735
35319
|
}
|
|
34736
35320
|
}, _callee4);
|
|
34737
35321
|
})),
|
|
@@ -35418,8 +36002,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35418
36002
|
}
|
|
35419
36003
|
}));
|
|
35420
36004
|
} else {
|
|
35421
|
-
var
|
|
35422
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36005
|
+
var _values10;
|
|
36006
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35423
36007
|
return {
|
|
35424
36008
|
key: s,
|
|
35425
36009
|
label: valueNames[vIndex],
|
|
@@ -35697,8 +36281,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35697
36281
|
}
|
|
35698
36282
|
}));
|
|
35699
36283
|
} else {
|
|
35700
|
-
var
|
|
35701
|
-
var
|
|
36284
|
+
var _values11;
|
|
36285
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
35702
36286
|
return {
|
|
35703
36287
|
key: s,
|
|
35704
36288
|
label: valueNames[vIndex],
|
|
@@ -35720,7 +36304,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35720
36304
|
} : {}),
|
|
35721
36305
|
disabled: disabled,
|
|
35722
36306
|
labelInValue: true,
|
|
35723
|
-
value:
|
|
36307
|
+
value: _currentValue10,
|
|
35724
36308
|
requestConfig: {
|
|
35725
36309
|
filterInit: 'qp-code-in'
|
|
35726
36310
|
},
|
|
@@ -35813,8 +36397,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35813
36397
|
}
|
|
35814
36398
|
}));
|
|
35815
36399
|
} else {
|
|
35816
|
-
var
|
|
35817
|
-
var
|
|
36400
|
+
var _values12;
|
|
36401
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
35818
36402
|
return {
|
|
35819
36403
|
key: s,
|
|
35820
36404
|
label: valueNames[vIndex],
|
|
@@ -35836,7 +36420,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35836
36420
|
} : {}),
|
|
35837
36421
|
disabled: disabled,
|
|
35838
36422
|
labelInValue: true,
|
|
35839
|
-
value:
|
|
36423
|
+
value: _currentValue11,
|
|
35840
36424
|
requestConfig: {
|
|
35841
36425
|
filterInit: 'qp-code-in'
|
|
35842
36426
|
},
|
|
@@ -35929,8 +36513,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35929
36513
|
}
|
|
35930
36514
|
}));
|
|
35931
36515
|
} else {
|
|
35932
|
-
var
|
|
35933
|
-
var
|
|
36516
|
+
var _values13;
|
|
36517
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
35934
36518
|
return {
|
|
35935
36519
|
key: s,
|
|
35936
36520
|
label: valueNames[vIndex],
|
|
@@ -35952,7 +36536,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35952
36536
|
} : {}),
|
|
35953
36537
|
disabled: disabled,
|
|
35954
36538
|
labelInValue: true,
|
|
35955
|
-
value:
|
|
36539
|
+
value: _currentValue12,
|
|
35956
36540
|
requestConfig: {
|
|
35957
36541
|
filterInit: 'qp-brandCode-in'
|
|
35958
36542
|
},
|
|
@@ -36143,8 +36727,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36143
36727
|
}
|
|
36144
36728
|
}));
|
|
36145
36729
|
} else {
|
|
36146
|
-
var
|
|
36147
|
-
var
|
|
36730
|
+
var _values14;
|
|
36731
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36148
36732
|
return {
|
|
36149
36733
|
key: s,
|
|
36150
36734
|
label: valueNames[vIndex]
|
|
@@ -36172,7 +36756,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36172
36756
|
isSearchForm: true,
|
|
36173
36757
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36174
36758
|
disabled: disabled,
|
|
36175
|
-
value:
|
|
36759
|
+
value: _currentValue13,
|
|
36176
36760
|
onChange: function onChange(value, sourceList) {
|
|
36177
36761
|
if (dataInputBusinessType === 12) {
|
|
36178
36762
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36492,9 +37076,9 @@ var App$1 = function App(_ref) {
|
|
|
36492
37076
|
UpdateState(res);
|
|
36493
37077
|
};
|
|
36494
37078
|
var _useState9 = React$1.useState(false),
|
|
36495
|
-
|
|
36496
|
-
isModalVisible =
|
|
36497
|
-
setIsModalVisible =
|
|
37079
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37080
|
+
isModalVisible = _useState10[0],
|
|
37081
|
+
setIsModalVisible = _useState10[1];
|
|
36498
37082
|
var showModal = function showModal() {
|
|
36499
37083
|
setIsModalVisible(true);
|
|
36500
37084
|
};
|
|
@@ -36975,26 +37559,27 @@ function RenderCompItem(props) {
|
|
|
36975
37559
|
dictData = _useState2[0],
|
|
36976
37560
|
setDictData = _useState2[1];
|
|
36977
37561
|
var getDictData = /*#__PURE__*/function () {
|
|
36978
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37562
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36979
37563
|
var _data$map;
|
|
36980
37564
|
var data;
|
|
36981
|
-
return
|
|
36982
|
-
while (1) switch (_context.
|
|
37565
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37566
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36983
37567
|
case 0:
|
|
36984
|
-
_context.
|
|
37568
|
+
_context.next = 2;
|
|
36985
37569
|
return bssula.request({
|
|
36986
37570
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
36987
37571
|
});
|
|
36988
|
-
case
|
|
36989
|
-
data = _context.
|
|
37572
|
+
case 2:
|
|
37573
|
+
data = _context.sent;
|
|
36990
37574
|
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) {
|
|
36991
37575
|
return {
|
|
36992
37576
|
text: item.dictItemName,
|
|
36993
37577
|
value: item.dictItemCode
|
|
36994
37578
|
};
|
|
36995
37579
|
}));
|
|
36996
|
-
case
|
|
36997
|
-
|
|
37580
|
+
case 4:
|
|
37581
|
+
case "end":
|
|
37582
|
+
return _context.stop();
|
|
36998
37583
|
}
|
|
36999
37584
|
}, _callee);
|
|
37000
37585
|
}));
|
|
@@ -37235,11 +37820,11 @@ function RenderCompItem(props) {
|
|
|
37235
37820
|
needNameAndCode: true,
|
|
37236
37821
|
notChangeOnSelect: true,
|
|
37237
37822
|
initRequestSource: function () {
|
|
37238
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37239
|
-
return
|
|
37240
|
-
while (1) switch (_context2.
|
|
37823
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
37824
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
37825
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37241
37826
|
case 0:
|
|
37242
|
-
_context2.
|
|
37827
|
+
_context2.next = 2;
|
|
37243
37828
|
return bssula.request({
|
|
37244
37829
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37245
37830
|
method: 'get',
|
|
@@ -37257,8 +37842,11 @@ function RenderCompItem(props) {
|
|
|
37257
37842
|
return handleData;
|
|
37258
37843
|
}
|
|
37259
37844
|
});
|
|
37260
|
-
case
|
|
37261
|
-
return _context2.
|
|
37845
|
+
case 2:
|
|
37846
|
+
return _context2.abrupt("return", _context2.sent);
|
|
37847
|
+
case 3:
|
|
37848
|
+
case "end":
|
|
37849
|
+
return _context2.stop();
|
|
37262
37850
|
}
|
|
37263
37851
|
}, _callee2);
|
|
37264
37852
|
}));
|
|
@@ -38048,7 +38636,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38048
38636
|
display: 'flex',
|
|
38049
38637
|
marginBottom: '0px',
|
|
38050
38638
|
padding: '10px 0px'
|
|
38051
|
-
}
|
|
38639
|
+
},
|
|
38640
|
+
key: itemDetail.elementId
|
|
38052
38641
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38053
38642
|
className: 'logical_operate_content',
|
|
38054
38643
|
style: {
|
|
@@ -39308,13 +39897,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39308
39897
|
ruleTypeData = _useState8[0],
|
|
39309
39898
|
setRuleTypeData = _useState8[1];
|
|
39310
39899
|
var _useState9 = React$1.useState([]),
|
|
39311
|
-
|
|
39312
|
-
ruleReturnConfig =
|
|
39313
|
-
setRuleReturnConfig =
|
|
39314
|
-
var
|
|
39315
|
-
|
|
39316
|
-
templateData =
|
|
39317
|
-
setTemplateData =
|
|
39900
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39901
|
+
ruleReturnConfig = _useState10[0],
|
|
39902
|
+
setRuleReturnConfig = _useState10[1];
|
|
39903
|
+
var _useState11 = React$1.useState({}),
|
|
39904
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39905
|
+
templateData = _useState12[0],
|
|
39906
|
+
setTemplateData = _useState12[1];
|
|
39318
39907
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39319
39908
|
bssula.request({
|
|
39320
39909
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39650,25 +40239,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
39650
40239
|
regularDataList = _useState8[0],
|
|
39651
40240
|
setRegularDataList = _useState8[1];
|
|
39652
40241
|
var _useState9 = React$1.useState([]),
|
|
39653
|
-
|
|
39654
|
-
baseRuleDetailList =
|
|
39655
|
-
setBaseRuleDetailList =
|
|
39656
|
-
var
|
|
39657
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
39658
|
-
systemVariableList = _useState10[0],
|
|
39659
|
-
setSystemVariableList = _useState10[1];
|
|
39660
|
-
var _useState11 = React$1.useState(false),
|
|
40242
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40243
|
+
baseRuleDetailList = _useState10[0],
|
|
40244
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40245
|
+
var _useState11 = React$1.useState([]),
|
|
39661
40246
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39662
|
-
|
|
39663
|
-
|
|
40247
|
+
systemVariableList = _useState12[0],
|
|
40248
|
+
setSystemVariableList = _useState12[1];
|
|
39664
40249
|
var _useState13 = React$1.useState(false),
|
|
39665
40250
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39666
|
-
|
|
39667
|
-
|
|
40251
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40252
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39668
40253
|
var _useState15 = React$1.useState(false),
|
|
39669
40254
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39670
|
-
|
|
39671
|
-
|
|
40255
|
+
isGetRuleDataRes = _useState16[0],
|
|
40256
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40257
|
+
var _useState17 = React$1.useState(false),
|
|
40258
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40259
|
+
groupOtherPriorityList = _useState18[0],
|
|
40260
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
39672
40261
|
var baseRuleRef = React$1.useRef();
|
|
39673
40262
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39674
40263
|
// 查询规则组下所有规则实例
|