@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.1-alpha.1-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.umirc.ts +9 -9
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1171 -1120
- package/dist/index.js +1171 -1120
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +11 -10
- package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +221 -13
- package/src/components/Business/SearchSelect/index.md +1 -1
- package/src/components/Functional/DataValidation/index.tsx +22 -3
- package/src/components/Functional/SearchSelect/index.tsx +1 -0
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
- package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
package/dist/index.esm.js
CHANGED
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
193
|
}
|
|
194
194
|
return i;
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
197
197
|
if (null == r) return {};
|
|
198
198
|
var t = {};
|
|
199
199
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (e.
|
|
200
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
201
201
|
t[n] = r[n];
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
@@ -207,306 +207,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
207
207
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
208
|
return _assertThisInitialized(t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
210
|
+
function _regenerator() {
|
|
211
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
212
|
+
var e,
|
|
213
|
+
t,
|
|
214
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
215
|
+
n = r.iterator || "@@iterator",
|
|
216
|
+
o = r.toStringTag || "@@toStringTag";
|
|
217
|
+
function i(r, n, o, i) {
|
|
218
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
219
|
+
u = Object.create(c.prototype);
|
|
220
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
221
|
+
var i,
|
|
222
|
+
c,
|
|
223
|
+
u,
|
|
224
|
+
f = 0,
|
|
225
|
+
p = o || [],
|
|
226
|
+
y = !1,
|
|
227
|
+
G = {
|
|
228
|
+
p: 0,
|
|
229
|
+
n: 0,
|
|
230
|
+
v: e,
|
|
231
|
+
a: d,
|
|
232
|
+
f: d.bind(e, 4),
|
|
233
|
+
d: function (t, r) {
|
|
234
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
function d(r, n) {
|
|
238
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
239
|
+
var o,
|
|
240
|
+
i = p[t],
|
|
241
|
+
d = G.p,
|
|
242
|
+
l = i[2];
|
|
243
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
244
|
+
}
|
|
245
|
+
if (o || r > 1) return a;
|
|
246
|
+
throw y = !0, n;
|
|
247
|
+
}
|
|
248
|
+
return function (o, p, l) {
|
|
249
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
250
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
251
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
252
|
+
try {
|
|
253
|
+
if (f = 2, i) {
|
|
254
|
+
if (c || (o = "next"), t = i[o]) {
|
|
255
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
256
|
+
if (!t.done) return t;
|
|
257
|
+
u = t.value, c < 2 && (c = 0);
|
|
258
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
259
|
+
i = e;
|
|
260
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
261
|
+
} catch (t) {
|
|
262
|
+
i = e, c = 1, u = t;
|
|
263
|
+
} finally {
|
|
264
|
+
f = 1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
value: t,
|
|
269
|
+
done: y
|
|
270
|
+
};
|
|
258
271
|
};
|
|
259
|
-
}
|
|
272
|
+
}(r, o, i), !0), u;
|
|
260
273
|
}
|
|
261
|
-
|
|
262
|
-
var h = "suspendedStart",
|
|
263
|
-
l = "suspendedYield",
|
|
264
|
-
f = "executing",
|
|
265
|
-
s = "completed",
|
|
266
|
-
y = {};
|
|
274
|
+
var a = {};
|
|
267
275
|
function Generator() {}
|
|
268
276
|
function GeneratorFunction() {}
|
|
269
277
|
function GeneratorFunctionPrototype() {}
|
|
270
|
-
|
|
271
|
-
|
|
278
|
+
t = Object.getPrototypeOf;
|
|
279
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
280
|
+
return this;
|
|
281
|
+
}), t),
|
|
282
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
283
|
+
function f(e) {
|
|
284
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
285
|
+
}
|
|
286
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
272
287
|
return this;
|
|
273
|
-
})
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
277
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
278
|
-
function defineIteratorMethods(t) {
|
|
279
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
280
|
-
define(t, e, function (t) {
|
|
281
|
-
return this._invoke(e, t);
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function AsyncIterator(t, e) {
|
|
286
|
-
function invoke(r, o, i, a) {
|
|
287
|
-
var c = tryCatch(t[r], t, o);
|
|
288
|
-
if ("throw" !== c.type) {
|
|
289
|
-
var u = c.arg,
|
|
290
|
-
h = u.value;
|
|
291
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
292
|
-
invoke("next", t, i, a);
|
|
293
|
-
}, function (t) {
|
|
294
|
-
invoke("throw", t, i, a);
|
|
295
|
-
}) : e.resolve(h).then(function (t) {
|
|
296
|
-
u.value = t, i(u);
|
|
297
|
-
}, function (t) {
|
|
298
|
-
return invoke("throw", t, i, a);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
a(c.arg);
|
|
302
|
-
}
|
|
303
|
-
var r;
|
|
304
|
-
o(this, "_invoke", {
|
|
305
|
-
value: function (t, n) {
|
|
306
|
-
function callInvokeWithMethodAndArg() {
|
|
307
|
-
return new e(function (e, r) {
|
|
308
|
-
invoke(t, n, e, r);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function makeInvokeMethod(e, r, n) {
|
|
316
|
-
var o = h;
|
|
317
|
-
return function (i, a) {
|
|
318
|
-
if (o === f) throw Error("Generator is already running");
|
|
319
|
-
if (o === s) {
|
|
320
|
-
if ("throw" === i) throw a;
|
|
321
|
-
return {
|
|
322
|
-
value: t,
|
|
323
|
-
done: !0
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
for (n.method = i, n.arg = a;;) {
|
|
327
|
-
var c = n.delegate;
|
|
328
|
-
if (c) {
|
|
329
|
-
var u = maybeInvokeDelegate(c, n);
|
|
330
|
-
if (u) {
|
|
331
|
-
if (u === y) continue;
|
|
332
|
-
return u;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
336
|
-
if (o === h) throw o = s, n.arg;
|
|
337
|
-
n.dispatchException(n.arg);
|
|
338
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
339
|
-
o = f;
|
|
340
|
-
var p = tryCatch(e, r, n);
|
|
341
|
-
if ("normal" === p.type) {
|
|
342
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
343
|
-
return {
|
|
344
|
-
value: p.arg,
|
|
345
|
-
done: n.done
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function maybeInvokeDelegate(e, r) {
|
|
353
|
-
var n = r.method,
|
|
354
|
-
o = e.iterator[n];
|
|
355
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
356
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
357
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
358
|
-
var a = i.arg;
|
|
359
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
360
|
-
}
|
|
361
|
-
function pushTryEntry(t) {
|
|
362
|
-
var e = {
|
|
363
|
-
tryLoc: t[0]
|
|
364
|
-
};
|
|
365
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
366
|
-
}
|
|
367
|
-
function resetTryEntry(t) {
|
|
368
|
-
var e = t.completion || {};
|
|
369
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
370
|
-
}
|
|
371
|
-
function Context(t) {
|
|
372
|
-
this.tryEntries = [{
|
|
373
|
-
tryLoc: "root"
|
|
374
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
375
|
-
}
|
|
376
|
-
function values(e) {
|
|
377
|
-
if (e || "" === e) {
|
|
378
|
-
var r = e[a];
|
|
379
|
-
if (r) return r.call(e);
|
|
380
|
-
if ("function" == typeof e.next) return e;
|
|
381
|
-
if (!isNaN(e.length)) {
|
|
382
|
-
var o = -1,
|
|
383
|
-
i = function next() {
|
|
384
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
385
|
-
return next.value = t, next.done = !0, next;
|
|
386
|
-
};
|
|
387
|
-
return i.next = i;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
391
|
-
}
|
|
392
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
393
|
-
value: GeneratorFunctionPrototype,
|
|
394
|
-
configurable: !0
|
|
395
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
396
|
-
value: GeneratorFunction,
|
|
397
|
-
configurable: !0
|
|
398
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
399
|
-
var e = "function" == typeof t && t.constructor;
|
|
400
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
401
|
-
}, e.mark = function (t) {
|
|
402
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
403
|
-
}, e.awrap = function (t) {
|
|
288
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
289
|
+
return "[object Generator]";
|
|
290
|
+
}), (_regenerator = function () {
|
|
404
291
|
return {
|
|
405
|
-
|
|
292
|
+
w: i,
|
|
293
|
+
m: f
|
|
406
294
|
};
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
r = [];
|
|
422
|
-
for (var n in e) r.push(n);
|
|
423
|
-
return r.reverse(), function next() {
|
|
424
|
-
for (; r.length;) {
|
|
425
|
-
var t = r.pop();
|
|
426
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
427
|
-
}
|
|
428
|
-
return next.done = !0, next;
|
|
429
|
-
};
|
|
430
|
-
}, e.values = values, Context.prototype = {
|
|
431
|
-
constructor: Context,
|
|
432
|
-
reset: function (e) {
|
|
433
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
434
|
-
},
|
|
435
|
-
stop: function () {
|
|
436
|
-
this.done = !0;
|
|
437
|
-
var t = this.tryEntries[0].completion;
|
|
438
|
-
if ("throw" === t.type) throw t.arg;
|
|
439
|
-
return this.rval;
|
|
440
|
-
},
|
|
441
|
-
dispatchException: function (e) {
|
|
442
|
-
if (this.done) throw e;
|
|
443
|
-
var r = this;
|
|
444
|
-
function handle(n, o) {
|
|
445
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
446
|
-
}
|
|
447
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
448
|
-
var i = this.tryEntries[o],
|
|
449
|
-
a = i.completion;
|
|
450
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
451
|
-
if (i.tryLoc <= this.prev) {
|
|
452
|
-
var c = n.call(i, "catchLoc"),
|
|
453
|
-
u = n.call(i, "finallyLoc");
|
|
454
|
-
if (c && u) {
|
|
455
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
456
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
457
|
-
} else if (c) {
|
|
458
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
459
|
-
} else {
|
|
460
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
461
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
abrupt: function (t, e) {
|
|
467
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
468
|
-
var o = this.tryEntries[r];
|
|
469
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
470
|
-
var i = o;
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
475
|
-
var a = i ? i.completion : {};
|
|
476
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
477
|
-
},
|
|
478
|
-
complete: function (t, e) {
|
|
479
|
-
if ("throw" === t.type) throw t.arg;
|
|
480
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
481
|
-
},
|
|
482
|
-
finish: function (t) {
|
|
483
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
484
|
-
var r = this.tryEntries[e];
|
|
485
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
catch: function (t) {
|
|
489
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
490
|
-
var r = this.tryEntries[e];
|
|
491
|
-
if (r.tryLoc === t) {
|
|
492
|
-
var n = r.completion;
|
|
493
|
-
if ("throw" === n.type) {
|
|
494
|
-
var o = n.arg;
|
|
495
|
-
resetTryEntry(r);
|
|
496
|
-
}
|
|
497
|
-
return o;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
throw Error("illegal catch attempt");
|
|
501
|
-
},
|
|
502
|
-
delegateYield: function (e, r, n) {
|
|
503
|
-
return this.delegate = {
|
|
504
|
-
iterator: values(e),
|
|
505
|
-
resultName: r,
|
|
506
|
-
nextLoc: n
|
|
507
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
295
|
+
})();
|
|
296
|
+
}
|
|
297
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
298
|
+
var i = Object.defineProperty;
|
|
299
|
+
try {
|
|
300
|
+
i({}, "", {});
|
|
301
|
+
} catch (e) {
|
|
302
|
+
i = 0;
|
|
303
|
+
}
|
|
304
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
305
|
+
function o(r, n) {
|
|
306
|
+
_regeneratorDefine(e, r, function (e) {
|
|
307
|
+
return this._invoke(r, n, e);
|
|
308
|
+
});
|
|
508
309
|
}
|
|
509
|
-
|
|
310
|
+
r ? i ? i(e, r, {
|
|
311
|
+
value: n,
|
|
312
|
+
enumerable: !t,
|
|
313
|
+
configurable: !t,
|
|
314
|
+
writable: !t
|
|
315
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
316
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
510
317
|
}
|
|
511
318
|
function _setPrototypeOf(t, e) {
|
|
512
319
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1579,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1579
1386
|
// sheepMap是表头字段中英文映射
|
|
1580
1387
|
// sheetCount:表的数量,默认一张
|
|
1581
1388
|
var resolveFile = /*#__PURE__*/function () {
|
|
1582
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1389
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1583
1390
|
var config,
|
|
1584
1391
|
data,
|
|
1585
1392
|
_args = arguments;
|
|
1586
|
-
return
|
|
1587
|
-
while (1) switch (_context.
|
|
1393
|
+
return _regenerator().w(function (_context) {
|
|
1394
|
+
while (1) switch (_context.n) {
|
|
1588
1395
|
case 0:
|
|
1589
1396
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1590
1397
|
sheetMap: [],
|
|
1591
1398
|
sheetCount: 1
|
|
1592
1399
|
};
|
|
1593
|
-
_context.
|
|
1400
|
+
_context.n = 1;
|
|
1594
1401
|
return analyseExcelToByte(file);
|
|
1595
|
-
case
|
|
1596
|
-
data = _context.
|
|
1597
|
-
return _context.
|
|
1402
|
+
case 1:
|
|
1403
|
+
data = _context.v;
|
|
1404
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1598
1405
|
var workbook = read(data, {
|
|
1599
1406
|
type: 'binary'
|
|
1600
1407
|
});
|
|
@@ -1606,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1606
1413
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1607
1414
|
resolve(outdata);
|
|
1608
1415
|
}));
|
|
1609
|
-
case 5:
|
|
1610
|
-
case "end":
|
|
1611
|
-
return _context.stop();
|
|
1612
1416
|
}
|
|
1613
1417
|
}, _callee);
|
|
1614
1418
|
}));
|
|
@@ -1618,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1618
1422
|
}();
|
|
1619
1423
|
//读取文件
|
|
1620
1424
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1621
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1425
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1622
1426
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1623
|
-
return
|
|
1624
|
-
while (1) switch (_context2.
|
|
1427
|
+
return _regenerator().w(function (_context2) {
|
|
1428
|
+
while (1) switch (_context2.n) {
|
|
1625
1429
|
case 0:
|
|
1626
1430
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1627
1431
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1628
|
-
_context2.
|
|
1432
|
+
_context2.n = 3;
|
|
1629
1433
|
break;
|
|
1630
1434
|
}
|
|
1631
1435
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1632
|
-
_context2.
|
|
1436
|
+
_context2.n = 1;
|
|
1633
1437
|
return resolveFile(nowFile.originFileObj, {
|
|
1634
1438
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1635
1439
|
sheetCount: 1
|
|
1636
1440
|
});
|
|
1637
|
-
case
|
|
1638
|
-
data2 = _context2.
|
|
1441
|
+
case 1:
|
|
1442
|
+
data2 = _context2.v;
|
|
1639
1443
|
data = data2[0];
|
|
1640
1444
|
if (data.length) {
|
|
1641
|
-
_context2.
|
|
1445
|
+
_context2.n = 2;
|
|
1642
1446
|
break;
|
|
1643
1447
|
}
|
|
1644
1448
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1645
|
-
return _context2.
|
|
1646
|
-
case
|
|
1449
|
+
return _context2.a(2);
|
|
1450
|
+
case 2:
|
|
1647
1451
|
if (callback) callback(data);
|
|
1648
1452
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1649
|
-
return _context2.
|
|
1650
|
-
case
|
|
1453
|
+
return _context2.a(2, data);
|
|
1454
|
+
case 3:
|
|
1651
1455
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1652
|
-
return _context2.
|
|
1653
|
-
case
|
|
1654
|
-
|
|
1655
|
-
return _context2.stop();
|
|
1456
|
+
return _context2.a(2);
|
|
1457
|
+
case 4:
|
|
1458
|
+
return _context2.a(2);
|
|
1656
1459
|
}
|
|
1657
1460
|
}, _callee2);
|
|
1658
1461
|
}));
|
|
@@ -2604,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2604
2407
|
return request$1(url, parms).then(handleResponseData);
|
|
2605
2408
|
};
|
|
2606
2409
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2607
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2608
|
-
return
|
|
2609
|
-
while (1) switch (_context.
|
|
2410
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2411
|
+
return _regenerator().w(function (_context) {
|
|
2412
|
+
while (1) switch (_context.n) {
|
|
2610
2413
|
case 0:
|
|
2611
|
-
return _context.
|
|
2414
|
+
return _context.a(2, Promise.resolve({
|
|
2612
2415
|
data: response,
|
|
2613
2416
|
status: response.status
|
|
2614
2417
|
}));
|
|
2615
|
-
case 1:
|
|
2616
|
-
case "end":
|
|
2617
|
-
return _context.stop();
|
|
2618
2418
|
}
|
|
2619
2419
|
}, _callee);
|
|
2620
2420
|
}));
|
|
@@ -2987,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2987
2787
|
data: luckysheet.transToCellData(newData)
|
|
2988
2788
|
});
|
|
2989
2789
|
};
|
|
2990
|
-
_this.resetData = function () {
|
|
2790
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
2991
2791
|
var _customerColumnsMappi;
|
|
2992
|
-
var _this$props
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
|
|
3000
|
-
customerColumnsMapping = _this$props.customerColumnsMapping;
|
|
3001
|
-
var resultData = _this.getData().filter(function (d) {
|
|
3002
|
-
return _.compact(Object.values(d)).length;
|
|
3003
|
-
});
|
|
3004
|
-
var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
3005
|
-
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
3006
|
-
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
3007
|
-
return c.name;
|
|
3008
|
-
}) : columns;
|
|
3009
|
-
// 处理业务参数
|
|
3010
|
-
var otherParams = {};
|
|
3011
|
-
if (isBrandAuth) {
|
|
3012
|
-
otherParams = {
|
|
3013
|
-
brandAuth: 'ctl-withAuth'
|
|
3014
|
-
};
|
|
3015
|
-
}
|
|
3016
|
-
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3017
|
-
columns: resultColumns,
|
|
3018
|
-
data: resultData,
|
|
3019
|
-
checkStockNum: isCheckStockNum
|
|
3020
|
-
})).then(function (result) {
|
|
3021
|
-
result = result.data;
|
|
3022
|
-
if (judgeIsRequestError(result)) {
|
|
3023
|
-
message$1.error(result.msg);
|
|
3024
|
-
return;
|
|
3025
|
-
}
|
|
3026
|
-
var items = _this.state.items;
|
|
3027
|
-
var validIndex = items.length;
|
|
3028
|
-
var res = result.data;
|
|
3029
|
-
var sheetData = luckysheet.getSheetData();
|
|
3030
|
-
sheetData.map(function (item, index) {
|
|
3031
|
-
if (!res[index]) return item;
|
|
3032
|
-
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
3033
|
-
return i === 'skuCode';
|
|
3034
|
-
});
|
|
3035
|
-
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
3036
|
-
return i === 'skuCode';
|
|
3037
|
-
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
3038
|
-
item[changeVMIndex].v = res[index].skuCode;
|
|
3039
|
-
item[changeVMIndex].m = res[index].skuCode;
|
|
3040
|
-
}
|
|
3041
|
-
if (res[index].flag) {
|
|
3042
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3043
|
-
v: '通过',
|
|
3044
|
-
m: '通过',
|
|
3045
|
-
fc: 'green' //字体颜色为 "#990000"
|
|
3046
|
-
});
|
|
3047
|
-
} else {
|
|
3048
|
-
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
3049
|
-
v: res[index].checkResults,
|
|
3050
|
-
m: res[index].checkResults,
|
|
3051
|
-
fc: 'red' //字体颜色为 "#990000"
|
|
2792
|
+
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
2793
|
+
return _regenerator().w(function (_context) {
|
|
2794
|
+
while (1) switch (_context.n) {
|
|
2795
|
+
case 0:
|
|
2796
|
+
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
2797
|
+
resultData = _this.getData().filter(function (d) {
|
|
2798
|
+
return _.compact(Object.values(d)).length;
|
|
3052
2799
|
});
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
2800
|
+
resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
|
|
2801
|
+
return !!(c === null || c === void 0 ? void 0 : c.name);
|
|
2802
|
+
})) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
|
|
2803
|
+
return c.name;
|
|
2804
|
+
}) : columns; // 处理业务参数
|
|
2805
|
+
otherParams = {};
|
|
2806
|
+
if (isBrandAuth) {
|
|
2807
|
+
otherParams = {
|
|
2808
|
+
brandAuth: 'ctl-withAuth'
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
// 处理校验参数,隐藏校验参数(公用的部分)
|
|
2812
|
+
if (checkSharedValue) {
|
|
2813
|
+
resultData = resultData.map(function (d) {
|
|
2814
|
+
return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
// 调用回调函数
|
|
2818
|
+
if (!beforeCheckCallback) {
|
|
2819
|
+
_context.n = 2;
|
|
2820
|
+
break;
|
|
2821
|
+
}
|
|
2822
|
+
_context.n = 1;
|
|
2823
|
+
return beforeCheckCallback(resultData);
|
|
2824
|
+
case 1:
|
|
2825
|
+
resultData = _context.v;
|
|
2826
|
+
if (resultData) {
|
|
2827
|
+
_context.n = 2;
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
return _context.a(2);
|
|
2831
|
+
case 2:
|
|
2832
|
+
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
2833
|
+
columns: resultColumns,
|
|
2834
|
+
data: resultData,
|
|
2835
|
+
checkStockNum: isCheckStockNum
|
|
2836
|
+
})).then(function (result) {
|
|
2837
|
+
result = result.data;
|
|
2838
|
+
if (judgeIsRequestError(result)) {
|
|
2839
|
+
message$1.error(result.msg);
|
|
2840
|
+
return;
|
|
2841
|
+
}
|
|
2842
|
+
var items = _this.state.items;
|
|
2843
|
+
var validIndex = items.length;
|
|
2844
|
+
var res = result.data;
|
|
2845
|
+
var sheetData = luckysheet.getSheetData();
|
|
2846
|
+
sheetData.map(function (item, index) {
|
|
2847
|
+
if (!res[index]) return item;
|
|
2848
|
+
var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
|
|
2849
|
+
return i === 'skuCode';
|
|
2850
|
+
});
|
|
2851
|
+
if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
|
|
2852
|
+
return i === 'skuCode';
|
|
2853
|
+
})) && item[changeVMIndex].v !== res[index].skuCode) {
|
|
2854
|
+
item[changeVMIndex].v = res[index].skuCode;
|
|
2855
|
+
item[changeVMIndex].m = res[index].skuCode;
|
|
2856
|
+
}
|
|
2857
|
+
if (res[index].flag) {
|
|
2858
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2859
|
+
v: '通过',
|
|
2860
|
+
m: '通过',
|
|
2861
|
+
fc: 'green' //字体颜色为 "#990000"
|
|
2862
|
+
});
|
|
2863
|
+
} else {
|
|
2864
|
+
item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
|
|
2865
|
+
v: res[index].checkResults,
|
|
2866
|
+
m: res[index].checkResults,
|
|
2867
|
+
fc: 'red' //字体颜色为 "#990000"
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
item[validIndex].ct = {
|
|
2871
|
+
fa: 'General',
|
|
2872
|
+
t: 'g'
|
|
2873
|
+
};
|
|
2874
|
+
});
|
|
2875
|
+
// sheetData.map((item, index) => {
|
|
2876
|
+
// luckysheet.setCellValue(index + 1, 4, 345)
|
|
2877
|
+
// })
|
|
2878
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
|
|
2879
|
+
_this.setState({
|
|
2880
|
+
data: luckysheet.transToCellData(sheetData),
|
|
2881
|
+
errorListCheck: false,
|
|
2882
|
+
resultData: res
|
|
2883
|
+
});
|
|
2884
|
+
console.log(setExportData);
|
|
2885
|
+
setExportData([123123]);
|
|
2886
|
+
}).catch(function (err) {});
|
|
2887
|
+
case 3:
|
|
2888
|
+
return _context.a(2);
|
|
2889
|
+
}
|
|
2890
|
+
}, _callee);
|
|
2891
|
+
}));
|
|
3072
2892
|
_this.filterData = function (type) {
|
|
3073
2893
|
var _this$state = _this.state,
|
|
3074
2894
|
showErrorData = _this$state.showErrorData,
|
|
@@ -3225,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3225
3045
|
if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
|
|
3226
3046
|
var rowItem = res[index];
|
|
3227
3047
|
item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
|
|
3228
|
-
var
|
|
3229
|
-
var colKey = (
|
|
3048
|
+
var _ref5;
|
|
3049
|
+
var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
|
|
3230
3050
|
if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
|
|
3231
3051
|
element.m = rowItem[colKey];
|
|
3232
3052
|
element.v = rowItem[colKey];
|
|
@@ -3302,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3302
3122
|
notExcelImport = _this$props6.notExcelImport,
|
|
3303
3123
|
excelImportConfig = _this$props6.excelImportConfig,
|
|
3304
3124
|
getTemplate = _this$props6.getTemplate;
|
|
3305
|
-
var
|
|
3306
|
-
size =
|
|
3307
|
-
accept =
|
|
3308
|
-
suffixRule =
|
|
3125
|
+
var _ref6 = excelImportConfig || {},
|
|
3126
|
+
size = _ref6.size,
|
|
3127
|
+
accept = _ref6.accept,
|
|
3128
|
+
suffixRule = _ref6.suffixRule;
|
|
3309
3129
|
var totalSummary = this.getCount();
|
|
3310
3130
|
var sheetMap = this.getSheetMap();
|
|
3311
3131
|
var callBackFun = this.importExcelToLuckySheet;
|
|
@@ -3331,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3331
3151
|
var _Object$keys;
|
|
3332
3152
|
if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
|
|
3333
3153
|
if (info.file.status !== 'uploading') {
|
|
3334
|
-
var
|
|
3335
|
-
file =
|
|
3336
|
-
fileList =
|
|
3154
|
+
var _ref7 = info || {},
|
|
3155
|
+
file = _ref7.file,
|
|
3156
|
+
fileList = _ref7.fileList;
|
|
3337
3157
|
readerXlsxToList(file, fileList, null, null, {
|
|
3338
3158
|
callback: function callback(excelData) {
|
|
3339
3159
|
callBackFun(excelData);
|
|
@@ -4757,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4757
4577
|
popvalue = _useState8[0],
|
|
4758
4578
|
setPopValue = _useState8[1];
|
|
4759
4579
|
var _useState9 = useState([]),
|
|
4760
|
-
|
|
4761
|
-
source =
|
|
4762
|
-
setSource =
|
|
4580
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4581
|
+
source = _useState0[0],
|
|
4582
|
+
setSource = _useState0[1];
|
|
4763
4583
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4764
4584
|
getData();
|
|
4765
4585
|
}, {
|
|
4766
4586
|
wait: 1000
|
|
4767
4587
|
}),
|
|
4768
4588
|
run = _useDebounceFn.run;
|
|
4769
|
-
var
|
|
4589
|
+
var _useState1 = useState(false),
|
|
4590
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4591
|
+
fetching = _useState10[0],
|
|
4592
|
+
setFetching = _useState10[1];
|
|
4593
|
+
var _useState11 = useState(''),
|
|
4770
4594
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
var _useState13 = useState(
|
|
4595
|
+
searchValue = _useState12[0],
|
|
4596
|
+
setSearchValue = _useState12[1];
|
|
4597
|
+
var _useState13 = useState(resultSourceKey),
|
|
4774
4598
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
var _useState15 = useState(resultSourceKey),
|
|
4778
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4779
|
-
uniqueValue = _useState16[0],
|
|
4780
|
-
setUniqueValue = _useState16[1];
|
|
4599
|
+
uniqueValue = _useState14[0],
|
|
4600
|
+
setUniqueValue = _useState14[1];
|
|
4781
4601
|
useEffect(function () {
|
|
4782
4602
|
setPopValue(value);
|
|
4783
4603
|
onValueChange(value);
|
|
@@ -5194,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5194
5014
|
notCommonProperty = _useState8[0],
|
|
5195
5015
|
setNotCommonProperty = _useState8[1];
|
|
5196
5016
|
var _useState9 = useState(false),
|
|
5197
|
-
|
|
5198
|
-
visible =
|
|
5199
|
-
setVisible =
|
|
5200
|
-
var
|
|
5017
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5018
|
+
visible = _useState0[0],
|
|
5019
|
+
setVisible = _useState0[1];
|
|
5020
|
+
var _useState1 = useState(false),
|
|
5021
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5022
|
+
showNotCommon = _useState10[0],
|
|
5023
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5024
|
+
var _useState11 = useState([]),
|
|
5201
5025
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
var _useState13 = useState(
|
|
5026
|
+
classifyOptionList = _useState12[0],
|
|
5027
|
+
setClassifyOptionList = _useState12[1];
|
|
5028
|
+
var _useState13 = useState('1'),
|
|
5205
5029
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
var _useState15 = useState('1'),
|
|
5209
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5210
|
-
listKey = _useState16[0],
|
|
5211
|
-
setListKey = _useState16[1];
|
|
5030
|
+
listKey = _useState14[0],
|
|
5031
|
+
setListKey = _useState14[1];
|
|
5212
5032
|
useEffect(function () {
|
|
5213
5033
|
requestUtil({
|
|
5214
5034
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5591,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5591
5411
|
scrollPage = _useState8[0],
|
|
5592
5412
|
setScrollPage = _useState8[1];
|
|
5593
5413
|
var _useState9 = useState(0),
|
|
5594
|
-
|
|
5595
|
-
itemsTotal =
|
|
5596
|
-
setItemsTotal =
|
|
5597
|
-
var
|
|
5414
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5415
|
+
itemsTotal = _useState0[0],
|
|
5416
|
+
setItemsTotal = _useState0[1];
|
|
5417
|
+
var _useState1 = useState(false),
|
|
5418
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5419
|
+
fetching = _useState10[0],
|
|
5420
|
+
setFetching = _useState10[1];
|
|
5421
|
+
var _useState11 = useState(''),
|
|
5598
5422
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
var _useState13 = useState(
|
|
5423
|
+
searchValue = _useState12[0],
|
|
5424
|
+
setSearchValue = _useState12[1];
|
|
5425
|
+
var _useState13 = useState(false),
|
|
5602
5426
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
var _useState15 = useState(
|
|
5427
|
+
isModalVisible = _useState14[0],
|
|
5428
|
+
setIsModalVisible = _useState14[1];
|
|
5429
|
+
var _useState15 = useState(initVal),
|
|
5606
5430
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
var _useState17 = useState(
|
|
5431
|
+
popvalue = _useState16[0],
|
|
5432
|
+
setPopValue = _useState16[1];
|
|
5433
|
+
var _useState17 = useState(resultSourceKey),
|
|
5610
5434
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
var _useState19 = useState(resultSourceKey),
|
|
5614
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5615
|
-
uniqueValue = _useState20[0],
|
|
5616
|
-
setUniqueValue = _useState20[1];
|
|
5435
|
+
uniqueValue = _useState18[0],
|
|
5436
|
+
setUniqueValue = _useState18[1];
|
|
5617
5437
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5618
5438
|
// 优化搜索参数 支持传多个
|
|
5619
5439
|
var searchParams = {};
|
|
@@ -5642,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5642
5462
|
var _Form$useForm = Form.useForm(),
|
|
5643
5463
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5644
5464
|
form = _Form$useForm2[0];
|
|
5465
|
+
var _useState19 = useState(true),
|
|
5466
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5467
|
+
collapsed = _useState20[0],
|
|
5468
|
+
setCollapsed = _useState20[1];
|
|
5645
5469
|
var _useState21 = useState(true),
|
|
5646
5470
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
var _useState23 = useState(
|
|
5471
|
+
caretLeftFlag = _useState22[0],
|
|
5472
|
+
setCaretLeftFlag = _useState22[1];
|
|
5473
|
+
var _useState23 = useState([]),
|
|
5650
5474
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
var _useState25 = useState(
|
|
5475
|
+
tableData = _useState24[0],
|
|
5476
|
+
setTableData = _useState24[1];
|
|
5477
|
+
var _useState25 = useState(tableInitPagination),
|
|
5654
5478
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
var _useState27 = useState(
|
|
5479
|
+
tablePagination = _useState26[0],
|
|
5480
|
+
setTablePagination = _useState26[1];
|
|
5481
|
+
var _useState27 = useState([]),
|
|
5658
5482
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5659
|
-
|
|
5660
|
-
|
|
5483
|
+
selectedRowKeys = _useState28[0],
|
|
5484
|
+
setSelectedRowKeys = _useState28[1];
|
|
5661
5485
|
var _useState29 = useState([]),
|
|
5662
5486
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
var _useState31 = useState(
|
|
5487
|
+
selectedRows = _useState30[0],
|
|
5488
|
+
setSelectedRows = _useState30[1];
|
|
5489
|
+
var _useState31 = useState(false),
|
|
5666
5490
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5667
|
-
|
|
5668
|
-
|
|
5491
|
+
checkedAll = _useState32[0],
|
|
5492
|
+
setCheckedAll = _useState32[1];
|
|
5669
5493
|
var _useState33 = useState(false),
|
|
5670
5494
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
var _useState35 = useState(
|
|
5495
|
+
indeterminate = _useState34[0],
|
|
5496
|
+
setIndeterminate = _useState34[1];
|
|
5497
|
+
var _useState35 = useState({}),
|
|
5674
5498
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
var _useState37 = useState(
|
|
5499
|
+
tableFormParams = _useState36[0],
|
|
5500
|
+
setTableFormParams = _useState36[1];
|
|
5501
|
+
var _useState37 = useState(false),
|
|
5678
5502
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
var _useState39 = useState(
|
|
5503
|
+
tooltipVisible = _useState38[0],
|
|
5504
|
+
setTooltipVisible = _useState38[1];
|
|
5505
|
+
var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5682
5506
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
var _useState41 = useState(
|
|
5507
|
+
tableShowColumns = _useState40[0],
|
|
5508
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5509
|
+
var _useState41 = useState(false),
|
|
5686
5510
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5687
|
-
|
|
5688
|
-
|
|
5511
|
+
confirmLoading = _useState42[0],
|
|
5512
|
+
setConfirmLoading = _useState42[1];
|
|
5689
5513
|
var _useState43 = useState(false),
|
|
5690
5514
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
var _useState45 = useState(false),
|
|
5694
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5695
|
-
modalSearched = _useState46[0],
|
|
5696
|
-
setModalSearched = _useState46[1];
|
|
5515
|
+
modalSearched = _useState44[0],
|
|
5516
|
+
setModalSearched = _useState44[1];
|
|
5697
5517
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5698
5518
|
setItems(list);
|
|
5699
5519
|
setItemsTotal(total);
|
|
@@ -6151,6 +5971,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6151
5971
|
};
|
|
6152
5972
|
var formItem = function formItem(list) {
|
|
6153
5973
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5974
|
+
debugger;
|
|
6154
5975
|
var setDisabled = function setDisabled(name) {
|
|
6155
5976
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
6156
5977
|
return item === name;
|
|
@@ -6170,7 +5991,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6170
5991
|
})) || [];
|
|
6171
5992
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6172
5993
|
return searchList.map(function (i, index) {
|
|
6173
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
5994
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6174
5995
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
6175
5996
|
span: ColSpan,
|
|
6176
5997
|
key: i
|
|
@@ -6268,7 +6089,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6268
6089
|
disabled: setDisabled(i.name)
|
|
6269
6090
|
}))));
|
|
6270
6091
|
}
|
|
6271
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6092
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
|
|
6272
6093
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6273
6094
|
span: ColSpan,
|
|
6274
6095
|
key: i.name
|
|
@@ -6282,7 +6103,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6282
6103
|
}
|
|
6283
6104
|
})));
|
|
6284
6105
|
}
|
|
6285
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6106
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6286
6107
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6287
6108
|
span: ColSpan,
|
|
6288
6109
|
key: i.name
|
|
@@ -6292,8 +6113,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6292
6113
|
key: i.name
|
|
6293
6114
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6294
6115
|
}
|
|
6295
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6296
|
-
var _i$
|
|
6116
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6117
|
+
var _i$field11;
|
|
6297
6118
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6298
6119
|
span: ColSpan,
|
|
6299
6120
|
key: i.name
|
|
@@ -6306,9 +6127,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6306
6127
|
width: '100%'
|
|
6307
6128
|
},
|
|
6308
6129
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6309
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6130
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6310
6131
|
}
|
|
6311
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6132
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6312
6133
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6313
6134
|
span: ColSpan,
|
|
6314
6135
|
key: i.name
|
|
@@ -6337,7 +6158,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6337
6158
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6338
6159
|
allowClear: true,
|
|
6339
6160
|
maxLength: 100
|
|
6340
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6161
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6341
6162
|
disabled: setDisabled(i.name)
|
|
6342
6163
|
}))));
|
|
6343
6164
|
});
|
|
@@ -7657,135 +7478,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7657
7478
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7658
7479
|
form = _Form$useForm2[0];
|
|
7659
7480
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7660
|
-
|
|
7661
|
-
tableSearchForm =
|
|
7662
|
-
setTableSearchForm =
|
|
7663
|
-
var
|
|
7481
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7482
|
+
tableSearchForm = _useState0[0],
|
|
7483
|
+
setTableSearchForm = _useState0[1];
|
|
7484
|
+
var _useState1 = useState(true),
|
|
7485
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7486
|
+
caretLeftFlag = _useState10[0],
|
|
7487
|
+
setCaretLeftFlag = _useState10[1];
|
|
7488
|
+
var _useState11 = useState([]),
|
|
7664
7489
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
var _useState13 = useState(
|
|
7668
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7669
|
-
tableData = _useState14[0],
|
|
7670
|
-
setTableData = _useState14[1];
|
|
7671
|
-
var _useState15 = useState(_objectSpread2({
|
|
7490
|
+
tableData = _useState12[0],
|
|
7491
|
+
setTableData = _useState12[1];
|
|
7492
|
+
var _useState13 = useState(_objectSpread2({
|
|
7672
7493
|
total: 0,
|
|
7673
7494
|
size: "small",
|
|
7674
7495
|
current: 1,
|
|
7675
7496
|
pageSize: tableInitPageSize
|
|
7676
7497
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7498
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7499
|
+
tablePagination = _useState14[0],
|
|
7500
|
+
setTablePagination = _useState14[1];
|
|
7501
|
+
var _useState15 = useState([]),
|
|
7677
7502
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
var _useState17 = useState(
|
|
7503
|
+
selectedRowKeys = _useState16[0],
|
|
7504
|
+
setSelectedRowKeys = _useState16[1];
|
|
7505
|
+
var _useState17 = useState({}),
|
|
7681
7506
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
var _useState19 = useState(
|
|
7507
|
+
tableFormParams = _useState18[0],
|
|
7508
|
+
setTableFormParams = _useState18[1];
|
|
7509
|
+
var _useState19 = useState(false),
|
|
7685
7510
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7686
|
-
|
|
7687
|
-
|
|
7511
|
+
confirmLoading = _useState20[0],
|
|
7512
|
+
setConfirmLoading = _useState20[1];
|
|
7688
7513
|
var _useState21 = useState(false),
|
|
7689
7514
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
var _useState23 = useState(
|
|
7515
|
+
confirmContinueLoading = _useState22[0],
|
|
7516
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7517
|
+
var _useState23 = useState([]),
|
|
7693
7518
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7694
|
-
|
|
7695
|
-
|
|
7519
|
+
selectColumns = _useState24[0],
|
|
7520
|
+
setSelectColumns = _useState24[1];
|
|
7696
7521
|
var _useState25 = useState([]),
|
|
7697
7522
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7698
|
-
|
|
7699
|
-
|
|
7523
|
+
showColumns = _useState26[0],
|
|
7524
|
+
setShowColumns = _useState26[1];
|
|
7700
7525
|
var _useState27 = useState([]),
|
|
7701
7526
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7702
|
-
|
|
7703
|
-
|
|
7527
|
+
tableColumns = _useState28[0],
|
|
7528
|
+
setTableColumns = _useState28[1];
|
|
7704
7529
|
var _useState29 = useState([]),
|
|
7705
7530
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
var _useState31 = useState([]),
|
|
7709
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7710
|
-
showToChooseColumns = _useState32[0],
|
|
7711
|
-
setShowToChooseColumns = _useState32[1];
|
|
7531
|
+
showToChooseColumns = _useState30[0],
|
|
7532
|
+
setShowToChooseColumns = _useState30[1];
|
|
7712
7533
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7713
7534
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7714
7535
|
// FIXME: 特殊业务逻辑
|
|
7715
7536
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7716
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7717
|
-
var result;
|
|
7718
|
-
return
|
|
7719
|
-
while (1) switch (_context.
|
|
7537
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7538
|
+
var result, _t;
|
|
7539
|
+
return _regenerator().w(function (_context) {
|
|
7540
|
+
while (1) switch (_context.p = _context.n) {
|
|
7720
7541
|
case 0:
|
|
7721
7542
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7722
7543
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7723
7544
|
}))) {
|
|
7724
|
-
_context.
|
|
7545
|
+
_context.n = 1;
|
|
7725
7546
|
break;
|
|
7726
7547
|
}
|
|
7727
7548
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7728
|
-
return _context.
|
|
7729
|
-
case
|
|
7549
|
+
return _context.a(2, false);
|
|
7550
|
+
case 1:
|
|
7730
7551
|
if (!(bType == 'spu')) {
|
|
7731
|
-
_context.
|
|
7552
|
+
_context.n = 9;
|
|
7732
7553
|
break;
|
|
7733
7554
|
}
|
|
7734
7555
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7735
7556
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7736
7557
|
}))) {
|
|
7737
|
-
_context.
|
|
7558
|
+
_context.n = 2;
|
|
7738
7559
|
break;
|
|
7739
7560
|
}
|
|
7740
7561
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7741
|
-
return _context.
|
|
7742
|
-
case
|
|
7562
|
+
return _context.a(2, false);
|
|
7563
|
+
case 2:
|
|
7743
7564
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7744
|
-
_context.
|
|
7565
|
+
_context.n = 3;
|
|
7745
7566
|
break;
|
|
7746
7567
|
}
|
|
7747
7568
|
message$1.warning('请先选择颜色!');
|
|
7748
|
-
return _context.
|
|
7749
|
-
case
|
|
7569
|
+
return _context.a(2, false);
|
|
7570
|
+
case 3:
|
|
7750
7571
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7751
7572
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7752
7573
|
}))) {
|
|
7753
|
-
_context.
|
|
7574
|
+
_context.n = 4;
|
|
7754
7575
|
break;
|
|
7755
7576
|
}
|
|
7756
7577
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7757
|
-
return _context.
|
|
7758
|
-
case
|
|
7578
|
+
return _context.a(2, false);
|
|
7579
|
+
case 4:
|
|
7759
7580
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7760
|
-
_context.
|
|
7581
|
+
_context.n = 9;
|
|
7761
7582
|
break;
|
|
7762
7583
|
}
|
|
7763
7584
|
result = true;
|
|
7764
|
-
_context.
|
|
7765
|
-
_context.
|
|
7585
|
+
_context.p = 5;
|
|
7586
|
+
_context.n = 6;
|
|
7766
7587
|
return checkSpuMatchCode({
|
|
7767
7588
|
skcCode: recordItem[recordKey],
|
|
7768
7589
|
matchingCode: changeValue,
|
|
7769
7590
|
ext1: recordItem.colorName
|
|
7770
7591
|
});
|
|
7771
|
-
case
|
|
7772
|
-
result = _context.
|
|
7592
|
+
case 6:
|
|
7593
|
+
result = _context.v;
|
|
7773
7594
|
result = true;
|
|
7774
|
-
_context.
|
|
7595
|
+
_context.n = 8;
|
|
7775
7596
|
break;
|
|
7776
|
-
case
|
|
7777
|
-
_context.
|
|
7778
|
-
|
|
7779
|
-
result = typeof
|
|
7780
|
-
case
|
|
7781
|
-
return _context.
|
|
7782
|
-
case
|
|
7783
|
-
return _context.
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
return _context.stop();
|
|
7787
|
-
}
|
|
7788
|
-
}, _callee, null, [[15, 22]]);
|
|
7597
|
+
case 7:
|
|
7598
|
+
_context.p = 7;
|
|
7599
|
+
_t = _context.v;
|
|
7600
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7601
|
+
case 8:
|
|
7602
|
+
return _context.a(2, result);
|
|
7603
|
+
case 9:
|
|
7604
|
+
return _context.a(2, true);
|
|
7605
|
+
}
|
|
7606
|
+
}, _callee, null, [[5, 7]]);
|
|
7789
7607
|
}));
|
|
7790
7608
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7791
7609
|
return _ref2.apply(this, arguments);
|
|
@@ -7876,17 +7694,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7876
7694
|
e.target.blur();
|
|
7877
7695
|
},
|
|
7878
7696
|
onBlur: function () {
|
|
7879
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7697
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7880
7698
|
var value;
|
|
7881
|
-
return
|
|
7882
|
-
while (1) switch (_context2.
|
|
7699
|
+
return _regenerator().w(function (_context2) {
|
|
7700
|
+
while (1) switch (_context2.n) {
|
|
7883
7701
|
case 0:
|
|
7884
7702
|
value = e.target.value;
|
|
7885
7703
|
record[item.dataIndex] = value;
|
|
7886
7704
|
editRecord(record);
|
|
7887
|
-
case
|
|
7888
|
-
|
|
7889
|
-
return _context2.stop();
|
|
7705
|
+
case 1:
|
|
7706
|
+
return _context2.a(2);
|
|
7890
7707
|
}
|
|
7891
7708
|
}, _callee2);
|
|
7892
7709
|
}));
|
|
@@ -8046,10 +7863,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8046
7863
|
}
|
|
8047
7864
|
_dom6 = null;
|
|
8048
7865
|
} else if (e.keyCode === 38) {
|
|
8049
|
-
var _e$nativeEvent$path$
|
|
7866
|
+
var _e$nativeEvent$path$0;
|
|
8050
7867
|
e.stopPropagation();
|
|
8051
7868
|
e.preventDefault();
|
|
8052
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7869
|
+
var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
|
|
8053
7870
|
if (dom1) {
|
|
8054
7871
|
// dom1.value=""
|
|
8055
7872
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8083,19 +7900,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8083
7900
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8084
7901
|
value: text || null,
|
|
8085
7902
|
onChange: function () {
|
|
8086
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8087
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8088
|
-
return
|
|
8089
|
-
while (1) switch (_context3.
|
|
7903
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7904
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7905
|
+
return _regenerator().w(function (_context3) {
|
|
7906
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
8090
7907
|
case 0:
|
|
8091
7908
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8092
7909
|
return d[selectKey] == value;
|
|
8093
7910
|
})) || {};
|
|
8094
7911
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8095
|
-
_context3.
|
|
7912
|
+
_context3.n = 2;
|
|
8096
7913
|
break;
|
|
8097
7914
|
}
|
|
8098
|
-
_context3.
|
|
7915
|
+
_context3.n = 1;
|
|
8099
7916
|
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, {
|
|
8100
7917
|
record: record,
|
|
8101
7918
|
index: index,
|
|
@@ -8105,10 +7922,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8105
7922
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8106
7923
|
editRecord: editRecord
|
|
8107
7924
|
});
|
|
8108
|
-
case
|
|
8109
|
-
_context3.
|
|
7925
|
+
case 1:
|
|
7926
|
+
_context3.n = 10;
|
|
8110
7927
|
break;
|
|
8111
|
-
case
|
|
7928
|
+
case 2:
|
|
8112
7929
|
// 更新当前行数据函数
|
|
8113
7930
|
changeValue = function changeValue(v, dSSItem) {
|
|
8114
7931
|
var _item$dataSourceSelec;
|
|
@@ -8121,12 +7938,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8121
7938
|
}
|
|
8122
7939
|
}; // 处理校验,默认不校验
|
|
8123
7940
|
isCheckPass = true;
|
|
8124
|
-
_context3.
|
|
7941
|
+
_context3.p = 3;
|
|
8125
7942
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8126
|
-
_context3.
|
|
7943
|
+
_context3.n = 5;
|
|
8127
7944
|
break;
|
|
8128
7945
|
}
|
|
8129
|
-
_context3.
|
|
7946
|
+
_context3.n = 4;
|
|
8130
7947
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8131
7948
|
record: record,
|
|
8132
7949
|
index: index,
|
|
@@ -8135,23 +7952,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8135
7952
|
changeValue: value,
|
|
8136
7953
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8137
7954
|
});
|
|
8138
|
-
case
|
|
8139
|
-
isCheckPass = _context3.
|
|
8140
|
-
_context3.
|
|
7955
|
+
case 4:
|
|
7956
|
+
isCheckPass = _context3.v;
|
|
7957
|
+
_context3.n = 7;
|
|
8141
7958
|
break;
|
|
8142
|
-
case
|
|
8143
|
-
_context3.
|
|
7959
|
+
case 5:
|
|
7960
|
+
_context3.n = 6;
|
|
8144
7961
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8145
|
-
case
|
|
8146
|
-
isConformToTheRules = _context3.
|
|
7962
|
+
case 6:
|
|
7963
|
+
isConformToTheRules = _context3.v;
|
|
8147
7964
|
isCheckPass = !isConformToTheRules;
|
|
8148
|
-
case
|
|
8149
|
-
_context3.
|
|
7965
|
+
case 7:
|
|
7966
|
+
_context3.n = 9;
|
|
8150
7967
|
break;
|
|
8151
|
-
case
|
|
8152
|
-
_context3.
|
|
8153
|
-
|
|
8154
|
-
case
|
|
7968
|
+
case 8:
|
|
7969
|
+
_context3.p = 8;
|
|
7970
|
+
_t2 = _context3.v;
|
|
7971
|
+
case 9:
|
|
8155
7972
|
if (isCheckPass) {
|
|
8156
7973
|
changeValue(value, dataSourceSelectItem);
|
|
8157
7974
|
} else {
|
|
@@ -8159,11 +7976,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8159
7976
|
}
|
|
8160
7977
|
// 更新已选表格函数
|
|
8161
7978
|
editRecord(record);
|
|
8162
|
-
case
|
|
8163
|
-
|
|
8164
|
-
return _context3.stop();
|
|
7979
|
+
case 10:
|
|
7980
|
+
return _context3.a(2);
|
|
8165
7981
|
}
|
|
8166
|
-
}, _callee3, null, [[
|
|
7982
|
+
}, _callee3, null, [[3, 8]]);
|
|
8167
7983
|
}));
|
|
8168
7984
|
function onChange(_x8) {
|
|
8169
7985
|
return _onChange.apply(this, arguments);
|
|
@@ -9554,29 +9370,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9554
9370
|
dataIndex: 'propertyNameAndValue'
|
|
9555
9371
|
}];
|
|
9556
9372
|
var _useState9 = useState(false),
|
|
9557
|
-
|
|
9558
|
-
isModalVisible =
|
|
9559
|
-
setIsModalVisible =
|
|
9560
|
-
var
|
|
9373
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9374
|
+
isModalVisible = _useState0[0],
|
|
9375
|
+
setIsModalVisible = _useState0[1];
|
|
9376
|
+
var _useState1 = useState([{
|
|
9561
9377
|
hovered: false
|
|
9562
9378
|
}]),
|
|
9563
|
-
|
|
9564
|
-
data =
|
|
9565
|
-
setData =
|
|
9379
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9380
|
+
data = _useState10[0],
|
|
9381
|
+
setData = _useState10[1];
|
|
9566
9382
|
var tableRef = useRef(null);
|
|
9567
9383
|
var codeSelected = tableCode;
|
|
9568
|
-
var
|
|
9384
|
+
var _useState11 = useState(false),
|
|
9385
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9386
|
+
loading = _useState12[0],
|
|
9387
|
+
setLoading = _useState12[1];
|
|
9388
|
+
var _useState13 = useState([]),
|
|
9569
9389
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9570
|
-
|
|
9571
|
-
|
|
9390
|
+
selectColumns = _useState14[0],
|
|
9391
|
+
setSelectColumns = _useState14[1];
|
|
9572
9392
|
var _useState15 = useState([]),
|
|
9573
9393
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
var _useState17 = useState([]),
|
|
9577
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9578
|
-
showColumns = _useState18[0],
|
|
9579
|
-
setShowColumns = _useState18[1];
|
|
9394
|
+
showColumns = _useState16[0],
|
|
9395
|
+
setShowColumns = _useState16[1];
|
|
9580
9396
|
useEffect(function () {
|
|
9581
9397
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9582
9398
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9692,42 +9508,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9692
9508
|
});
|
|
9693
9509
|
};
|
|
9694
9510
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9695
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9511
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9696
9512
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9697
|
-
return
|
|
9698
|
-
while (1) switch (_context.
|
|
9513
|
+
return _regenerator().w(function (_context) {
|
|
9514
|
+
while (1) switch (_context.n) {
|
|
9699
9515
|
case 0:
|
|
9700
9516
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9701
|
-
_context.
|
|
9517
|
+
_context.n = 1;
|
|
9702
9518
|
break;
|
|
9703
9519
|
}
|
|
9704
9520
|
message$1.warning('至少录入一条数据');
|
|
9705
|
-
return _context.
|
|
9706
|
-
case
|
|
9521
|
+
return _context.a(2);
|
|
9522
|
+
case 1:
|
|
9707
9523
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9708
9524
|
return d.skuCode && d.name;
|
|
9709
9525
|
})) {
|
|
9710
|
-
_context.
|
|
9526
|
+
_context.n = 2;
|
|
9711
9527
|
break;
|
|
9712
9528
|
}
|
|
9713
9529
|
message$1.warning('录入商品不存在');
|
|
9714
|
-
return _context.
|
|
9715
|
-
case
|
|
9530
|
+
return _context.a(2);
|
|
9531
|
+
case 2:
|
|
9716
9532
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9717
9533
|
return d.count;
|
|
9718
9534
|
})) {
|
|
9719
|
-
_context.
|
|
9535
|
+
_context.n = 3;
|
|
9720
9536
|
break;
|
|
9721
9537
|
}
|
|
9722
9538
|
message$1.warning('请填写商品数量!');
|
|
9723
|
-
return _context.
|
|
9724
|
-
case
|
|
9725
|
-
_context.
|
|
9539
|
+
return _context.a(2);
|
|
9540
|
+
case 3:
|
|
9541
|
+
_context.n = 4;
|
|
9726
9542
|
return isSkuCanEntry(data);
|
|
9727
|
-
case
|
|
9728
|
-
canEntryObject = _context.
|
|
9543
|
+
case 4:
|
|
9544
|
+
canEntryObject = _context.v;
|
|
9729
9545
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9730
|
-
_context.
|
|
9546
|
+
_context.n = 5;
|
|
9731
9547
|
break;
|
|
9732
9548
|
}
|
|
9733
9549
|
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) {
|
|
@@ -9737,8 +9553,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9737
9553
|
content: messageInfo,
|
|
9738
9554
|
duration: 6
|
|
9739
9555
|
});
|
|
9740
|
-
return _context.
|
|
9741
|
-
case
|
|
9556
|
+
return _context.a(2);
|
|
9557
|
+
case 5:
|
|
9742
9558
|
setLoading(true);
|
|
9743
9559
|
onSaveCallback(data).then(function (res) {
|
|
9744
9560
|
{
|
|
@@ -9756,9 +9572,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9756
9572
|
message$1.error(Error);
|
|
9757
9573
|
setLoading(false);
|
|
9758
9574
|
});
|
|
9759
|
-
case
|
|
9760
|
-
|
|
9761
|
-
return _context.stop();
|
|
9575
|
+
case 6:
|
|
9576
|
+
return _context.a(2);
|
|
9762
9577
|
}
|
|
9763
9578
|
}, _callee);
|
|
9764
9579
|
}));
|
|
@@ -10191,6 +10006,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10191
10006
|
var modalTableProps = _objectSpread2({
|
|
10192
10007
|
modalTableTitle: '',
|
|
10193
10008
|
tableSearchForm: tableSearchForm,
|
|
10009
|
+
visibleFieldsCount: 13,
|
|
10194
10010
|
tableColumns: []
|
|
10195
10011
|
}, modalTableBusProps);
|
|
10196
10012
|
var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
|
|
@@ -10556,15 +10372,172 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10556
10372
|
}
|
|
10557
10373
|
}
|
|
10558
10374
|
}, {
|
|
10559
|
-
name: '
|
|
10560
|
-
label: '
|
|
10375
|
+
name: 'qp-skcCode-in',
|
|
10376
|
+
label: 'SKC编码',
|
|
10561
10377
|
field: {
|
|
10562
|
-
type: '
|
|
10378
|
+
type: 'multipleQuerySearchSelect',
|
|
10379
|
+
props: {
|
|
10380
|
+
selectProps: {
|
|
10381
|
+
mode: "multiple",
|
|
10382
|
+
placeholder: '请输入SKC编码查询'
|
|
10383
|
+
},
|
|
10384
|
+
requestConfig: {
|
|
10385
|
+
url: '/items/sku//listNoPage/Simple',
|
|
10386
|
+
filter: 'qp-skcCode,name-orGroup,like',
|
|
10387
|
+
mappingTextField: 'name',
|
|
10388
|
+
mappingValueField: 'skcCode',
|
|
10389
|
+
sourceName: 'qp-skcCode-in',
|
|
10390
|
+
specialBracket: true,
|
|
10391
|
+
otherParams: {
|
|
10392
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10393
|
+
'ctl-count': true
|
|
10394
|
+
} // 默认参数
|
|
10395
|
+
}
|
|
10396
|
+
}
|
|
10563
10397
|
}
|
|
10564
|
-
}
|
|
10398
|
+
}, {
|
|
10399
|
+
name: 'qp-year-in',
|
|
10400
|
+
type: 'select',
|
|
10401
|
+
label: '年份',
|
|
10402
|
+
field: {
|
|
10403
|
+
type: 'select',
|
|
10404
|
+
props: {
|
|
10405
|
+
mode: 'multiple',
|
|
10406
|
+
notFoundContent: '暂无数据',
|
|
10407
|
+
allowClear: true,
|
|
10408
|
+
showSearch: true,
|
|
10409
|
+
showArrow: true,
|
|
10410
|
+
maxTagCount: 1,
|
|
10411
|
+
optionFilterProp: 'children',
|
|
10412
|
+
filterOption: function filterOption(input, option) {
|
|
10413
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10414
|
+
}
|
|
10415
|
+
}
|
|
10416
|
+
}
|
|
10417
|
+
}, {
|
|
10418
|
+
name: 'qp-season-in',
|
|
10419
|
+
type: 'select',
|
|
10420
|
+
label: '季节',
|
|
10421
|
+
field: {
|
|
10422
|
+
type: 'select',
|
|
10423
|
+
props: {
|
|
10424
|
+
mode: 'multiple',
|
|
10425
|
+
notFoundContent: '暂无数据',
|
|
10426
|
+
allowClear: true,
|
|
10427
|
+
showSearch: true,
|
|
10428
|
+
showArrow: true,
|
|
10429
|
+
maxTagCount: 1,
|
|
10430
|
+
optionFilterProp: 'children',
|
|
10431
|
+
filterOption: function filterOption(input, option) {
|
|
10432
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10433
|
+
}
|
|
10434
|
+
}
|
|
10435
|
+
}
|
|
10436
|
+
}, {
|
|
10437
|
+
name: 'qp-zzbdbm-in',
|
|
10438
|
+
type: 'select',
|
|
10439
|
+
label: '波段',
|
|
10440
|
+
field: {
|
|
10441
|
+
type: 'select',
|
|
10442
|
+
props: {
|
|
10443
|
+
mode: 'multiple',
|
|
10444
|
+
notFoundContent: '暂无数据',
|
|
10445
|
+
allowClear: true,
|
|
10446
|
+
showSearch: true,
|
|
10447
|
+
showArrow: true,
|
|
10448
|
+
maxTagCount: 1,
|
|
10449
|
+
optionFilterProp: 'children',
|
|
10450
|
+
filterOption: function filterOption(input, option) {
|
|
10451
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10452
|
+
}
|
|
10453
|
+
}
|
|
10454
|
+
}
|
|
10455
|
+
}, {
|
|
10456
|
+
name: 'qp-zzdlbm-in',
|
|
10457
|
+
type: 'select',
|
|
10458
|
+
label: '大类',
|
|
10459
|
+
field: {
|
|
10460
|
+
type: 'select',
|
|
10461
|
+
props: {
|
|
10462
|
+
mode: 'multiple',
|
|
10463
|
+
notFoundContent: '暂无数据',
|
|
10464
|
+
allowClear: true,
|
|
10465
|
+
showSearch: true,
|
|
10466
|
+
showArrow: true,
|
|
10467
|
+
maxTagCount: 1,
|
|
10468
|
+
optionFilterProp: 'children',
|
|
10469
|
+
filterOption: function filterOption(input, option) {
|
|
10470
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10471
|
+
}
|
|
10472
|
+
}
|
|
10473
|
+
}
|
|
10474
|
+
}, {
|
|
10475
|
+
name: 'qp-zzzlbm-in',
|
|
10476
|
+
type: 'select',
|
|
10477
|
+
label: '中类',
|
|
10478
|
+
field: {
|
|
10479
|
+
type: 'select',
|
|
10480
|
+
props: {
|
|
10481
|
+
mode: 'multiple',
|
|
10482
|
+
notFoundContent: '暂无数据',
|
|
10483
|
+
allowClear: true,
|
|
10484
|
+
showSearch: true,
|
|
10485
|
+
showArrow: true,
|
|
10486
|
+
maxTagCount: 1,
|
|
10487
|
+
optionFilterProp: 'children',
|
|
10488
|
+
filterOption: function filterOption(input, option) {
|
|
10489
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10490
|
+
}
|
|
10491
|
+
}
|
|
10492
|
+
}
|
|
10493
|
+
}, {
|
|
10494
|
+
name: 'qp-zzxlbm-in',
|
|
10495
|
+
type: 'select',
|
|
10496
|
+
label: '小类',
|
|
10497
|
+
field: {
|
|
10498
|
+
type: 'select',
|
|
10499
|
+
props: {
|
|
10500
|
+
mode: 'multiple',
|
|
10501
|
+
notFoundContent: '暂无数据',
|
|
10502
|
+
allowClear: true,
|
|
10503
|
+
showSearch: true,
|
|
10504
|
+
showArrow: true,
|
|
10505
|
+
maxTagCount: 1,
|
|
10506
|
+
optionFilterProp: 'children',
|
|
10507
|
+
filterOption: function filterOption(input, option) {
|
|
10508
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10509
|
+
}
|
|
10510
|
+
}
|
|
10511
|
+
}
|
|
10512
|
+
}
|
|
10513
|
+
// { name: 'UNIQUE_SPEC', label: '属性', field: {
|
|
10514
|
+
// type: 'proppertySelector',
|
|
10515
|
+
// } },
|
|
10516
|
+
];
|
|
10565
10517
|
var defaultQSHL = [{
|
|
10566
10518
|
isOpen: true,
|
|
10567
10519
|
queryKey: 'qp-brandId-in'
|
|
10520
|
+
}, {
|
|
10521
|
+
isOpen: true,
|
|
10522
|
+
queryKey: 'qp-categoryId-in'
|
|
10523
|
+
}, {
|
|
10524
|
+
isOpen: true,
|
|
10525
|
+
queryKey: 'qp-year-in'
|
|
10526
|
+
}, {
|
|
10527
|
+
isOpen: true,
|
|
10528
|
+
queryKey: 'qp-season-in'
|
|
10529
|
+
}, {
|
|
10530
|
+
isOpen: true,
|
|
10531
|
+
queryKey: 'qp-zzbdbm-in'
|
|
10532
|
+
}, {
|
|
10533
|
+
isOpen: true,
|
|
10534
|
+
queryKey: 'qp-zzdlbm-in'
|
|
10535
|
+
}, {
|
|
10536
|
+
isOpen: true,
|
|
10537
|
+
queryKey: 'qp-zzzlbm-in'
|
|
10538
|
+
}, {
|
|
10539
|
+
isOpen: true,
|
|
10540
|
+
queryKey: 'qp-zzxlbm-in'
|
|
10568
10541
|
}];
|
|
10569
10542
|
var _queryHeaderParams2 = getQueryHeadersList({
|
|
10570
10543
|
defaultQSHL: defaultQSHL,
|
|
@@ -10578,14 +10551,39 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10578
10551
|
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-brandId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10579
10552
|
pageSize: 5000,
|
|
10580
10553
|
currentPage: 1
|
|
10581
|
-
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in'))
|
|
10554
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10555
|
+
'qp-propertyCode-eq': 'PROP_YEAR',
|
|
10556
|
+
pageSize: 999
|
|
10557
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-year-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10558
|
+
'qp-propertyCode-eq': 'PROP_SEASON',
|
|
10559
|
+
pageSize: 999
|
|
10560
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-season-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/band"), {
|
|
10561
|
+
pageSize: 999,
|
|
10562
|
+
currentPage: 1
|
|
10563
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzbdbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/rule/getClassPropertyValue/110000217"), {}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzdlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10564
|
+
'qp-propertyCode-eq': 'MID_CATA',
|
|
10565
|
+
pageSize: 999
|
|
10566
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzzlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
|
|
10567
|
+
'qp-propertyCode-eq': 'PROP_SUBCATEORY',
|
|
10568
|
+
pageSize: 999
|
|
10569
|
+
}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzxlbm-in'))]).then(function (x) {
|
|
10582
10570
|
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10583
10571
|
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10572
|
+
formatSource(x, 0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm, ['id', 'name']);
|
|
10573
|
+
formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'qp-categoryId-in'), tableSearchForm);
|
|
10574
|
+
formatSource(x, 2, getFieldIndex(tableSearchForm, 'qp-year-in'), tableSearchForm, ['value', 'value']);
|
|
10575
|
+
formatSource(x, 3, getFieldIndex(tableSearchForm, 'qp-season-in'), tableSearchForm, ['value', 'value']);
|
|
10576
|
+
formatSource(x, 4, getFieldIndex(tableSearchForm, 'qp-zzbdbm-in'), tableSearchForm, ['bandCode', 'bandName']);
|
|
10577
|
+
formatSource(x, 5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10578
|
+
formatSource(x, 6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10579
|
+
formatSource(x, 7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm, ['value', 'value']);
|
|
10584
10580
|
});
|
|
10585
10581
|
modalTableProps = _objectSpread2({
|
|
10586
10582
|
modalTableTitle: '选择SKU',
|
|
10587
10583
|
tableSearchForm: tableSearchForm,
|
|
10588
10584
|
isHorizontally: true,
|
|
10585
|
+
tableSearchColSpan: 6,
|
|
10586
|
+
visibleFieldsCount: 13,
|
|
10589
10587
|
tableColumns: [{
|
|
10590
10588
|
title: '序号',
|
|
10591
10589
|
dataIndex: 'keyIndex',
|
|
@@ -11380,7 +11378,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11380
11378
|
}, {
|
|
11381
11379
|
name: 'qp-channelCode-in',
|
|
11382
11380
|
type: 'treeSelect',
|
|
11383
|
-
label: '
|
|
11381
|
+
label: '战区',
|
|
11384
11382
|
field: {
|
|
11385
11383
|
type: 'treeSelect',
|
|
11386
11384
|
props: {
|
|
@@ -11402,7 +11400,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11402
11400
|
}, {
|
|
11403
11401
|
name: 'qp-refCode-in',
|
|
11404
11402
|
type: 'treeSelect',
|
|
11405
|
-
label: '
|
|
11403
|
+
label: '大区',
|
|
11406
11404
|
field: {
|
|
11407
11405
|
type: 'treeSelect',
|
|
11408
11406
|
props: {
|
|
@@ -11955,17 +11953,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11955
11953
|
}
|
|
11956
11954
|
}
|
|
11957
11955
|
}];
|
|
11958
|
-
var
|
|
11956
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
11959
11957
|
querySelectHeadersList: querySelectHeadersList,
|
|
11960
11958
|
extralHeaders: extralHeaders
|
|
11961
11959
|
});
|
|
11962
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11960
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11963
11961
|
'qp-status-eq': 10,
|
|
11964
11962
|
'qp-isMain-eq': 1,
|
|
11965
11963
|
'qp-type-in': '1,2'
|
|
11966
|
-
}, getQueryHeadersItem(
|
|
11964
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11967
11965
|
'qp-status-eq': 1
|
|
11968
|
-
}, getQueryHeadersItem(
|
|
11966
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
11969
11967
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11970
11968
|
var allList = firstElement && [firstElement, firstElement];
|
|
11971
11969
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12151,7 +12149,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12151
12149
|
}
|
|
12152
12150
|
}
|
|
12153
12151
|
}];
|
|
12154
|
-
var
|
|
12152
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12155
12153
|
querySelectHeadersList: querySelectHeadersList,
|
|
12156
12154
|
extralHeaders: extralHeaders
|
|
12157
12155
|
});
|
|
@@ -12159,21 +12157,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12159
12157
|
pageSize: 5000,
|
|
12160
12158
|
currentPage: 1,
|
|
12161
12159
|
'qp-companyType-eq': '30'
|
|
12162
|
-
}, getQueryHeadersItem(
|
|
12160
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12163
12161
|
pageSize: 5000,
|
|
12164
12162
|
currentPage: 1,
|
|
12165
12163
|
'qp-companyType-eq': '20'
|
|
12166
|
-
}, getQueryHeadersItem(
|
|
12164
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12167
12165
|
// pageSize: 5000,
|
|
12168
12166
|
// currentPage: 1,
|
|
12169
12167
|
'qp-status-eq': '1'
|
|
12170
|
-
}, getQueryHeadersItem(
|
|
12168
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12171
12169
|
pageSize: 5000,
|
|
12172
12170
|
currentPage: 1
|
|
12173
|
-
}, getQueryHeadersItem(
|
|
12171
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12174
12172
|
pageSize: 5000,
|
|
12175
12173
|
currentPage: 1
|
|
12176
|
-
}, getQueryHeadersItem(
|
|
12174
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12177
12175
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12178
12176
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12179
12177
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12281,7 +12279,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12281
12279
|
}, {
|
|
12282
12280
|
name: 'qp-channelCode-in',
|
|
12283
12281
|
type: 'treeSelect',
|
|
12284
|
-
label: '
|
|
12282
|
+
label: '战区',
|
|
12285
12283
|
field: {
|
|
12286
12284
|
type: 'treeSelect',
|
|
12287
12285
|
props: {
|
|
@@ -12303,7 +12301,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12303
12301
|
}, {
|
|
12304
12302
|
name: 'qp-commonRelationAreaCode-in',
|
|
12305
12303
|
type: 'treeSelect',
|
|
12306
|
-
label: '
|
|
12304
|
+
label: '大区',
|
|
12307
12305
|
field: {
|
|
12308
12306
|
type: 'treeSelect',
|
|
12309
12307
|
props: {
|
|
@@ -12342,8 +12340,46 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12342
12340
|
}
|
|
12343
12341
|
},
|
|
12344
12342
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
12343
|
+
}, {
|
|
12344
|
+
name: "qp-brandCode-in",
|
|
12345
|
+
label: "品牌",
|
|
12346
|
+
field: {
|
|
12347
|
+
type: 'select',
|
|
12348
|
+
props: {
|
|
12349
|
+
mode: 'multiple',
|
|
12350
|
+
notFoundContent: '暂无数据',
|
|
12351
|
+
allowClear: true,
|
|
12352
|
+
showSearch: true,
|
|
12353
|
+
showArrow: true,
|
|
12354
|
+
maxTagCount: 1,
|
|
12355
|
+
optionFilterProp: 'children',
|
|
12356
|
+
filterOption: function filterOption(input, option) {
|
|
12357
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
12358
|
+
}
|
|
12359
|
+
}
|
|
12360
|
+
}
|
|
12361
|
+
}, {
|
|
12362
|
+
name: 'qp-manageSupervisor-like',
|
|
12363
|
+
label: '管理督导',
|
|
12364
|
+
type: 'input'
|
|
12365
|
+
}, {
|
|
12366
|
+
name: 'qp-directSupervisor-like',
|
|
12367
|
+
label: '直接督导',
|
|
12368
|
+
type: 'input'
|
|
12369
|
+
}, {
|
|
12370
|
+
name: 'qp-distributionItem-like',
|
|
12371
|
+
label: '分销商品',
|
|
12372
|
+
type: 'input'
|
|
12373
|
+
}, {
|
|
12374
|
+
name: 'qp-headItem-like',
|
|
12375
|
+
label: '总部商品',
|
|
12376
|
+
type: 'input'
|
|
12377
|
+
}, {
|
|
12378
|
+
name: 'qp-storeChannelName-like',
|
|
12379
|
+
label: '管理模式',
|
|
12380
|
+
type: 'input'
|
|
12345
12381
|
}];
|
|
12346
|
-
var
|
|
12382
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12347
12383
|
querySelectHeadersList: querySelectHeadersList,
|
|
12348
12384
|
extralHeaders: extralHeaders
|
|
12349
12385
|
});
|
|
@@ -12351,13 +12387,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12351
12387
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12352
12388
|
'qp-realOrg-eq': true,
|
|
12353
12389
|
'qp-status-eq': 10
|
|
12354
|
-
}, getQueryHeadersItem(
|
|
12390
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12355
12391
|
'qp-status-eq': 10,
|
|
12356
12392
|
'qp-isMain-eq': 1,
|
|
12357
12393
|
'qp-type-in': '1,2'
|
|
12358
|
-
}, getQueryHeadersItem(
|
|
12394
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12359
12395
|
'qp-status-eq': 1
|
|
12360
|
-
}, getQueryHeadersItem(
|
|
12396
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12397
|
+
pageSize: 5000,
|
|
12398
|
+
currentPage: 1,
|
|
12399
|
+
'ctl-withAuth': true
|
|
12400
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12361
12401
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12362
12402
|
return data['parentCode'] === '0';
|
|
12363
12403
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12367,6 +12407,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12367
12407
|
formatSource(x, 0, 3, tableSearchForm);
|
|
12368
12408
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
12369
12409
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
12410
|
+
formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
|
|
12370
12411
|
});
|
|
12371
12412
|
modalTableProps = _objectSpread2({
|
|
12372
12413
|
modalTableTitle: '选择商店',
|
|
@@ -12430,6 +12471,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12430
12471
|
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
12431
12472
|
},
|
|
12432
12473
|
width: 80
|
|
12474
|
+
}, {
|
|
12475
|
+
title: '品牌',
|
|
12476
|
+
dataIndex: 'brandName',
|
|
12477
|
+
defaultSort: 8,
|
|
12478
|
+
width: 80
|
|
12479
|
+
}, {
|
|
12480
|
+
title: '管理督导',
|
|
12481
|
+
dataIndex: 'manageSupervisor',
|
|
12482
|
+
defaultSort: 9,
|
|
12483
|
+
width: 100
|
|
12484
|
+
}, {
|
|
12485
|
+
title: '直接督导',
|
|
12486
|
+
dataIndex: 'directSupervisor',
|
|
12487
|
+
defaultSort: 10,
|
|
12488
|
+
width: 100
|
|
12489
|
+
}, {
|
|
12490
|
+
title: '分销商品',
|
|
12491
|
+
dataIndex: 'distributionItem',
|
|
12492
|
+
defaultSort: 11,
|
|
12493
|
+
width: 100
|
|
12494
|
+
}, {
|
|
12495
|
+
title: '总部商品',
|
|
12496
|
+
dataIndex: 'headItem',
|
|
12497
|
+
defaultSort: 12,
|
|
12498
|
+
width: 100
|
|
12499
|
+
}, {
|
|
12500
|
+
title: '管理模式',
|
|
12501
|
+
dataIndex: 'storeChannelName',
|
|
12502
|
+
defaultSort: 13,
|
|
12503
|
+
width: 100
|
|
12433
12504
|
}],
|
|
12434
12505
|
noEmptySearchField: true
|
|
12435
12506
|
}, modalTableBusProps);
|
|
@@ -12592,10 +12663,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12592
12663
|
name: 'qp-email-like',
|
|
12593
12664
|
label: '邮箱'
|
|
12594
12665
|
}, {
|
|
12595
|
-
name: 'qp-
|
|
12666
|
+
name: 'qp-officeTelephone-like',
|
|
12596
12667
|
label: '手机号'
|
|
12597
12668
|
}];
|
|
12598
|
-
var
|
|
12669
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
12599
12670
|
querySelectHeadersList: querySelectHeadersList,
|
|
12600
12671
|
extralHeaders: extralHeaders
|
|
12601
12672
|
});
|
|
@@ -12603,7 +12674,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12603
12674
|
pageSize: 5000,
|
|
12604
12675
|
currentPage: 1,
|
|
12605
12676
|
'qp-companyType-eq': 20
|
|
12606
|
-
}, getQueryHeadersItem(
|
|
12677
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
12607
12678
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12608
12679
|
});
|
|
12609
12680
|
modalTableProps = _objectSpread2({
|
|
@@ -12712,13 +12783,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12712
12783
|
name: 'qp-phone-like',
|
|
12713
12784
|
label: '手机号'
|
|
12714
12785
|
}]);
|
|
12715
|
-
var
|
|
12786
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
12716
12787
|
querySelectHeadersList: querySelectHeadersList,
|
|
12717
12788
|
extralHeaders: extralHeaders
|
|
12718
12789
|
});
|
|
12719
12790
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12720
12791
|
'orgViewCode': 'administrative-organization-view'
|
|
12721
|
-
}, getQueryHeadersItem(
|
|
12792
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
12722
12793
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12723
12794
|
});
|
|
12724
12795
|
modalTableProps = _objectSpread2({
|
|
@@ -12769,7 +12840,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12769
12840
|
dataIndex: 'email'
|
|
12770
12841
|
}, {
|
|
12771
12842
|
title: '手机号',
|
|
12772
|
-
dataIndex: '
|
|
12843
|
+
dataIndex: 'phone',
|
|
12773
12844
|
defaultSort: 4,
|
|
12774
12845
|
render: function render(text, record) {
|
|
12775
12846
|
return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
|
|
@@ -12865,17 +12936,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12865
12936
|
name: 'qp-remark-like',
|
|
12866
12937
|
label: '备注'
|
|
12867
12938
|
}];
|
|
12868
|
-
var
|
|
12939
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12869
12940
|
querySelectHeadersList: querySelectHeadersList,
|
|
12870
12941
|
extralHeaders: extralHeaders
|
|
12871
12942
|
});
|
|
12872
12943
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12873
12944
|
pageSize: 5000,
|
|
12874
12945
|
currentPage: 1
|
|
12875
|
-
}, getQueryHeadersItem(
|
|
12946
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12876
12947
|
pageSize: 5000,
|
|
12877
12948
|
currentPage: 1
|
|
12878
|
-
}, getQueryHeadersItem(
|
|
12949
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12879
12950
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12880
12951
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12881
12952
|
});
|
|
@@ -13045,14 +13116,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13045
13116
|
}
|
|
13046
13117
|
}
|
|
13047
13118
|
}];
|
|
13048
|
-
var
|
|
13119
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13049
13120
|
querySelectHeadersList: querySelectHeadersList,
|
|
13050
13121
|
extralHeaders: extralHeaders
|
|
13051
13122
|
});
|
|
13052
13123
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13053
13124
|
pageSize: 5000,
|
|
13054
13125
|
currentPage: 1
|
|
13055
|
-
}, getQueryHeadersItem(
|
|
13126
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13056
13127
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13057
13128
|
});
|
|
13058
13129
|
modalTableProps = _objectSpread2({
|
|
@@ -13149,7 +13220,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13149
13220
|
}
|
|
13150
13221
|
}
|
|
13151
13222
|
}];
|
|
13152
|
-
var
|
|
13223
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13153
13224
|
querySelectHeadersList: querySelectHeadersList,
|
|
13154
13225
|
extralHeaders: extralHeaders
|
|
13155
13226
|
});
|
|
@@ -13157,7 +13228,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13157
13228
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13158
13229
|
'qp-realOrg-eq': true,
|
|
13159
13230
|
'qp-status-eq': 10
|
|
13160
|
-
}, getQueryHeadersItem(
|
|
13231
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13161
13232
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13162
13233
|
});
|
|
13163
13234
|
modalTableProps = _objectSpread2({
|
|
@@ -13263,13 +13334,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13263
13334
|
},
|
|
13264
13335
|
initialSource: nodeType
|
|
13265
13336
|
}];
|
|
13266
|
-
var
|
|
13337
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13267
13338
|
querySelectHeadersList: querySelectHeadersList,
|
|
13268
13339
|
extralHeaders: extralHeaders
|
|
13269
13340
|
});
|
|
13270
13341
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13271
13342
|
'qp-status-eq': 10
|
|
13272
|
-
}, getQueryHeadersItem(
|
|
13343
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13273
13344
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13274
13345
|
});
|
|
13275
13346
|
modalTableProps = _objectSpread2({
|
|
@@ -13595,13 +13666,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13595
13666
|
},
|
|
13596
13667
|
initialSource: nodeType
|
|
13597
13668
|
}];
|
|
13598
|
-
var
|
|
13669
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
13599
13670
|
querySelectHeadersList: querySelectHeadersList,
|
|
13600
13671
|
extralHeaders: extralHeaders
|
|
13601
13672
|
});
|
|
13602
13673
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13603
13674
|
'qp-status-eq': 10
|
|
13604
|
-
}, getQueryHeadersItem(
|
|
13675
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13605
13676
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13606
13677
|
});
|
|
13607
13678
|
modalTableProps = _objectSpread2({
|
|
@@ -14546,9 +14617,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14546
14617
|
value = _useState8[0],
|
|
14547
14618
|
setValue = _useState8[1];
|
|
14548
14619
|
var _useState9 = useState([]),
|
|
14549
|
-
|
|
14550
|
-
propertyList =
|
|
14551
|
-
setPropertyList =
|
|
14620
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14621
|
+
propertyList = _useState0[0],
|
|
14622
|
+
setPropertyList = _useState0[1];
|
|
14552
14623
|
useEffect(function () {
|
|
14553
14624
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14554
14625
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14971,7 +15042,7 @@ function getStorageVale(storageKeyString) {
|
|
|
14971
15042
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
14972
15043
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
14973
15044
|
localstorage = _storageKeyString$spl2[0],
|
|
14974
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15045
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
14975
15046
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
14976
15047
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
14977
15048
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15072,46 +15143,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15072
15143
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
15073
15144
|
headers: headers
|
|
15074
15145
|
}).then(/*#__PURE__*/function () {
|
|
15075
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15146
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15076
15147
|
var _ctx$form;
|
|
15077
15148
|
var resData, coverData, data, dataList;
|
|
15078
|
-
return
|
|
15079
|
-
while (1) switch (_context.
|
|
15149
|
+
return _regenerator().w(function (_context) {
|
|
15150
|
+
while (1) switch (_context.n) {
|
|
15080
15151
|
case 0:
|
|
15081
15152
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15082
15153
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15083
|
-
_context.
|
|
15154
|
+
_context.n = 4;
|
|
15084
15155
|
break;
|
|
15085
15156
|
}
|
|
15086
15157
|
data = resData.data;
|
|
15087
15158
|
if (!remoteSource.converter) {
|
|
15088
|
-
_context.
|
|
15159
|
+
_context.n = 2;
|
|
15089
15160
|
break;
|
|
15090
15161
|
}
|
|
15091
|
-
_context.
|
|
15162
|
+
_context.n = 1;
|
|
15092
15163
|
return remoteSource.converter({
|
|
15093
15164
|
data: [data]
|
|
15094
15165
|
});
|
|
15095
|
-
case
|
|
15096
|
-
coverData = _context.
|
|
15097
|
-
_context.
|
|
15166
|
+
case 1:
|
|
15167
|
+
coverData = _context.v;
|
|
15168
|
+
_context.n = 3;
|
|
15098
15169
|
break;
|
|
15099
|
-
case
|
|
15170
|
+
case 2:
|
|
15100
15171
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15101
15172
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15102
15173
|
return _mapSearchTree(ites);
|
|
15103
15174
|
}) || [];
|
|
15104
|
-
case
|
|
15105
|
-
_context.
|
|
15175
|
+
case 3:
|
|
15176
|
+
_context.n = 5;
|
|
15106
15177
|
break;
|
|
15107
|
-
case
|
|
15178
|
+
case 4:
|
|
15108
15179
|
coverData = [];
|
|
15109
|
-
case
|
|
15180
|
+
case 5:
|
|
15110
15181
|
setTreeData(coverData);
|
|
15111
15182
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15112
|
-
case
|
|
15113
|
-
|
|
15114
|
-
return _context.stop();
|
|
15183
|
+
case 6:
|
|
15184
|
+
return _context.a(2);
|
|
15115
15185
|
}
|
|
15116
15186
|
}, _callee);
|
|
15117
15187
|
}));
|
|
@@ -18010,6 +18080,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18010
18080
|
title: '列首',
|
|
18011
18081
|
dataIndex: 'fixedLeft',
|
|
18012
18082
|
render: function render(text, record) {
|
|
18083
|
+
if (_this.props.disableColumnFixed) {
|
|
18084
|
+
return null;
|
|
18085
|
+
}
|
|
18013
18086
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
18014
18087
|
onClick: function onClick() {
|
|
18015
18088
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -18086,6 +18159,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
18086
18159
|
title: '列尾',
|
|
18087
18160
|
dataIndex: 'fixedRight',
|
|
18088
18161
|
render: function render(text, record) {
|
|
18162
|
+
if (_this.props.disableColumnFixed) {
|
|
18163
|
+
return null;
|
|
18164
|
+
}
|
|
18089
18165
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
18090
18166
|
onClick: function onClick() {
|
|
18091
18167
|
var sortDataSource = _this.state.sortDataSource;
|
|
@@ -19335,7 +19411,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
19335
19411
|
}, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
|
|
19336
19412
|
};
|
|
19337
19413
|
var BsSulaQueryTable = (function (props) {
|
|
19338
|
-
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
|
|
19414
|
+
var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
|
|
19339
19415
|
var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
|
|
19340
19416
|
var rowsRef = useRef(null);
|
|
19341
19417
|
// 获取 table columns中所有的 key 防止有的地方是 dataindex
|
|
@@ -19413,38 +19489,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19413
19489
|
};
|
|
19414
19490
|
var refs = useRef(null);
|
|
19415
19491
|
var _useState9 = useState(''),
|
|
19416
|
-
|
|
19417
|
-
pagePath =
|
|
19418
|
-
setPagePath =
|
|
19492
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19493
|
+
pagePath = _useState0[0],
|
|
19494
|
+
setPagePath = _useState0[1];
|
|
19419
19495
|
var _useLocation = useLocation(),
|
|
19420
19496
|
pathname = _useLocation.pathname,
|
|
19421
|
-
_useLocation$state = _useLocation.state
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
setIsFnllScreen = _useState12[1];
|
|
19497
|
+
_useLocation$state = _useLocation.state;
|
|
19498
|
+
var _useState1 = useState(false),
|
|
19499
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19500
|
+
isFullScreen = _useState10[0],
|
|
19501
|
+
setIsFnllScreen = _useState10[1];
|
|
19427
19502
|
// @ts-nocheck
|
|
19428
19503
|
var value = props;
|
|
19429
19504
|
var _props$fields = props.fields,
|
|
19430
19505
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19431
|
-
var
|
|
19432
|
-
|
|
19433
|
-
showColumn =
|
|
19434
|
-
setShowColumns =
|
|
19506
|
+
var _useState11 = useState([]),
|
|
19507
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19508
|
+
showColumn = _useState12[0],
|
|
19509
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19435
19510
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19436
|
-
var
|
|
19511
|
+
var _useState13 = useState(originSearchFields),
|
|
19512
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19513
|
+
showSearchFields = _useState14[0],
|
|
19514
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19515
|
+
var _useState15 = useState([]),
|
|
19437
19516
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
var _useState17 = useState(
|
|
19517
|
+
showExportColumn = _useState16[0],
|
|
19518
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19519
|
+
var _useState17 = useState(''),
|
|
19441
19520
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
var _useState19 = useState(''),
|
|
19445
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19446
|
-
height = _useState20[0],
|
|
19447
|
-
setHeight = _useState20[1];
|
|
19521
|
+
height = _useState18[0],
|
|
19522
|
+
setHeight = _useState18[1];
|
|
19448
19523
|
var sortTableRef = useRef(null);
|
|
19449
19524
|
var searchTableRef = useRef(null);
|
|
19450
19525
|
var exportTableRef = useRef(null);
|
|
@@ -19895,17 +19970,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19895
19970
|
isFullScreen: isFullScreen
|
|
19896
19971
|
});
|
|
19897
19972
|
useEffect(function () {
|
|
19898
|
-
if (!localStorage.getItem('isTabChange') ||
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19905
|
-
|
|
19906
|
-
|
|
19907
|
-
|
|
19908
|
-
}, 0);
|
|
19973
|
+
// if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
|
|
19974
|
+
// if (pagePath === pathname) {
|
|
19975
|
+
// // @ts-ignore
|
|
19976
|
+
// config.ref?.current?.tableRef?.current?.refreshTable();
|
|
19977
|
+
// }
|
|
19978
|
+
// }
|
|
19979
|
+
// setTimeout(() => {
|
|
19980
|
+
// // 处理页面刷新两面
|
|
19981
|
+
// localStorage.removeItem('isTabChange');
|
|
19982
|
+
// }, 0);
|
|
19909
19983
|
}, [pathname]);
|
|
19910
19984
|
var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
|
|
19911
19985
|
//todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
|
|
@@ -19996,6 +20070,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19996
20070
|
id: "bs-sula-query-table"
|
|
19997
20071
|
}, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
19998
20072
|
ref: sortTableRef,
|
|
20073
|
+
disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
|
|
19999
20074
|
setShowColumns: setResizeShowColumns,
|
|
20000
20075
|
showColumn: showColumn,
|
|
20001
20076
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -20072,7 +20147,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20072
20147
|
if (!match) return null;
|
|
20073
20148
|
var _match = _toArray(match),
|
|
20074
20149
|
url = _match[0],
|
|
20075
|
-
values = _match.slice(1);
|
|
20150
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
20076
20151
|
var isExact = pathname === url;
|
|
20077
20152
|
if (exact && !isExact) return null;
|
|
20078
20153
|
return {
|
|
@@ -20492,22 +20567,19 @@ function outLogin(_x) {
|
|
|
20492
20567
|
return _outLogin.apply(this, arguments);
|
|
20493
20568
|
}
|
|
20494
20569
|
function _outLogin() {
|
|
20495
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20570
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20496
20571
|
var res;
|
|
20497
|
-
return
|
|
20498
|
-
while (1) switch (_context.
|
|
20572
|
+
return _regenerator().w(function (_context) {
|
|
20573
|
+
while (1) switch (_context.n) {
|
|
20499
20574
|
case 0:
|
|
20500
|
-
_context.
|
|
20575
|
+
_context.n = 1;
|
|
20501
20576
|
return requestUtil({
|
|
20502
20577
|
url: '/user/web/loginOut',
|
|
20503
20578
|
method: 'GET'
|
|
20504
20579
|
});
|
|
20505
|
-
case
|
|
20506
|
-
res = _context.
|
|
20507
|
-
return _context.
|
|
20508
|
-
case 4:
|
|
20509
|
-
case "end":
|
|
20510
|
-
return _context.stop();
|
|
20580
|
+
case 1:
|
|
20581
|
+
res = _context.v;
|
|
20582
|
+
return _context.a(2, res);
|
|
20511
20583
|
}
|
|
20512
20584
|
}, _callee);
|
|
20513
20585
|
}));
|
|
@@ -20634,20 +20706,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20634
20706
|
});
|
|
20635
20707
|
};
|
|
20636
20708
|
var loginOut = /*#__PURE__*/function () {
|
|
20637
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20709
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
20638
20710
|
var sessionId;
|
|
20639
|
-
return
|
|
20640
|
-
while (1) switch (_context.
|
|
20711
|
+
return _regenerator().w(function (_context) {
|
|
20712
|
+
while (1) switch (_context.n) {
|
|
20641
20713
|
case 0:
|
|
20642
|
-
_context.
|
|
20714
|
+
_context.n = 1;
|
|
20643
20715
|
return getSessionId();
|
|
20644
|
-
case
|
|
20645
|
-
sessionId = _context.
|
|
20646
|
-
_context.
|
|
20716
|
+
case 1:
|
|
20717
|
+
sessionId = _context.v;
|
|
20718
|
+
_context.n = 2;
|
|
20647
20719
|
return outLogin({
|
|
20648
20720
|
sessionId: sessionId
|
|
20649
20721
|
});
|
|
20650
|
-
case
|
|
20722
|
+
case 2:
|
|
20651
20723
|
// @ts-ignore
|
|
20652
20724
|
if (BUILD_TYPE) {
|
|
20653
20725
|
message$1.success('退出登录成功');
|
|
@@ -20657,9 +20729,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20657
20729
|
} else {
|
|
20658
20730
|
setLoginOutPath();
|
|
20659
20731
|
}
|
|
20660
|
-
case
|
|
20661
|
-
|
|
20662
|
-
return _context.stop();
|
|
20732
|
+
case 3:
|
|
20733
|
+
return _context.a(2);
|
|
20663
20734
|
}
|
|
20664
20735
|
}, _callee);
|
|
20665
20736
|
}));
|
|
@@ -20746,18 +20817,15 @@ function getStoreByName(_x) {
|
|
|
20746
20817
|
return _getStoreByName.apply(this, arguments);
|
|
20747
20818
|
}
|
|
20748
20819
|
function _getStoreByName() {
|
|
20749
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20750
|
-
return
|
|
20751
|
-
while (1) switch (_context.
|
|
20820
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20821
|
+
return _regenerator().w(function (_context) {
|
|
20822
|
+
while (1) switch (_context.n) {
|
|
20752
20823
|
case 0:
|
|
20753
|
-
return _context.
|
|
20824
|
+
return _context.a(2, requestUtil({
|
|
20754
20825
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20755
20826
|
method: 'GET',
|
|
20756
20827
|
params: _objectSpread2({}, params)
|
|
20757
20828
|
}));
|
|
20758
|
-
case 1:
|
|
20759
|
-
case "end":
|
|
20760
|
-
return _context.stop();
|
|
20761
20829
|
}
|
|
20762
20830
|
}, _callee);
|
|
20763
20831
|
}));
|
|
@@ -20792,33 +20860,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20792
20860
|
openSelect = _useState8[0],
|
|
20793
20861
|
setOpenSelect = _useState8[1];
|
|
20794
20862
|
var _useState9 = useState([]),
|
|
20795
|
-
|
|
20796
|
-
options =
|
|
20797
|
-
setOptions =
|
|
20798
|
-
var
|
|
20863
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
20864
|
+
options = _useState0[0],
|
|
20865
|
+
setOptions = _useState0[1];
|
|
20866
|
+
var _useState1 = useState([]),
|
|
20867
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
20868
|
+
rescouse = _useState10[0],
|
|
20869
|
+
setRescouse = _useState10[1];
|
|
20870
|
+
var _useState11 = useState(''),
|
|
20799
20871
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
var _useState13 = useState(
|
|
20803
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
20804
|
-
searchValue = _useState14[0],
|
|
20805
|
-
setSearchValue = _useState14[1];
|
|
20806
|
-
var _useState15 = useState([{
|
|
20872
|
+
searchValue = _useState12[0],
|
|
20873
|
+
setSearchValue = _useState12[1];
|
|
20874
|
+
var _useState13 = useState([{
|
|
20807
20875
|
label: name,
|
|
20808
20876
|
value: code
|
|
20809
20877
|
}]),
|
|
20810
|
-
|
|
20811
|
-
store =
|
|
20812
|
-
setStore =
|
|
20878
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20879
|
+
store = _useState14[0],
|
|
20880
|
+
setStore = _useState14[1];
|
|
20813
20881
|
function fetchUserList(_x, _x2) {
|
|
20814
20882
|
return _fetchUserList.apply(this, arguments);
|
|
20815
20883
|
}
|
|
20816
20884
|
function _fetchUserList() {
|
|
20817
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20818
|
-
return
|
|
20819
|
-
while (1) switch (_context3.
|
|
20885
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
20886
|
+
return _regenerator().w(function (_context3) {
|
|
20887
|
+
while (1) switch (_context3.n) {
|
|
20820
20888
|
case 0:
|
|
20821
|
-
return _context3.
|
|
20889
|
+
return _context3.a(2, getStoreByName({
|
|
20822
20890
|
orgName: storeName ? storeName : undefined,
|
|
20823
20891
|
platCompanyCode: init ? undefined : key,
|
|
20824
20892
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20837,9 +20905,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20837
20905
|
};
|
|
20838
20906
|
});
|
|
20839
20907
|
}));
|
|
20840
|
-
case 1:
|
|
20841
|
-
case "end":
|
|
20842
|
-
return _context3.stop();
|
|
20843
20908
|
}
|
|
20844
20909
|
}, _callee3);
|
|
20845
20910
|
}));
|
|
@@ -20862,20 +20927,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20862
20927
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20863
20928
|
}, [debounceTimeout, key]);
|
|
20864
20929
|
var changeInput = /*#__PURE__*/function () {
|
|
20865
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20930
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
20866
20931
|
var res;
|
|
20867
|
-
return
|
|
20868
|
-
while (1) switch (_context.
|
|
20932
|
+
return _regenerator().w(function (_context) {
|
|
20933
|
+
while (1) switch (_context.n) {
|
|
20869
20934
|
case 0:
|
|
20870
|
-
_context.
|
|
20935
|
+
_context.n = 1;
|
|
20871
20936
|
return debounceFetcher(str);
|
|
20872
|
-
case
|
|
20873
|
-
res = _context.
|
|
20937
|
+
case 1:
|
|
20938
|
+
res = _context.v;
|
|
20874
20939
|
setOptions(res);
|
|
20875
20940
|
setRescouse(res);
|
|
20876
|
-
case
|
|
20877
|
-
|
|
20878
|
-
return _context.stop();
|
|
20941
|
+
case 2:
|
|
20942
|
+
return _context.a(2);
|
|
20879
20943
|
}
|
|
20880
20944
|
}, _callee);
|
|
20881
20945
|
}));
|
|
@@ -20884,15 +20948,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20884
20948
|
};
|
|
20885
20949
|
}();
|
|
20886
20950
|
useEffect(function () {
|
|
20887
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20951
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
20888
20952
|
var res;
|
|
20889
|
-
return
|
|
20890
|
-
while (1) switch (_context2.
|
|
20953
|
+
return _regenerator().w(function (_context2) {
|
|
20954
|
+
while (1) switch (_context2.n) {
|
|
20891
20955
|
case 0:
|
|
20892
|
-
_context2.
|
|
20956
|
+
_context2.n = 1;
|
|
20893
20957
|
return fetchUserList(undefined, true);
|
|
20894
|
-
case
|
|
20895
|
-
res = _context2.
|
|
20958
|
+
case 1:
|
|
20959
|
+
res = _context2.v;
|
|
20896
20960
|
res.map(function (item, indexNumber) {
|
|
20897
20961
|
if (item.label === name) {
|
|
20898
20962
|
setIndex(indexNumber);
|
|
@@ -20908,9 +20972,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20908
20972
|
});
|
|
20909
20973
|
setOptions(res);
|
|
20910
20974
|
setRescouse(res);
|
|
20911
|
-
case
|
|
20912
|
-
|
|
20913
|
-
return _context2.stop();
|
|
20975
|
+
case 2:
|
|
20976
|
+
return _context2.a(2);
|
|
20914
20977
|
}
|
|
20915
20978
|
}, _callee2);
|
|
20916
20979
|
}))();
|
|
@@ -21959,25 +22022,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21959
22022
|
currentOneLevel = _useState8[0],
|
|
21960
22023
|
setCurrentOneLevel = _useState8[1];
|
|
21961
22024
|
var _useState9 = useState([]),
|
|
21962
|
-
|
|
21963
|
-
SearhData =
|
|
21964
|
-
setSearchMenuData =
|
|
21965
|
-
var
|
|
22025
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
22026
|
+
SearhData = _useState0[0],
|
|
22027
|
+
setSearchMenuData = _useState0[1];
|
|
22028
|
+
var _useState1 = useState(600),
|
|
22029
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
22030
|
+
rightMenuHeight = _useState10[0],
|
|
22031
|
+
setHeight = _useState10[1];
|
|
22032
|
+
var _useState11 = useState(900),
|
|
21966
22033
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
var _useState13 = useState(
|
|
22034
|
+
drawHeight = _useState12[0],
|
|
22035
|
+
setDrawHeight = _useState12[1];
|
|
22036
|
+
var _useState13 = useState(false),
|
|
21970
22037
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21971
|
-
|
|
21972
|
-
|
|
22038
|
+
moreBtnShow = _useState14[0],
|
|
22039
|
+
setMoreBtnShow = _useState14[1];
|
|
21973
22040
|
var _useState15 = useState(false),
|
|
21974
22041
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
var _useState17 = useState(false),
|
|
21978
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
21979
|
-
showScroll = _useState18[0],
|
|
21980
|
-
setShowScroll = _useState18[1];
|
|
22042
|
+
showScroll = _useState16[0],
|
|
22043
|
+
setShowScroll = _useState16[1];
|
|
21981
22044
|
useEffect(function () {
|
|
21982
22045
|
var _originRoutes$find;
|
|
21983
22046
|
getMenuContentHeight();
|
|
@@ -23588,14 +23651,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23588
23651
|
},
|
|
23589
23652
|
menu: {
|
|
23590
23653
|
request: function () {
|
|
23591
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23592
|
-
return
|
|
23593
|
-
while (1) switch (_context.
|
|
23654
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23655
|
+
return _regenerator().w(function (_context) {
|
|
23656
|
+
while (1) switch (_context.n) {
|
|
23594
23657
|
case 0:
|
|
23595
|
-
return _context.
|
|
23596
|
-
case 1:
|
|
23597
|
-
case "end":
|
|
23598
|
-
return _context.stop();
|
|
23658
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23599
23659
|
}
|
|
23600
23660
|
}, _callee);
|
|
23601
23661
|
}));
|
|
@@ -24000,31 +24060,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24000
24060
|
multiTableData = _useState8[0],
|
|
24001
24061
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24002
24062
|
var _useState9 = useState(10),
|
|
24003
|
-
|
|
24004
|
-
viewCount =
|
|
24005
|
-
setViewCount =
|
|
24063
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24064
|
+
viewCount = _useState0[0],
|
|
24065
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24006
24066
|
var itemWidth = 100; // 表格每一项宽度
|
|
24007
|
-
var
|
|
24008
|
-
|
|
24009
|
-
realColHeaderWidth =
|
|
24010
|
-
setLeftWidth =
|
|
24067
|
+
var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24068
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
24069
|
+
realColHeaderWidth = _useState10[0],
|
|
24070
|
+
setLeftWidth = _useState10[1];
|
|
24011
24071
|
var viewPort = useRef(null);
|
|
24012
24072
|
var topScrollBar = useRef(null);
|
|
24013
24073
|
var leftTableRef = useRef(null);
|
|
24014
24074
|
//起始渲染item
|
|
24015
|
-
var
|
|
24016
|
-
|
|
24017
|
-
startIndex =
|
|
24018
|
-
setStartIndex =
|
|
24075
|
+
var _useState11 = useState(0),
|
|
24076
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24077
|
+
startIndex = _useState12[0],
|
|
24078
|
+
setStartIndex = _useState12[1];
|
|
24019
24079
|
//结束渲染item
|
|
24020
24080
|
var endIndex = useMemo(function () {
|
|
24021
24081
|
return startIndex + viewCount;
|
|
24022
24082
|
}, [startIndex, viewCount]);
|
|
24023
24083
|
//表格偏移量
|
|
24024
|
-
var
|
|
24025
|
-
|
|
24026
|
-
offsetWidth =
|
|
24027
|
-
setOffset =
|
|
24084
|
+
var _useState13 = useState(0),
|
|
24085
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24086
|
+
offsetWidth = _useState14[0],
|
|
24087
|
+
setOffset = _useState14[1];
|
|
24028
24088
|
useEffect(function () {
|
|
24029
24089
|
setTimeout(function () {
|
|
24030
24090
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31328,11 +31388,11 @@ var valueType = {
|
|
|
31328
31388
|
};
|
|
31329
31389
|
|
|
31330
31390
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31331
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31332
|
-
return
|
|
31333
|
-
while (1) switch (_context.
|
|
31391
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31392
|
+
return _regenerator().w(function (_context) {
|
|
31393
|
+
while (1) switch (_context.n) {
|
|
31334
31394
|
case 0:
|
|
31335
|
-
_context.
|
|
31395
|
+
_context.n = 1;
|
|
31336
31396
|
return request$2({
|
|
31337
31397
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31338
31398
|
converter: function converter(_ref2) {
|
|
@@ -31345,11 +31405,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31345
31405
|
});
|
|
31346
31406
|
}
|
|
31347
31407
|
});
|
|
31348
|
-
case
|
|
31349
|
-
return _context.
|
|
31350
|
-
case 3:
|
|
31351
|
-
case "end":
|
|
31352
|
-
return _context.stop();
|
|
31408
|
+
case 1:
|
|
31409
|
+
return _context.a(2, _context.v);
|
|
31353
31410
|
}
|
|
31354
31411
|
}, _callee);
|
|
31355
31412
|
}));
|
|
@@ -31396,12 +31453,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31396
31453
|
value: false
|
|
31397
31454
|
}];
|
|
31398
31455
|
var ref = useRef();
|
|
31399
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31400
|
-
var _ref$current, source;
|
|
31401
|
-
return
|
|
31402
|
-
while (1) switch (_context.
|
|
31456
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31457
|
+
var _ref$current, source, _t, _t2;
|
|
31458
|
+
return _regenerator().w(function (_context) {
|
|
31459
|
+
while (1) switch (_context.n) {
|
|
31403
31460
|
case 0:
|
|
31404
|
-
_context.
|
|
31461
|
+
_context.n = 1;
|
|
31405
31462
|
return setIsShowAndType(function (prev) {
|
|
31406
31463
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31407
31464
|
return {
|
|
@@ -31412,40 +31469,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31412
31469
|
}
|
|
31413
31470
|
return prev;
|
|
31414
31471
|
});
|
|
31415
|
-
case
|
|
31472
|
+
case 1:
|
|
31416
31473
|
if (!record.dictionaryCode) {
|
|
31417
|
-
_context.
|
|
31474
|
+
_context.n = 7;
|
|
31418
31475
|
break;
|
|
31419
31476
|
}
|
|
31420
31477
|
if (!(record.choiceType == 20)) {
|
|
31421
|
-
_context.
|
|
31478
|
+
_context.n = 2;
|
|
31422
31479
|
break;
|
|
31423
31480
|
}
|
|
31424
|
-
|
|
31425
|
-
_context.
|
|
31481
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31482
|
+
_context.n = 6;
|
|
31426
31483
|
break;
|
|
31427
|
-
case
|
|
31484
|
+
case 2:
|
|
31428
31485
|
if (!(record.choiceType == 30)) {
|
|
31429
|
-
_context.
|
|
31486
|
+
_context.n = 4;
|
|
31430
31487
|
break;
|
|
31431
31488
|
}
|
|
31432
|
-
_context.
|
|
31489
|
+
_context.n = 3;
|
|
31433
31490
|
return getDynamicDict(record.dictionaryCode);
|
|
31434
|
-
case
|
|
31435
|
-
|
|
31436
|
-
_context.
|
|
31491
|
+
case 3:
|
|
31492
|
+
_t2 = _context.v;
|
|
31493
|
+
_context.n = 5;
|
|
31437
31494
|
break;
|
|
31438
|
-
case
|
|
31439
|
-
|
|
31440
|
-
case
|
|
31441
|
-
|
|
31442
|
-
case
|
|
31443
|
-
source =
|
|
31495
|
+
case 4:
|
|
31496
|
+
_t2 = [];
|
|
31497
|
+
case 5:
|
|
31498
|
+
_t = _t2;
|
|
31499
|
+
case 6:
|
|
31500
|
+
source = _t;
|
|
31444
31501
|
// @ts-ignore
|
|
31445
31502
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31446
|
-
case
|
|
31447
|
-
|
|
31448
|
-
return _context.stop();
|
|
31503
|
+
case 7:
|
|
31504
|
+
return _context.a(2);
|
|
31449
31505
|
}
|
|
31450
31506
|
}, _callee);
|
|
31451
31507
|
})));
|
|
@@ -31510,10 +31566,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31510
31566
|
source: {
|
|
31511
31567
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31512
31568
|
type: function () {
|
|
31513
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31569
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31514
31570
|
var form, values, name, relates, source;
|
|
31515
|
-
return
|
|
31516
|
-
while (1) switch (_context2.
|
|
31571
|
+
return _regenerator().w(function (_context2) {
|
|
31572
|
+
while (1) switch (_context2.n) {
|
|
31517
31573
|
case 0:
|
|
31518
31574
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31519
31575
|
if (values[0]) {
|
|
@@ -31522,19 +31578,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31522
31578
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31523
31579
|
}
|
|
31524
31580
|
if (!values[1]) {
|
|
31525
|
-
_context2.
|
|
31581
|
+
_context2.n = 2;
|
|
31526
31582
|
break;
|
|
31527
31583
|
}
|
|
31528
|
-
_context2.
|
|
31584
|
+
_context2.n = 1;
|
|
31529
31585
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
31530
|
-
case
|
|
31531
|
-
source = _context2.
|
|
31586
|
+
case 1:
|
|
31587
|
+
source = _context2.v;
|
|
31532
31588
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
31533
31589
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
31534
31590
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
31535
|
-
case
|
|
31536
|
-
|
|
31537
|
-
return _context2.stop();
|
|
31591
|
+
case 2:
|
|
31592
|
+
return _context2.a(2);
|
|
31538
31593
|
}
|
|
31539
31594
|
}, _callee2);
|
|
31540
31595
|
}));
|
|
@@ -31990,25 +32045,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31990
32045
|
source: {
|
|
31991
32046
|
relates: ['choiceType', 'inputType'],
|
|
31992
32047
|
type: function () {
|
|
31993
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32048
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
31994
32049
|
var values, name, form, source;
|
|
31995
|
-
return
|
|
31996
|
-
while (1) switch (_context3.
|
|
32050
|
+
return _regenerator().w(function (_context3) {
|
|
32051
|
+
while (1) switch (_context3.n) {
|
|
31997
32052
|
case 0:
|
|
31998
|
-
values =
|
|
32053
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
31999
32054
|
if (values[1] === 40) {
|
|
32000
32055
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32001
32056
|
form.setFieldVisible(name, false);
|
|
32002
32057
|
}
|
|
32003
32058
|
if (!(values[0] === 30)) {
|
|
32004
|
-
_context3.
|
|
32059
|
+
_context3.n = 2;
|
|
32005
32060
|
break;
|
|
32006
32061
|
}
|
|
32007
|
-
_context3.
|
|
32062
|
+
_context3.n = 1;
|
|
32008
32063
|
return request$2({
|
|
32009
32064
|
url: '/basic/dictDynamicItem/queryList',
|
|
32010
|
-
converter: function converter(
|
|
32011
|
-
var data =
|
|
32065
|
+
converter: function converter(_ref1) {
|
|
32066
|
+
var data = _ref1.data;
|
|
32012
32067
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32013
32068
|
return {
|
|
32014
32069
|
text: d.dictCode,
|
|
@@ -32017,17 +32072,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32017
32072
|
});
|
|
32018
32073
|
}
|
|
32019
32074
|
});
|
|
32020
|
-
case
|
|
32021
|
-
source = _context3.
|
|
32075
|
+
case 1:
|
|
32076
|
+
source = _context3.v;
|
|
32022
32077
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32023
32078
|
form.setFieldVisible(name, true);
|
|
32024
|
-
_context3.
|
|
32079
|
+
_context3.n = 3;
|
|
32025
32080
|
break;
|
|
32026
|
-
case
|
|
32081
|
+
case 2:
|
|
32027
32082
|
form.setFieldVisible(name, false);
|
|
32028
|
-
case
|
|
32029
|
-
|
|
32030
|
-
return _context3.stop();
|
|
32083
|
+
case 3:
|
|
32084
|
+
return _context3.a(2);
|
|
32031
32085
|
}
|
|
32032
32086
|
}, _callee3);
|
|
32033
32087
|
}));
|
|
@@ -32042,8 +32096,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32042
32096
|
name: 'enumeration',
|
|
32043
32097
|
label: '维护自定义选项',
|
|
32044
32098
|
field: {
|
|
32045
|
-
type: function type(
|
|
32046
|
-
var form =
|
|
32099
|
+
type: function type(_ref10) {
|
|
32100
|
+
var form = _ref10.form;
|
|
32047
32101
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
32048
32102
|
type: 'link',
|
|
32049
32103
|
onClick: function onClick() {
|
|
@@ -32069,10 +32123,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32069
32123
|
dependency: {
|
|
32070
32124
|
source: {
|
|
32071
32125
|
relates: ['choiceType'],
|
|
32072
|
-
type: function type(
|
|
32073
|
-
var values =
|
|
32074
|
-
name =
|
|
32075
|
-
form =
|
|
32126
|
+
type: function type(_ref11) {
|
|
32127
|
+
var values = _ref11.values,
|
|
32128
|
+
name = _ref11.name,
|
|
32129
|
+
form = _ref11.form;
|
|
32076
32130
|
if (values[0] === 10) {
|
|
32077
32131
|
form.setFieldVisible(name, true);
|
|
32078
32132
|
} else {
|
|
@@ -32088,10 +32142,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32088
32142
|
dependency: {
|
|
32089
32143
|
visible: {
|
|
32090
32144
|
relates: ['choiceType'],
|
|
32091
|
-
type: function type(
|
|
32092
|
-
var name =
|
|
32093
|
-
values =
|
|
32094
|
-
form =
|
|
32145
|
+
type: function type(_ref12) {
|
|
32146
|
+
var name = _ref12.name,
|
|
32147
|
+
values = _ref12.values,
|
|
32148
|
+
form = _ref12.form;
|
|
32095
32149
|
if (values[0] == 330) {
|
|
32096
32150
|
form.setFieldVisible(name, true);
|
|
32097
32151
|
} else {
|
|
@@ -32115,8 +32169,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32115
32169
|
params: {
|
|
32116
32170
|
'qp-businessType-eq': record.businessType
|
|
32117
32171
|
},
|
|
32118
|
-
converter: function converter(
|
|
32119
|
-
var data =
|
|
32172
|
+
converter: function converter(_ref13) {
|
|
32173
|
+
var data = _ref13.data;
|
|
32120
32174
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32121
32175
|
return {
|
|
32122
32176
|
text: d.name,
|
|
@@ -32156,8 +32210,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32156
32210
|
'qp-businessType-eq': record.businessType,
|
|
32157
32211
|
'qp-status-eq': 1
|
|
32158
32212
|
},
|
|
32159
|
-
converter: function converter(
|
|
32160
|
-
var data =
|
|
32213
|
+
converter: function converter(_ref14) {
|
|
32214
|
+
var data = _ref14.data;
|
|
32161
32215
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32162
32216
|
var _d$code;
|
|
32163
32217
|
return {
|
|
@@ -32185,8 +32239,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32185
32239
|
remoteSource: {
|
|
32186
32240
|
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),
|
|
32187
32241
|
method: 'get',
|
|
32188
|
-
converter: function converter(
|
|
32189
|
-
var data =
|
|
32242
|
+
converter: function converter(_ref15) {
|
|
32243
|
+
var data = _ref15.data;
|
|
32190
32244
|
if (lineDetail.moduleType == 1) {
|
|
32191
32245
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32192
32246
|
return {
|
|
@@ -32212,16 +32266,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32212
32266
|
width: 900,
|
|
32213
32267
|
maskClosable: false,
|
|
32214
32268
|
onOk: function () {
|
|
32215
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32269
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32216
32270
|
var _ref$current4, _res$editableStatus;
|
|
32217
32271
|
var res, _res$defaultValue;
|
|
32218
|
-
return
|
|
32219
|
-
while (1) switch (_context4.
|
|
32272
|
+
return _regenerator().w(function (_context4) {
|
|
32273
|
+
while (1) switch (_context4.n) {
|
|
32220
32274
|
case 0:
|
|
32221
|
-
_context4.
|
|
32275
|
+
_context4.n = 1;
|
|
32222
32276
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32223
|
-
case
|
|
32224
|
-
res = _context4.
|
|
32277
|
+
case 1:
|
|
32278
|
+
res = _context4.v;
|
|
32225
32279
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32226
32280
|
res.fieldGroup = record.fieldGroup;
|
|
32227
32281
|
res.businessType = record.businessType;
|
|
@@ -32248,7 +32302,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32248
32302
|
delete res.formula;
|
|
32249
32303
|
delete res.showValue;
|
|
32250
32304
|
if (!(mode === 'create')) {
|
|
32251
|
-
_context4.
|
|
32305
|
+
_context4.n = 2;
|
|
32252
32306
|
break;
|
|
32253
32307
|
}
|
|
32254
32308
|
request$2({
|
|
@@ -32260,8 +32314,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32260
32314
|
onParentOk();
|
|
32261
32315
|
}
|
|
32262
32316
|
});
|
|
32263
|
-
return _context4.
|
|
32264
|
-
case
|
|
32317
|
+
return _context4.a(2);
|
|
32318
|
+
case 2:
|
|
32265
32319
|
request$2({
|
|
32266
32320
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32267
32321
|
method: 'PATCH',
|
|
@@ -32271,9 +32325,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32271
32325
|
onParentOk();
|
|
32272
32326
|
}
|
|
32273
32327
|
});
|
|
32274
|
-
case
|
|
32275
|
-
|
|
32276
|
-
return _context4.stop();
|
|
32328
|
+
case 3:
|
|
32329
|
+
return _context4.a(2);
|
|
32277
32330
|
}
|
|
32278
32331
|
}, _callee4);
|
|
32279
32332
|
}));
|
|
@@ -32729,21 +32782,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32729
32782
|
jsonEditorVal = _useState8[0],
|
|
32730
32783
|
setJsonEditorVal = _useState8[1];
|
|
32731
32784
|
var _useState9 = useState({}),
|
|
32732
|
-
|
|
32733
|
-
moduleParams =
|
|
32734
|
-
setModuleParams =
|
|
32735
|
-
var
|
|
32785
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32786
|
+
moduleParams = _useState0[0],
|
|
32787
|
+
setModuleParams = _useState0[1];
|
|
32788
|
+
var _useState1 = useState('main'),
|
|
32789
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32790
|
+
activeKey = _useState10[0],
|
|
32791
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32792
|
+
var _useState11 = useState({}),
|
|
32736
32793
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32737
|
-
|
|
32738
|
-
|
|
32739
|
-
var _useState13 = useState(
|
|
32794
|
+
tablesConfigParams = _useState12[0],
|
|
32795
|
+
setTablesConfigParams = _useState12[1];
|
|
32796
|
+
var _useState13 = useState([]),
|
|
32740
32797
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32741
|
-
|
|
32742
|
-
|
|
32743
|
-
var _useState15 = useState([]),
|
|
32744
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
32745
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
32746
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32798
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32799
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
32747
32800
|
useEffect(function () {
|
|
32748
32801
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32749
32802
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32774,7 +32827,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32774
32827
|
});
|
|
32775
32828
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
32776
32829
|
var _ref6 = _toArray(_ref5),
|
|
32777
|
-
resArr = _ref6.slice(0);
|
|
32830
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
32778
32831
|
var configParams = {};
|
|
32779
32832
|
detailTablesSetting.map(function (item, index) {
|
|
32780
32833
|
var _resArr$index;
|
|
@@ -33119,11 +33172,11 @@ function getMetaData(_x) {
|
|
|
33119
33172
|
|
|
33120
33173
|
// 获取数据
|
|
33121
33174
|
function _getMetaData() {
|
|
33122
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33123
|
-
return
|
|
33124
|
-
while (1) switch (_context.
|
|
33175
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
33176
|
+
return _regenerator().w(function (_context) {
|
|
33177
|
+
while (1) switch (_context.n) {
|
|
33125
33178
|
case 0:
|
|
33126
|
-
return _context.
|
|
33179
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33127
33180
|
request$3('/basic/entityProperty/listNoPage', {
|
|
33128
33181
|
params: {
|
|
33129
33182
|
'qp-entityId-eq': id
|
|
@@ -33135,9 +33188,6 @@ function _getMetaData() {
|
|
|
33135
33188
|
reject([]);
|
|
33136
33189
|
});
|
|
33137
33190
|
}));
|
|
33138
|
-
case 1:
|
|
33139
|
-
case "end":
|
|
33140
|
-
return _context.stop();
|
|
33141
33191
|
}
|
|
33142
33192
|
}, _callee);
|
|
33143
33193
|
}));
|
|
@@ -33341,11 +33391,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33341
33391
|
tableState = _useState4[0],
|
|
33342
33392
|
setTableState = _useState4[1];
|
|
33343
33393
|
var handleOpen = /*#__PURE__*/function () {
|
|
33344
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33394
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33345
33395
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33346
33396
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33347
|
-
return
|
|
33348
|
-
while (1) switch (_context.
|
|
33397
|
+
return _regenerator().w(function (_context) {
|
|
33398
|
+
while (1) switch (_context.n) {
|
|
33349
33399
|
case 0:
|
|
33350
33400
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33351
33401
|
isSearchForm: props.isSearchForm,
|
|
@@ -33353,16 +33403,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33353
33403
|
searchFormData: searchFormData
|
|
33354
33404
|
});
|
|
33355
33405
|
if (requestConfigNew) {
|
|
33356
|
-
_context.
|
|
33406
|
+
_context.n = 1;
|
|
33357
33407
|
break;
|
|
33358
33408
|
}
|
|
33359
|
-
return _context.
|
|
33360
|
-
case
|
|
33409
|
+
return _context.a(2);
|
|
33410
|
+
case 1:
|
|
33361
33411
|
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;
|
|
33362
|
-
_context.
|
|
33412
|
+
_context.n = 2;
|
|
33363
33413
|
return getMetaData(metaDataId);
|
|
33364
|
-
case
|
|
33365
|
-
metaData = _context.
|
|
33414
|
+
case 2:
|
|
33415
|
+
metaData = _context.v;
|
|
33366
33416
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33367
33417
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33368
33418
|
})) || [];
|
|
@@ -33402,9 +33452,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33402
33452
|
// @ts-ignore
|
|
33403
33453
|
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);
|
|
33404
33454
|
}
|
|
33405
|
-
case
|
|
33406
|
-
|
|
33407
|
-
return _context.stop();
|
|
33455
|
+
case 3:
|
|
33456
|
+
return _context.a(2);
|
|
33408
33457
|
}
|
|
33409
33458
|
}, _callee);
|
|
33410
33459
|
}));
|
|
@@ -33507,7 +33556,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33507
33556
|
}, [requestConfig, tableState.columns]);
|
|
33508
33557
|
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';
|
|
33509
33558
|
var handleOk = function handleOk(rowData) {
|
|
33510
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33559
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33511
33560
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33512
33561
|
//多选数据处理
|
|
33513
33562
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33518,9 +33567,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33518
33567
|
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()) || [];
|
|
33519
33568
|
var realSelectedRows = selectedRows;
|
|
33520
33569
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33521
|
-
var _queryTableRef$
|
|
33570
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33522
33571
|
// @ts-ignore
|
|
33523
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33572
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
|
|
33524
33573
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33525
33574
|
return selectedKesys.includes(s[rowKey]);
|
|
33526
33575
|
});
|
|
@@ -33553,10 +33602,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33553
33602
|
});
|
|
33554
33603
|
}
|
|
33555
33604
|
mappings.map(function (item) {
|
|
33556
|
-
var _props$
|
|
33557
|
-
if (((_props$
|
|
33558
|
-
var _props$
|
|
33559
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33605
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33606
|
+
if (((_props$customSelector0 = props.customSelectorConfig) === null || _props$customSelector0 === void 0 ? void 0 : (_props$customSelector1 = _props$customSelector0.extraData) === null || _props$customSelector1 === void 0 ? void 0 : _props$customSelector1.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel]) {
|
|
33607
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33608
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
|
|
33560
33609
|
}
|
|
33561
33610
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
33562
33611
|
});
|
|
@@ -33611,10 +33660,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33611
33660
|
}
|
|
33612
33661
|
props.onCancel();
|
|
33613
33662
|
//@ts-ignore
|
|
33614
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33663
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
|
|
33615
33664
|
};
|
|
33616
33665
|
var config = useMemo(function () {
|
|
33617
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33666
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
33618
33667
|
var returnConfig = {
|
|
33619
33668
|
size: 'small',
|
|
33620
33669
|
needPageHeader: false,
|
|
@@ -33623,7 +33672,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33623
33672
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33624
33673
|
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) {
|
|
33625
33674
|
return v.key || v;
|
|
33626
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33675
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
|
|
33627
33676
|
} : false,
|
|
33628
33677
|
remoteDataSource: remoteDataSource,
|
|
33629
33678
|
fields: tableState.fields,
|
|
@@ -33631,8 +33680,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33631
33680
|
rowKey: rowKey,
|
|
33632
33681
|
tableProps: !isView && {
|
|
33633
33682
|
rowClassName: function rowClassName(record) {
|
|
33634
|
-
var _props$
|
|
33635
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33683
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33684
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33636
33685
|
},
|
|
33637
33686
|
onRow: function onRow(record) {
|
|
33638
33687
|
return {
|
|
@@ -33677,10 +33726,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33677
33726
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33678
33727
|
type: "default",
|
|
33679
33728
|
onClick: function onClick() {
|
|
33680
|
-
var _queryTableRef$
|
|
33729
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
33681
33730
|
props.onCancel();
|
|
33682
33731
|
//@ts-ignore
|
|
33683
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33732
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
|
|
33684
33733
|
}
|
|
33685
33734
|
}, "\u53D6\u6D88"))));
|
|
33686
33735
|
});
|
|
@@ -33904,19 +33953,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33904
33953
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33905
33954
|
handSource = _useState2[0],
|
|
33906
33955
|
setHandSource = _useState2[1];
|
|
33907
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33956
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33908
33957
|
var resData, data;
|
|
33909
|
-
return
|
|
33910
|
-
while (1) switch (_context.
|
|
33958
|
+
return _regenerator().w(function (_context) {
|
|
33959
|
+
while (1) switch (_context.n) {
|
|
33911
33960
|
case 0:
|
|
33912
33961
|
if (!(!source && initRequestSource)) {
|
|
33913
|
-
_context.
|
|
33962
|
+
_context.n = 2;
|
|
33914
33963
|
break;
|
|
33915
33964
|
}
|
|
33916
|
-
_context.
|
|
33965
|
+
_context.n = 1;
|
|
33917
33966
|
return initRequestSource();
|
|
33918
|
-
case
|
|
33919
|
-
resData = _context.
|
|
33967
|
+
case 1:
|
|
33968
|
+
resData = _context.v;
|
|
33920
33969
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33921
33970
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33922
33971
|
label: item.text,
|
|
@@ -33924,9 +33973,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33924
33973
|
});
|
|
33925
33974
|
})) || [];
|
|
33926
33975
|
setHandSource(data);
|
|
33927
|
-
case
|
|
33928
|
-
|
|
33929
|
-
return _context.stop();
|
|
33976
|
+
case 2:
|
|
33977
|
+
return _context.a(2);
|
|
33930
33978
|
}
|
|
33931
33979
|
}, _callee);
|
|
33932
33980
|
})), []);
|
|
@@ -34056,20 +34104,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34056
34104
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34057
34105
|
}
|
|
34058
34106
|
function _getRegularThresholdRange() {
|
|
34059
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34060
|
-
return
|
|
34061
|
-
while (1) switch (_context.
|
|
34107
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
34108
|
+
return _regenerator().w(function (_context) {
|
|
34109
|
+
while (1) switch (_context.n) {
|
|
34062
34110
|
case 0:
|
|
34063
|
-
return _context.
|
|
34111
|
+
return _context.a(2, requestUtil({
|
|
34064
34112
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34065
34113
|
method: 'POST',
|
|
34066
34114
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34067
34115
|
queryIdentify: undefined
|
|
34068
34116
|
})
|
|
34069
34117
|
}));
|
|
34070
|
-
case 1:
|
|
34071
|
-
case "end":
|
|
34072
|
-
return _context.stop();
|
|
34073
34118
|
}
|
|
34074
34119
|
}, _callee);
|
|
34075
34120
|
}));
|
|
@@ -34210,24 +34255,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34210
34255
|
};
|
|
34211
34256
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34212
34257
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34213
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34258
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34214
34259
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34215
|
-
return
|
|
34216
|
-
while (1) switch (_context.
|
|
34260
|
+
return _regenerator().w(function (_context) {
|
|
34261
|
+
while (1) switch (_context.n) {
|
|
34217
34262
|
case 0:
|
|
34218
34263
|
if (queryIdentify) {
|
|
34219
|
-
_context.
|
|
34264
|
+
_context.n = 1;
|
|
34220
34265
|
break;
|
|
34221
34266
|
}
|
|
34222
|
-
return _context.
|
|
34223
|
-
case
|
|
34267
|
+
return _context.a(2);
|
|
34268
|
+
case 1:
|
|
34224
34269
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34225
34270
|
extraRequestUrl = '';
|
|
34226
34271
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34227
34272
|
if (!queryIdentityInfo.find(function (item) {
|
|
34228
34273
|
return item.identity == propertyCode;
|
|
34229
34274
|
})) {
|
|
34230
|
-
_context.
|
|
34275
|
+
_context.n = 3;
|
|
34231
34276
|
break;
|
|
34232
34277
|
}
|
|
34233
34278
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34241,15 +34286,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34241
34286
|
if (!needQueryList.some(function (item) {
|
|
34242
34287
|
return !querParams[item] || !querParams[item].length;
|
|
34243
34288
|
})) {
|
|
34244
|
-
_context.
|
|
34289
|
+
_context.n = 2;
|
|
34245
34290
|
break;
|
|
34246
34291
|
}
|
|
34247
|
-
return _context.
|
|
34248
|
-
case
|
|
34292
|
+
return _context.a(2);
|
|
34293
|
+
case 2:
|
|
34249
34294
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34250
34295
|
return item.identity == propertyCode;
|
|
34251
34296
|
}).requestUrl || '';
|
|
34252
|
-
case
|
|
34297
|
+
case 3:
|
|
34253
34298
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34254
34299
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34255
34300
|
querParams = {
|
|
@@ -34260,7 +34305,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34260
34305
|
// querParams = { dictCode: queryIdentify }
|
|
34261
34306
|
}
|
|
34262
34307
|
if (!extraRequestUrl) {
|
|
34263
|
-
_context.
|
|
34308
|
+
_context.n = 4;
|
|
34264
34309
|
break;
|
|
34265
34310
|
}
|
|
34266
34311
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34299,43 +34344,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34299
34344
|
return handleData;
|
|
34300
34345
|
}
|
|
34301
34346
|
});
|
|
34302
|
-
_context.
|
|
34347
|
+
_context.n = 8;
|
|
34303
34348
|
break;
|
|
34304
|
-
case
|
|
34349
|
+
case 4:
|
|
34305
34350
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34306
|
-
_context.
|
|
34351
|
+
_context.n = 5;
|
|
34307
34352
|
break;
|
|
34308
34353
|
}
|
|
34309
34354
|
_this.setState({
|
|
34310
34355
|
thresholdList: queryIdentify
|
|
34311
34356
|
});
|
|
34312
|
-
_context.
|
|
34357
|
+
_context.n = 8;
|
|
34313
34358
|
break;
|
|
34314
|
-
case
|
|
34359
|
+
case 5:
|
|
34315
34360
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34316
|
-
_context.
|
|
34361
|
+
_context.n = 6;
|
|
34317
34362
|
break;
|
|
34318
34363
|
}
|
|
34319
34364
|
// TODO待处理
|
|
34320
34365
|
_this.setState({
|
|
34321
34366
|
thresholdList: []
|
|
34322
34367
|
});
|
|
34323
|
-
_context.
|
|
34368
|
+
_context.n = 8;
|
|
34324
34369
|
break;
|
|
34325
|
-
case
|
|
34370
|
+
case 6:
|
|
34326
34371
|
querParams.queryIdentify = queryIdentify;
|
|
34327
|
-
_context.
|
|
34372
|
+
_context.n = 7;
|
|
34328
34373
|
return getRegularThresholdRange(querParams);
|
|
34329
|
-
case
|
|
34330
|
-
res = _context.
|
|
34374
|
+
case 7:
|
|
34375
|
+
res = _context.v;
|
|
34331
34376
|
if (handleError(res)) {
|
|
34332
34377
|
_this.setState({
|
|
34333
34378
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34334
34379
|
});
|
|
34335
34380
|
}
|
|
34336
|
-
case
|
|
34337
|
-
|
|
34338
|
-
return _context.stop();
|
|
34381
|
+
case 8:
|
|
34382
|
+
return _context.a(2);
|
|
34339
34383
|
}
|
|
34340
34384
|
}, _callee);
|
|
34341
34385
|
}));
|
|
@@ -35167,11 +35211,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35167
35211
|
isAll: true,
|
|
35168
35212
|
needNameAndCode: true,
|
|
35169
35213
|
notChangeOnSelect: true,
|
|
35170
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35171
|
-
return
|
|
35172
|
-
while (1) switch (_context2.
|
|
35214
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35215
|
+
return _regenerator().w(function (_context2) {
|
|
35216
|
+
while (1) switch (_context2.n) {
|
|
35173
35217
|
case 0:
|
|
35174
|
-
_context2.
|
|
35218
|
+
_context2.n = 1;
|
|
35175
35219
|
return request$2({
|
|
35176
35220
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35177
35221
|
method: 'get',
|
|
@@ -35188,11 +35232,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35188
35232
|
return handleData;
|
|
35189
35233
|
}
|
|
35190
35234
|
});
|
|
35191
|
-
case
|
|
35192
|
-
return _context2.
|
|
35193
|
-
case 3:
|
|
35194
|
-
case "end":
|
|
35195
|
-
return _context2.stop();
|
|
35235
|
+
case 1:
|
|
35236
|
+
return _context2.a(2, _context2.v);
|
|
35196
35237
|
}
|
|
35197
35238
|
}, _callee2);
|
|
35198
35239
|
})),
|
|
@@ -35216,11 +35257,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35216
35257
|
isAll: true,
|
|
35217
35258
|
needNameAndCode: true,
|
|
35218
35259
|
notChangeOnSelect: true,
|
|
35219
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35220
|
-
return
|
|
35221
|
-
while (1) switch (_context3.
|
|
35260
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35261
|
+
return _regenerator().w(function (_context3) {
|
|
35262
|
+
while (1) switch (_context3.n) {
|
|
35222
35263
|
case 0:
|
|
35223
|
-
_context3.
|
|
35264
|
+
_context3.n = 1;
|
|
35224
35265
|
return request$2({
|
|
35225
35266
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35226
35267
|
method: 'get',
|
|
@@ -35237,11 +35278,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35237
35278
|
return handleData;
|
|
35238
35279
|
}
|
|
35239
35280
|
});
|
|
35240
|
-
case
|
|
35241
|
-
return _context3.
|
|
35242
|
-
case 3:
|
|
35243
|
-
case "end":
|
|
35244
|
-
return _context3.stop();
|
|
35281
|
+
case 1:
|
|
35282
|
+
return _context3.a(2, _context3.v);
|
|
35245
35283
|
}
|
|
35246
35284
|
}, _callee3);
|
|
35247
35285
|
})),
|
|
@@ -35267,11 +35305,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35267
35305
|
isAll: true,
|
|
35268
35306
|
needNameAndCode: true,
|
|
35269
35307
|
notChangeOnSelect: true,
|
|
35270
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35271
|
-
return
|
|
35272
|
-
while (1) switch (_context4.
|
|
35308
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35309
|
+
return _regenerator().w(function (_context4) {
|
|
35310
|
+
while (1) switch (_context4.n) {
|
|
35273
35311
|
case 0:
|
|
35274
|
-
_context4.
|
|
35312
|
+
_context4.n = 1;
|
|
35275
35313
|
return request$2({
|
|
35276
35314
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35277
35315
|
method: 'get',
|
|
@@ -35288,11 +35326,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35288
35326
|
return handleData;
|
|
35289
35327
|
}
|
|
35290
35328
|
});
|
|
35291
|
-
case
|
|
35292
|
-
return _context4.
|
|
35293
|
-
case 3:
|
|
35294
|
-
case "end":
|
|
35295
|
-
return _context4.stop();
|
|
35329
|
+
case 1:
|
|
35330
|
+
return _context4.a(2, _context4.v);
|
|
35296
35331
|
}
|
|
35297
35332
|
}, _callee4);
|
|
35298
35333
|
})),
|
|
@@ -35979,8 +36014,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35979
36014
|
}
|
|
35980
36015
|
}));
|
|
35981
36016
|
} else {
|
|
35982
|
-
var
|
|
35983
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36017
|
+
var _values0;
|
|
36018
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
35984
36019
|
return {
|
|
35985
36020
|
key: s,
|
|
35986
36021
|
label: valueNames[vIndex],
|
|
@@ -36190,7 +36225,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36190
36225
|
}
|
|
36191
36226
|
}
|
|
36192
36227
|
// 配送方式选择器
|
|
36193
|
-
if (dataChoiceBusinessType == 310) {
|
|
36228
|
+
if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
|
|
36194
36229
|
if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
|
|
36195
36230
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36196
36231
|
selectBusinessType: "deliveryMode",
|
|
@@ -36204,9 +36239,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36204
36239
|
disabled: disabled,
|
|
36205
36240
|
labelInValue: true,
|
|
36206
36241
|
value: values[0],
|
|
36207
|
-
requestConfig: {
|
|
36242
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36243
|
+
otherParams: {
|
|
36244
|
+
// 配送方式只选择标准配送方式
|
|
36245
|
+
'qp-recordChannnelCode-eq': 80
|
|
36246
|
+
}
|
|
36247
|
+
} : {}), {}, {
|
|
36208
36248
|
filterInit: 'qp-code-in'
|
|
36209
|
-
},
|
|
36249
|
+
}),
|
|
36210
36250
|
onChange: function onChange(value) {
|
|
36211
36251
|
if (dataInputBusinessType === 12) {
|
|
36212
36252
|
values[0] = value.map(function (i) {
|
|
@@ -36236,9 +36276,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36236
36276
|
disabled: disabled,
|
|
36237
36277
|
labelInValue: true,
|
|
36238
36278
|
value: values[1],
|
|
36239
|
-
requestConfig: {
|
|
36279
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36280
|
+
otherParams: {
|
|
36281
|
+
// 配送方式只选择标准配送方式
|
|
36282
|
+
'qp-recordChannnelCode-eq': 80
|
|
36283
|
+
}
|
|
36284
|
+
} : {}), {}, {
|
|
36240
36285
|
filterInit: 'qp-code-in'
|
|
36241
|
-
},
|
|
36286
|
+
}),
|
|
36242
36287
|
onChange: function onChange(value) {
|
|
36243
36288
|
if (dataInputBusinessType === 12) {
|
|
36244
36289
|
values[1] = value.map(function (i) {
|
|
@@ -36258,8 +36303,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36258
36303
|
}
|
|
36259
36304
|
}));
|
|
36260
36305
|
} else {
|
|
36261
|
-
var
|
|
36262
|
-
var
|
|
36306
|
+
var _values1;
|
|
36307
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36263
36308
|
return {
|
|
36264
36309
|
key: s,
|
|
36265
36310
|
label: valueNames[vIndex],
|
|
@@ -36281,10 +36326,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36281
36326
|
} : {}),
|
|
36282
36327
|
disabled: disabled,
|
|
36283
36328
|
labelInValue: true,
|
|
36284
|
-
value:
|
|
36285
|
-
requestConfig: {
|
|
36329
|
+
value: _currentValue0,
|
|
36330
|
+
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36331
|
+
otherParams: {
|
|
36332
|
+
// 配送方式只选择标准配送方式
|
|
36333
|
+
'qp-recordChannnelCode-eq': 80
|
|
36334
|
+
}
|
|
36335
|
+
} : {}), {}, {
|
|
36286
36336
|
filterInit: 'qp-code-in'
|
|
36287
|
-
},
|
|
36337
|
+
}),
|
|
36288
36338
|
onChange: function onChange(value) {
|
|
36289
36339
|
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
36290
36340
|
values = value.map(function (i) {
|
|
@@ -36374,8 +36424,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36374
36424
|
}
|
|
36375
36425
|
}));
|
|
36376
36426
|
} else {
|
|
36377
|
-
var
|
|
36378
|
-
var
|
|
36427
|
+
var _values10;
|
|
36428
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36379
36429
|
return {
|
|
36380
36430
|
key: s,
|
|
36381
36431
|
label: valueNames[vIndex],
|
|
@@ -36397,7 +36447,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36397
36447
|
} : {}),
|
|
36398
36448
|
disabled: disabled,
|
|
36399
36449
|
labelInValue: true,
|
|
36400
|
-
value:
|
|
36450
|
+
value: _currentValue1,
|
|
36401
36451
|
requestConfig: {
|
|
36402
36452
|
filterInit: 'qp-code-in'
|
|
36403
36453
|
},
|
|
@@ -36490,8 +36540,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36490
36540
|
}
|
|
36491
36541
|
}));
|
|
36492
36542
|
} else {
|
|
36493
|
-
var
|
|
36494
|
-
var
|
|
36543
|
+
var _values11;
|
|
36544
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36495
36545
|
return {
|
|
36496
36546
|
key: s,
|
|
36497
36547
|
label: valueNames[vIndex],
|
|
@@ -36513,7 +36563,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36513
36563
|
} : {}),
|
|
36514
36564
|
disabled: disabled,
|
|
36515
36565
|
labelInValue: true,
|
|
36516
|
-
value:
|
|
36566
|
+
value: _currentValue10,
|
|
36517
36567
|
requestConfig: {
|
|
36518
36568
|
filterInit: 'qp-brandCode-in'
|
|
36519
36569
|
},
|
|
@@ -36704,8 +36754,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36704
36754
|
}
|
|
36705
36755
|
}));
|
|
36706
36756
|
} else {
|
|
36707
|
-
var
|
|
36708
|
-
var
|
|
36757
|
+
var _values12;
|
|
36758
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
36709
36759
|
return {
|
|
36710
36760
|
key: s,
|
|
36711
36761
|
label: valueNames[vIndex]
|
|
@@ -36733,7 +36783,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36733
36783
|
isSearchForm: true,
|
|
36734
36784
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36735
36785
|
disabled: disabled,
|
|
36736
|
-
value:
|
|
36786
|
+
value: _currentValue11,
|
|
36737
36787
|
onChange: function onChange(value, sourceList) {
|
|
36738
36788
|
if (dataInputBusinessType === 12) {
|
|
36739
36789
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37053,9 +37103,9 @@ var App$1 = function App(_ref) {
|
|
|
37053
37103
|
UpdateState(res);
|
|
37054
37104
|
};
|
|
37055
37105
|
var _useState9 = useState(false),
|
|
37056
|
-
|
|
37057
|
-
isModalVisible =
|
|
37058
|
-
setIsModalVisible =
|
|
37106
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37107
|
+
isModalVisible = _useState0[0],
|
|
37108
|
+
setIsModalVisible = _useState0[1];
|
|
37059
37109
|
var showModal = function showModal() {
|
|
37060
37110
|
setIsModalVisible(true);
|
|
37061
37111
|
};
|
|
@@ -37536,27 +37586,26 @@ function RenderCompItem(props) {
|
|
|
37536
37586
|
dictData = _useState2[0],
|
|
37537
37587
|
setDictData = _useState2[1];
|
|
37538
37588
|
var getDictData = /*#__PURE__*/function () {
|
|
37539
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37589
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
37540
37590
|
var _data$map;
|
|
37541
37591
|
var data;
|
|
37542
|
-
return
|
|
37543
|
-
while (1) switch (_context.
|
|
37592
|
+
return _regenerator().w(function (_context) {
|
|
37593
|
+
while (1) switch (_context.n) {
|
|
37544
37594
|
case 0:
|
|
37545
|
-
_context.
|
|
37595
|
+
_context.n = 1;
|
|
37546
37596
|
return request$2({
|
|
37547
37597
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
37548
37598
|
});
|
|
37549
|
-
case
|
|
37550
|
-
data = _context.
|
|
37599
|
+
case 1:
|
|
37600
|
+
data = _context.v;
|
|
37551
37601
|
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) {
|
|
37552
37602
|
return {
|
|
37553
37603
|
text: item.dictItemName,
|
|
37554
37604
|
value: item.dictItemCode
|
|
37555
37605
|
};
|
|
37556
37606
|
}));
|
|
37557
|
-
case
|
|
37558
|
-
|
|
37559
|
-
return _context.stop();
|
|
37607
|
+
case 2:
|
|
37608
|
+
return _context.a(2);
|
|
37560
37609
|
}
|
|
37561
37610
|
}, _callee);
|
|
37562
37611
|
}));
|
|
@@ -37797,11 +37846,11 @@ function RenderCompItem(props) {
|
|
|
37797
37846
|
needNameAndCode: true,
|
|
37798
37847
|
notChangeOnSelect: true,
|
|
37799
37848
|
initRequestSource: function () {
|
|
37800
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37801
|
-
return
|
|
37802
|
-
while (1) switch (_context2.
|
|
37849
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
37850
|
+
return _regenerator().w(function (_context2) {
|
|
37851
|
+
while (1) switch (_context2.n) {
|
|
37803
37852
|
case 0:
|
|
37804
|
-
_context2.
|
|
37853
|
+
_context2.n = 1;
|
|
37805
37854
|
return request$2({
|
|
37806
37855
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37807
37856
|
method: 'get',
|
|
@@ -37819,11 +37868,8 @@ function RenderCompItem(props) {
|
|
|
37819
37868
|
return handleData;
|
|
37820
37869
|
}
|
|
37821
37870
|
});
|
|
37822
|
-
case
|
|
37823
|
-
return _context2.
|
|
37824
|
-
case 3:
|
|
37825
|
-
case "end":
|
|
37826
|
-
return _context2.stop();
|
|
37871
|
+
case 1:
|
|
37872
|
+
return _context2.a(2, _context2.v);
|
|
37827
37873
|
}
|
|
37828
37874
|
}, _callee2);
|
|
37829
37875
|
}));
|
|
@@ -37988,7 +38034,7 @@ function RenderCompItem(props) {
|
|
|
37988
38034
|
getPopupContainer: function getPopupContainer() {
|
|
37989
38035
|
return document.body;
|
|
37990
38036
|
}
|
|
37991
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
38037
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
37992
38038
|
selectBusinessType: "deliveryMode",
|
|
37993
38039
|
selectProps: _objectSpread2({
|
|
37994
38040
|
style: styleCommon,
|
|
@@ -38000,9 +38046,14 @@ function RenderCompItem(props) {
|
|
|
38000
38046
|
disabled: disabled,
|
|
38001
38047
|
labelInValue: true,
|
|
38002
38048
|
value: showValue(ites.code),
|
|
38003
|
-
requestConfig: {
|
|
38049
|
+
requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
|
|
38050
|
+
otherParams: {
|
|
38051
|
+
// 配送方式只选择标准配送方式
|
|
38052
|
+
'qp-recordChannnelCode-eq': 80
|
|
38053
|
+
}
|
|
38054
|
+
} : {}), {}, {
|
|
38004
38055
|
filterInit: 'qp-code-in'
|
|
38005
|
-
},
|
|
38056
|
+
}),
|
|
38006
38057
|
onChange: function onChange(value) {
|
|
38007
38058
|
handleEdit(ites.code, value);
|
|
38008
38059
|
},
|
|
@@ -39874,13 +39925,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39874
39925
|
ruleTypeData = _useState8[0],
|
|
39875
39926
|
setRuleTypeData = _useState8[1];
|
|
39876
39927
|
var _useState9 = useState([]),
|
|
39877
|
-
|
|
39878
|
-
ruleReturnConfig =
|
|
39879
|
-
setRuleReturnConfig =
|
|
39880
|
-
var
|
|
39881
|
-
|
|
39882
|
-
templateData =
|
|
39883
|
-
setTemplateData =
|
|
39928
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
39929
|
+
ruleReturnConfig = _useState0[0],
|
|
39930
|
+
setRuleReturnConfig = _useState0[1];
|
|
39931
|
+
var _useState1 = useState({}),
|
|
39932
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
39933
|
+
templateData = _useState10[0],
|
|
39934
|
+
setTemplateData = _useState10[1];
|
|
39884
39935
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39885
39936
|
request$2({
|
|
39886
39937
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40216,25 +40267,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40216
40267
|
regularDataList = _useState8[0],
|
|
40217
40268
|
setRegularDataList = _useState8[1];
|
|
40218
40269
|
var _useState9 = useState([]),
|
|
40219
|
-
|
|
40220
|
-
baseRuleDetailList =
|
|
40221
|
-
setBaseRuleDetailList =
|
|
40222
|
-
var
|
|
40270
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40271
|
+
baseRuleDetailList = _useState0[0],
|
|
40272
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40273
|
+
var _useState1 = useState([]),
|
|
40274
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40275
|
+
systemVariableList = _useState10[0],
|
|
40276
|
+
setSystemVariableList = _useState10[1];
|
|
40277
|
+
var _useState11 = useState(false),
|
|
40223
40278
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40224
|
-
|
|
40225
|
-
|
|
40279
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40280
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40226
40281
|
var _useState13 = useState(false),
|
|
40227
40282
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40228
|
-
|
|
40229
|
-
|
|
40283
|
+
isGetRuleDataRes = _useState14[0],
|
|
40284
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40230
40285
|
var _useState15 = useState(false),
|
|
40231
40286
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
var _useState17 = useState(false),
|
|
40235
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40236
|
-
groupOtherPriorityList = _useState18[0],
|
|
40237
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40287
|
+
groupOtherPriorityList = _useState16[0],
|
|
40288
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40238
40289
|
var baseRuleRef = useRef();
|
|
40239
40290
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40240
40291
|
// 查询规则组下所有规则实例
|