@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1385 -796
- package/dist/index.js +1385 -796
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +234 -38
- package/src/components/Business/StateFlow/index.css +126 -0
- package/src/components/Business/StateFlow/index.less +17 -17
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/SearchSelect/index.css +274 -0
- package/src/components/Functional/SearchSelect/index.less +5 -5
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
188
188
|
r,
|
|
189
189
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
190
|
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var
|
|
192
|
-
for (r = 0; r <
|
|
191
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
193
|
}
|
|
194
194
|
return i;
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
197
197
|
if (null == r) return {};
|
|
198
198
|
var t = {};
|
|
199
199
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (
|
|
200
|
+
if (e.includes(n)) continue;
|
|
201
201
|
t[n] = r[n];
|
|
202
202
|
}
|
|
203
203
|
return t;
|
|
@@ -207,115 +207,306 @@ function _possibleConstructorReturn(t, e) {
|
|
|
207
207
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
208
|
return _assertThisInitialized(t);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
259
|
-
i = e;
|
|
260
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
261
|
-
} catch (t) {
|
|
262
|
-
i = e, c = 1, u = t;
|
|
263
|
-
} finally {
|
|
264
|
-
f = 1;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return {
|
|
268
|
-
value: t,
|
|
269
|
-
done: y
|
|
270
|
-
};
|
|
210
|
+
function _regeneratorRuntime() {
|
|
211
|
+
_regeneratorRuntime = function () {
|
|
212
|
+
return e;
|
|
213
|
+
};
|
|
214
|
+
var t,
|
|
215
|
+
e = {},
|
|
216
|
+
r = Object.prototype,
|
|
217
|
+
n = r.hasOwnProperty,
|
|
218
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
219
|
+
t[e] = r.value;
|
|
220
|
+
},
|
|
221
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
222
|
+
a = i.iterator || "@@iterator",
|
|
223
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
224
|
+
u = i.toStringTag || "@@toStringTag";
|
|
225
|
+
function define(t, e, r) {
|
|
226
|
+
return Object.defineProperty(t, e, {
|
|
227
|
+
value: r,
|
|
228
|
+
enumerable: !0,
|
|
229
|
+
configurable: !0,
|
|
230
|
+
writable: !0
|
|
231
|
+
}), t[e];
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
define({}, "");
|
|
235
|
+
} catch (t) {
|
|
236
|
+
define = function (t, e, r) {
|
|
237
|
+
return t[e] = r;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function wrap(t, e, r, n) {
|
|
241
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
242
|
+
a = Object.create(i.prototype),
|
|
243
|
+
c = new Context(n || []);
|
|
244
|
+
return o(a, "_invoke", {
|
|
245
|
+
value: makeInvokeMethod(t, r, c)
|
|
246
|
+
}), a;
|
|
247
|
+
}
|
|
248
|
+
function tryCatch(t, e, r) {
|
|
249
|
+
try {
|
|
250
|
+
return {
|
|
251
|
+
type: "normal",
|
|
252
|
+
arg: t.call(e, r)
|
|
253
|
+
};
|
|
254
|
+
} catch (t) {
|
|
255
|
+
return {
|
|
256
|
+
type: "throw",
|
|
257
|
+
arg: t
|
|
271
258
|
};
|
|
272
|
-
}
|
|
259
|
+
}
|
|
273
260
|
}
|
|
274
|
-
|
|
261
|
+
e.wrap = wrap;
|
|
262
|
+
var h = "suspendedStart",
|
|
263
|
+
l = "suspendedYield",
|
|
264
|
+
f = "executing",
|
|
265
|
+
s = "completed",
|
|
266
|
+
y = {};
|
|
275
267
|
function Generator() {}
|
|
276
268
|
function GeneratorFunction() {}
|
|
277
269
|
function GeneratorFunctionPrototype() {}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
return this;
|
|
281
|
-
}), t),
|
|
282
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
283
|
-
function f(e) {
|
|
284
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
285
|
-
}
|
|
286
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
270
|
+
var p = {};
|
|
271
|
+
define(p, a, function () {
|
|
287
272
|
return this;
|
|
288
|
-
})
|
|
289
|
-
|
|
290
|
-
|
|
273
|
+
});
|
|
274
|
+
var d = Object.getPrototypeOf,
|
|
275
|
+
v = d && d(d(values([])));
|
|
276
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
277
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
278
|
+
function defineIteratorMethods(t) {
|
|
279
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
280
|
+
define(t, e, function (t) {
|
|
281
|
+
return this._invoke(e, t);
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
function AsyncIterator(t, e) {
|
|
286
|
+
function invoke(r, o, i, a) {
|
|
287
|
+
var c = tryCatch(t[r], t, o);
|
|
288
|
+
if ("throw" !== c.type) {
|
|
289
|
+
var u = c.arg,
|
|
290
|
+
h = u.value;
|
|
291
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
292
|
+
invoke("next", t, i, a);
|
|
293
|
+
}, function (t) {
|
|
294
|
+
invoke("throw", t, i, a);
|
|
295
|
+
}) : e.resolve(h).then(function (t) {
|
|
296
|
+
u.value = t, i(u);
|
|
297
|
+
}, function (t) {
|
|
298
|
+
return invoke("throw", t, i, a);
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
a(c.arg);
|
|
302
|
+
}
|
|
303
|
+
var r;
|
|
304
|
+
o(this, "_invoke", {
|
|
305
|
+
value: function (t, n) {
|
|
306
|
+
function callInvokeWithMethodAndArg() {
|
|
307
|
+
return new e(function (e, r) {
|
|
308
|
+
invoke(t, n, e, r);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function makeInvokeMethod(e, r, n) {
|
|
316
|
+
var o = h;
|
|
317
|
+
return function (i, a) {
|
|
318
|
+
if (o === f) throw Error("Generator is already running");
|
|
319
|
+
if (o === s) {
|
|
320
|
+
if ("throw" === i) throw a;
|
|
321
|
+
return {
|
|
322
|
+
value: t,
|
|
323
|
+
done: !0
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
for (n.method = i, n.arg = a;;) {
|
|
327
|
+
var c = n.delegate;
|
|
328
|
+
if (c) {
|
|
329
|
+
var u = maybeInvokeDelegate(c, n);
|
|
330
|
+
if (u) {
|
|
331
|
+
if (u === y) continue;
|
|
332
|
+
return u;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
336
|
+
if (o === h) throw o = s, n.arg;
|
|
337
|
+
n.dispatchException(n.arg);
|
|
338
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
339
|
+
o = f;
|
|
340
|
+
var p = tryCatch(e, r, n);
|
|
341
|
+
if ("normal" === p.type) {
|
|
342
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
343
|
+
return {
|
|
344
|
+
value: p.arg,
|
|
345
|
+
done: n.done
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
function maybeInvokeDelegate(e, r) {
|
|
353
|
+
var n = r.method,
|
|
354
|
+
o = e.iterator[n];
|
|
355
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
356
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
357
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
358
|
+
var a = i.arg;
|
|
359
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
360
|
+
}
|
|
361
|
+
function pushTryEntry(t) {
|
|
362
|
+
var e = {
|
|
363
|
+
tryLoc: t[0]
|
|
364
|
+
};
|
|
365
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
366
|
+
}
|
|
367
|
+
function resetTryEntry(t) {
|
|
368
|
+
var e = t.completion || {};
|
|
369
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
370
|
+
}
|
|
371
|
+
function Context(t) {
|
|
372
|
+
this.tryEntries = [{
|
|
373
|
+
tryLoc: "root"
|
|
374
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
375
|
+
}
|
|
376
|
+
function values(e) {
|
|
377
|
+
if (e || "" === e) {
|
|
378
|
+
var r = e[a];
|
|
379
|
+
if (r) return r.call(e);
|
|
380
|
+
if ("function" == typeof e.next) return e;
|
|
381
|
+
if (!isNaN(e.length)) {
|
|
382
|
+
var o = -1,
|
|
383
|
+
i = function next() {
|
|
384
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
385
|
+
return next.value = t, next.done = !0, next;
|
|
386
|
+
};
|
|
387
|
+
return i.next = i;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
391
|
+
}
|
|
392
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
393
|
+
value: GeneratorFunctionPrototype,
|
|
394
|
+
configurable: !0
|
|
395
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
396
|
+
value: GeneratorFunction,
|
|
397
|
+
configurable: !0
|
|
398
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
399
|
+
var e = "function" == typeof t && t.constructor;
|
|
400
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
401
|
+
}, e.mark = function (t) {
|
|
402
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
403
|
+
}, e.awrap = function (t) {
|
|
291
404
|
return {
|
|
292
|
-
|
|
293
|
-
m: f
|
|
405
|
+
__await: t
|
|
294
406
|
};
|
|
295
|
-
})()
|
|
296
|
-
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
407
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
408
|
+
return this;
|
|
409
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
410
|
+
void 0 === i && (i = Promise);
|
|
411
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
412
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
413
|
+
return t.done ? t.value : a.next();
|
|
414
|
+
});
|
|
415
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
416
|
+
return this;
|
|
417
|
+
}), define(g, "toString", function () {
|
|
418
|
+
return "[object Generator]";
|
|
419
|
+
}), e.keys = function (t) {
|
|
420
|
+
var e = Object(t),
|
|
421
|
+
r = [];
|
|
422
|
+
for (var n in e) r.push(n);
|
|
423
|
+
return r.reverse(), function next() {
|
|
424
|
+
for (; r.length;) {
|
|
425
|
+
var t = r.pop();
|
|
426
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
427
|
+
}
|
|
428
|
+
return next.done = !0, next;
|
|
429
|
+
};
|
|
430
|
+
}, e.values = values, Context.prototype = {
|
|
431
|
+
constructor: Context,
|
|
432
|
+
reset: function (e) {
|
|
433
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
434
|
+
},
|
|
435
|
+
stop: function () {
|
|
436
|
+
this.done = !0;
|
|
437
|
+
var t = this.tryEntries[0].completion;
|
|
438
|
+
if ("throw" === t.type) throw t.arg;
|
|
439
|
+
return this.rval;
|
|
440
|
+
},
|
|
441
|
+
dispatchException: function (e) {
|
|
442
|
+
if (this.done) throw e;
|
|
443
|
+
var r = this;
|
|
444
|
+
function handle(n, o) {
|
|
445
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
446
|
+
}
|
|
447
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
448
|
+
var i = this.tryEntries[o],
|
|
449
|
+
a = i.completion;
|
|
450
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
451
|
+
if (i.tryLoc <= this.prev) {
|
|
452
|
+
var c = n.call(i, "catchLoc"),
|
|
453
|
+
u = n.call(i, "finallyLoc");
|
|
454
|
+
if (c && u) {
|
|
455
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
456
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
457
|
+
} else if (c) {
|
|
458
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
459
|
+
} else {
|
|
460
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
461
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
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
|
+
}
|
|
315
499
|
}
|
|
316
|
-
|
|
500
|
+
throw Error("illegal catch attempt");
|
|
501
|
+
},
|
|
502
|
+
delegateYield: function (e, r, n) {
|
|
503
|
+
return this.delegate = {
|
|
504
|
+
iterator: values(e),
|
|
505
|
+
resultName: r,
|
|
506
|
+
nextLoc: n
|
|
507
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
317
508
|
}
|
|
318
|
-
},
|
|
509
|
+
}, e;
|
|
319
510
|
}
|
|
320
511
|
function _setPrototypeOf(t, e) {
|
|
321
512
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1388,22 +1579,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1388
1579
|
// sheepMap是表头字段中英文映射
|
|
1389
1580
|
// sheetCount:表的数量,默认一张
|
|
1390
1581
|
var resolveFile = /*#__PURE__*/function () {
|
|
1391
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1582
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1392
1583
|
var config,
|
|
1393
1584
|
data,
|
|
1394
1585
|
_args = arguments;
|
|
1395
|
-
return
|
|
1396
|
-
while (1) switch (_context.
|
|
1586
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1587
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1397
1588
|
case 0:
|
|
1398
1589
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1399
1590
|
sheetMap: [],
|
|
1400
1591
|
sheetCount: 1
|
|
1401
1592
|
};
|
|
1402
|
-
_context.
|
|
1593
|
+
_context.next = 3;
|
|
1403
1594
|
return analyseExcelToByte(file);
|
|
1404
|
-
case
|
|
1405
|
-
data = _context.
|
|
1406
|
-
return _context.
|
|
1595
|
+
case 3:
|
|
1596
|
+
data = _context.sent;
|
|
1597
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
1407
1598
|
var workbook = read(data, {
|
|
1408
1599
|
type: 'binary'
|
|
1409
1600
|
});
|
|
@@ -1415,6 +1606,9 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1415
1606
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1416
1607
|
resolve(outdata);
|
|
1417
1608
|
}));
|
|
1609
|
+
case 5:
|
|
1610
|
+
case "end":
|
|
1611
|
+
return _context.stop();
|
|
1418
1612
|
}
|
|
1419
1613
|
}, _callee);
|
|
1420
1614
|
}));
|
|
@@ -1424,40 +1618,41 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1424
1618
|
}();
|
|
1425
1619
|
//读取文件
|
|
1426
1620
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1427
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1621
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1428
1622
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1429
|
-
return
|
|
1430
|
-
while (1) switch (_context2.
|
|
1623
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1624
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
1431
1625
|
case 0:
|
|
1432
1626
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1433
1627
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1434
|
-
_context2.
|
|
1628
|
+
_context2.next = 15;
|
|
1435
1629
|
break;
|
|
1436
1630
|
}
|
|
1437
1631
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1438
|
-
_context2.
|
|
1632
|
+
_context2.next = 5;
|
|
1439
1633
|
return resolveFile(nowFile.originFileObj, {
|
|
1440
1634
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1441
1635
|
sheetCount: 1
|
|
1442
1636
|
});
|
|
1443
|
-
case
|
|
1444
|
-
data2 = _context2.
|
|
1637
|
+
case 5:
|
|
1638
|
+
data2 = _context2.sent;
|
|
1445
1639
|
data = data2[0];
|
|
1446
1640
|
if (data.length) {
|
|
1447
|
-
_context2.
|
|
1641
|
+
_context2.next = 10;
|
|
1448
1642
|
break;
|
|
1449
1643
|
}
|
|
1450
1644
|
message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1451
|
-
return _context2.
|
|
1452
|
-
case
|
|
1645
|
+
return _context2.abrupt("return");
|
|
1646
|
+
case 10:
|
|
1453
1647
|
if (callback) callback(data);
|
|
1454
1648
|
!callback && message$1.success("\u5BFC\u5165\u6210\u529F");
|
|
1455
|
-
return _context2.
|
|
1456
|
-
case
|
|
1649
|
+
return _context2.abrupt("return", data);
|
|
1650
|
+
case 15:
|
|
1457
1651
|
message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1458
|
-
return _context2.
|
|
1459
|
-
case
|
|
1460
|
-
|
|
1652
|
+
return _context2.abrupt("return");
|
|
1653
|
+
case 17:
|
|
1654
|
+
case "end":
|
|
1655
|
+
return _context2.stop();
|
|
1461
1656
|
}
|
|
1462
1657
|
}, _callee2);
|
|
1463
1658
|
}));
|
|
@@ -2409,14 +2604,17 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2409
2604
|
return request$1(url, parms).then(handleResponseData);
|
|
2410
2605
|
};
|
|
2411
2606
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2412
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2413
|
-
return
|
|
2414
|
-
while (1) switch (_context.
|
|
2607
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2608
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2609
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2415
2610
|
case 0:
|
|
2416
|
-
return _context.
|
|
2611
|
+
return _context.abrupt("return", Promise.resolve({
|
|
2417
2612
|
data: response,
|
|
2418
2613
|
status: response.status
|
|
2419
2614
|
}));
|
|
2615
|
+
case 1:
|
|
2616
|
+
case "end":
|
|
2617
|
+
return _context.stop();
|
|
2420
2618
|
}
|
|
2421
2619
|
}, _callee);
|
|
2422
2620
|
}));
|
|
@@ -4559,27 +4757,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4559
4757
|
popvalue = _useState8[0],
|
|
4560
4758
|
setPopValue = _useState8[1];
|
|
4561
4759
|
var _useState9 = useState([]),
|
|
4562
|
-
|
|
4563
|
-
source =
|
|
4564
|
-
setSource =
|
|
4760
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4761
|
+
source = _useState10[0],
|
|
4762
|
+
setSource = _useState10[1];
|
|
4565
4763
|
var _useDebounceFn = useDebounceFn(function () {
|
|
4566
4764
|
getData();
|
|
4567
4765
|
}, {
|
|
4568
4766
|
wait: 1000
|
|
4569
4767
|
}),
|
|
4570
4768
|
run = _useDebounceFn.run;
|
|
4571
|
-
var
|
|
4572
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
4573
|
-
fetching = _useState10[0],
|
|
4574
|
-
setFetching = _useState10[1];
|
|
4575
|
-
var _useState11 = useState(''),
|
|
4769
|
+
var _useState11 = useState(false),
|
|
4576
4770
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
var _useState13 = useState(
|
|
4771
|
+
fetching = _useState12[0],
|
|
4772
|
+
setFetching = _useState12[1];
|
|
4773
|
+
var _useState13 = useState(''),
|
|
4580
4774
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4581
|
-
|
|
4582
|
-
|
|
4775
|
+
searchValue = _useState14[0],
|
|
4776
|
+
setSearchValue = _useState14[1];
|
|
4777
|
+
var _useState15 = useState(resultSourceKey),
|
|
4778
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4779
|
+
uniqueValue = _useState16[0],
|
|
4780
|
+
setUniqueValue = _useState16[1];
|
|
4583
4781
|
useEffect(function () {
|
|
4584
4782
|
setPopValue(value);
|
|
4585
4783
|
onValueChange(value);
|
|
@@ -4784,7 +4982,7 @@ function ToCDB$1(selectStr) {
|
|
|
4784
4982
|
return tmp;
|
|
4785
4983
|
}
|
|
4786
4984
|
|
|
4787
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh -
|
|
4985
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 190px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4788
4986
|
styleInject(css_248z$6);
|
|
4789
4987
|
|
|
4790
4988
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -4996,21 +5194,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4996
5194
|
notCommonProperty = _useState8[0],
|
|
4997
5195
|
setNotCommonProperty = _useState8[1];
|
|
4998
5196
|
var _useState9 = useState(false),
|
|
4999
|
-
|
|
5000
|
-
visible =
|
|
5001
|
-
setVisible =
|
|
5002
|
-
var
|
|
5003
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5004
|
-
showNotCommon = _useState10[0],
|
|
5005
|
-
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5006
|
-
var _useState11 = useState([]),
|
|
5197
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5198
|
+
visible = _useState10[0],
|
|
5199
|
+
setVisible = _useState10[1];
|
|
5200
|
+
var _useState11 = useState(false),
|
|
5007
5201
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
var _useState13 = useState(
|
|
5202
|
+
showNotCommon = _useState12[0],
|
|
5203
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
5204
|
+
var _useState13 = useState([]),
|
|
5011
5205
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5012
|
-
|
|
5013
|
-
|
|
5206
|
+
classifyOptionList = _useState14[0],
|
|
5207
|
+
setClassifyOptionList = _useState14[1];
|
|
5208
|
+
var _useState15 = useState('1'),
|
|
5209
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
5210
|
+
listKey = _useState16[0],
|
|
5211
|
+
setListKey = _useState16[1];
|
|
5014
5212
|
useEffect(function () {
|
|
5015
5213
|
requestUtil({
|
|
5016
5214
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5274,6 +5472,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5274
5472
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
5275
5473
|
fieldComponent = props.fieldComponent,
|
|
5276
5474
|
onSaveCallback = props.onSaveCallback,
|
|
5475
|
+
_props$returnFormat = props.returnFormat,
|
|
5476
|
+
returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
|
|
5277
5477
|
selectBusinessType = props.selectBusinessType;
|
|
5278
5478
|
var _ref = rCTemp || {},
|
|
5279
5479
|
url = _ref.url,
|
|
@@ -5332,14 +5532,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5332
5532
|
var currentPage = 1;
|
|
5333
5533
|
var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
|
|
5334
5534
|
var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
|
|
5335
|
-
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5535
|
+
var currentSelectProps = _objectSpread2(_objectSpread2({
|
|
5536
|
+
// 回显字段可自定义
|
|
5537
|
+
optionLabelProp: "label"
|
|
5538
|
+
}, selectProps), {}, {
|
|
5336
5539
|
// 以下属性不可更改----设计配置项
|
|
5337
5540
|
showArrow: true,
|
|
5338
5541
|
showSearch: true,
|
|
5339
5542
|
filterOption: false,
|
|
5340
5543
|
allowClear: true,
|
|
5341
5544
|
listHeight: 160,
|
|
5342
|
-
optionLabelProp: "label",
|
|
5343
5545
|
autoClearSearchValue: false,
|
|
5344
5546
|
placement: 'bottomRight'
|
|
5345
5547
|
});
|
|
@@ -5389,29 +5591,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5389
5591
|
scrollPage = _useState8[0],
|
|
5390
5592
|
setScrollPage = _useState8[1];
|
|
5391
5593
|
var _useState9 = useState(0),
|
|
5392
|
-
|
|
5393
|
-
itemsTotal =
|
|
5394
|
-
setItemsTotal =
|
|
5395
|
-
var
|
|
5396
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
5397
|
-
fetching = _useState10[0],
|
|
5398
|
-
setFetching = _useState10[1];
|
|
5399
|
-
var _useState11 = useState(''),
|
|
5594
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
5595
|
+
itemsTotal = _useState10[0],
|
|
5596
|
+
setItemsTotal = _useState10[1];
|
|
5597
|
+
var _useState11 = useState(false),
|
|
5400
5598
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
var _useState13 = useState(
|
|
5599
|
+
fetching = _useState12[0],
|
|
5600
|
+
setFetching = _useState12[1];
|
|
5601
|
+
var _useState13 = useState(''),
|
|
5404
5602
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
var _useState15 = useState(
|
|
5603
|
+
searchValue = _useState14[0],
|
|
5604
|
+
setSearchValue = _useState14[1];
|
|
5605
|
+
var _useState15 = useState(false),
|
|
5408
5606
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
var _useState17 = useState(
|
|
5607
|
+
isModalVisible = _useState16[0],
|
|
5608
|
+
setIsModalVisible = _useState16[1];
|
|
5609
|
+
var _useState17 = useState(initVal),
|
|
5412
5610
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5413
|
-
|
|
5414
|
-
|
|
5611
|
+
popvalue = _useState18[0],
|
|
5612
|
+
setPopValue = _useState18[1];
|
|
5613
|
+
var _useState19 = useState(resultSourceKey),
|
|
5614
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5615
|
+
uniqueValue = _useState20[0],
|
|
5616
|
+
setUniqueValue = _useState20[1];
|
|
5415
5617
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
5416
5618
|
// 优化搜索参数 支持传多个
|
|
5417
5619
|
var searchParams = {};
|
|
@@ -5440,58 +5642,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5440
5642
|
var _Form$useForm = Form.useForm(),
|
|
5441
5643
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5442
5644
|
form = _Form$useForm2[0];
|
|
5443
|
-
var _useState19 = useState(true),
|
|
5444
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5445
|
-
collapsed = _useState20[0],
|
|
5446
|
-
setCollapsed = _useState20[1];
|
|
5447
5645
|
var _useState21 = useState(true),
|
|
5448
5646
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
var _useState23 = useState(
|
|
5647
|
+
collapsed = _useState22[0],
|
|
5648
|
+
setCollapsed = _useState22[1];
|
|
5649
|
+
var _useState23 = useState(true),
|
|
5452
5650
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
var _useState25 = useState(
|
|
5651
|
+
caretLeftFlag = _useState24[0],
|
|
5652
|
+
setCaretLeftFlag = _useState24[1];
|
|
5653
|
+
var _useState25 = useState([]),
|
|
5456
5654
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
var _useState27 = useState(
|
|
5655
|
+
tableData = _useState26[0],
|
|
5656
|
+
setTableData = _useState26[1];
|
|
5657
|
+
var _useState27 = useState(tableInitPagination),
|
|
5460
5658
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5461
|
-
|
|
5462
|
-
|
|
5659
|
+
tablePagination = _useState28[0],
|
|
5660
|
+
setTablePagination = _useState28[1];
|
|
5463
5661
|
var _useState29 = useState([]),
|
|
5464
5662
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
var _useState31 = useState(
|
|
5663
|
+
selectedRowKeys = _useState30[0],
|
|
5664
|
+
setSelectedRowKeys = _useState30[1];
|
|
5665
|
+
var _useState31 = useState([]),
|
|
5468
5666
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5469
|
-
|
|
5470
|
-
|
|
5667
|
+
selectedRows = _useState32[0],
|
|
5668
|
+
setSelectedRows = _useState32[1];
|
|
5471
5669
|
var _useState33 = useState(false),
|
|
5472
5670
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
var _useState35 = useState(
|
|
5671
|
+
checkedAll = _useState34[0],
|
|
5672
|
+
setCheckedAll = _useState34[1];
|
|
5673
|
+
var _useState35 = useState(false),
|
|
5476
5674
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
var _useState37 = useState(
|
|
5675
|
+
indeterminate = _useState36[0],
|
|
5676
|
+
setIndeterminate = _useState36[1];
|
|
5677
|
+
var _useState37 = useState({}),
|
|
5480
5678
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
var _useState39 = useState(
|
|
5679
|
+
tableFormParams = _useState38[0],
|
|
5680
|
+
setTableFormParams = _useState38[1];
|
|
5681
|
+
var _useState39 = useState(false),
|
|
5484
5682
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
var _useState41 = useState(
|
|
5683
|
+
tooltipVisible = _useState40[0],
|
|
5684
|
+
setTooltipVisible = _useState40[1];
|
|
5685
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5488
5686
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5489
|
-
|
|
5490
|
-
|
|
5687
|
+
tableShowColumns = _useState42[0],
|
|
5688
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5491
5689
|
var _useState43 = useState(false),
|
|
5492
5690
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5493
|
-
|
|
5494
|
-
|
|
5691
|
+
confirmLoading = _useState44[0],
|
|
5692
|
+
setConfirmLoading = _useState44[1];
|
|
5693
|
+
var _useState45 = useState(false),
|
|
5694
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5695
|
+
modalSearched = _useState46[0],
|
|
5696
|
+
setModalSearched = _useState46[1];
|
|
5495
5697
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5496
5698
|
setItems(list);
|
|
5497
5699
|
setItemsTotal(total);
|
|
@@ -5808,12 +6010,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5808
6010
|
};
|
|
5809
6011
|
var formaData = function formaData(value, source) {
|
|
5810
6012
|
if (labelInValue) {
|
|
6013
|
+
var getFromat = function getFromat(format, val) {
|
|
6014
|
+
return format.map(function (_ref8) {
|
|
6015
|
+
var key = _ref8.key,
|
|
6016
|
+
value = _ref8.value;
|
|
6017
|
+
return _defineProperty({}, key, val[value]);
|
|
6018
|
+
});
|
|
6019
|
+
};
|
|
5811
6020
|
var formatResult = value.map(function (i) {
|
|
5812
|
-
return {
|
|
6021
|
+
return Object.assign.apply(Object, [{
|
|
5813
6022
|
key: i[mappingValueField] || i.key,
|
|
5814
6023
|
label: i[mappingTextField] || i.label,
|
|
5815
6024
|
value: i[mappingValueField] || i.value
|
|
5816
|
-
};
|
|
6025
|
+
}].concat(_toConsumableArray(getFromat(returnFormat, i))));
|
|
5817
6026
|
});
|
|
5818
6027
|
onChange(selectMode ? formatResult : formatResult[0], value, source);
|
|
5819
6028
|
} else {
|
|
@@ -5961,7 +6170,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5961
6170
|
})) || [];
|
|
5962
6171
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5963
6172
|
return searchList.map(function (i, index) {
|
|
5964
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6173
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5965
6174
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5966
6175
|
span: ColSpan,
|
|
5967
6176
|
key: i
|
|
@@ -6059,7 +6268,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6059
6268
|
disabled: setDisabled(i.name)
|
|
6060
6269
|
}))));
|
|
6061
6270
|
}
|
|
6062
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6271
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
6063
6272
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6064
6273
|
span: ColSpan,
|
|
6065
6274
|
key: i.name
|
|
@@ -6073,7 +6282,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6073
6282
|
}
|
|
6074
6283
|
})));
|
|
6075
6284
|
}
|
|
6076
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6285
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
6077
6286
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6078
6287
|
span: ColSpan,
|
|
6079
6288
|
key: i.name
|
|
@@ -6083,8 +6292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6083
6292
|
key: i.name
|
|
6084
6293
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
6085
6294
|
}
|
|
6086
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6087
|
-
var _i$
|
|
6295
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6296
|
+
var _i$field13;
|
|
6088
6297
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6089
6298
|
span: ColSpan,
|
|
6090
6299
|
key: i.name
|
|
@@ -6097,9 +6306,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6097
6306
|
width: '100%'
|
|
6098
6307
|
},
|
|
6099
6308
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6100
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6309
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6101
6310
|
}
|
|
6102
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6311
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6103
6312
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6104
6313
|
span: ColSpan,
|
|
6105
6314
|
key: i.name
|
|
@@ -6128,7 +6337,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6128
6337
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6129
6338
|
allowClear: true,
|
|
6130
6339
|
maxLength: 100
|
|
6131
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6340
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6132
6341
|
disabled: setDisabled(i.name)
|
|
6133
6342
|
}))));
|
|
6134
6343
|
});
|
|
@@ -7448,132 +7657,135 @@ var AddSelect = function AddSelect(props) {
|
|
|
7448
7657
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7449
7658
|
form = _Form$useForm2[0];
|
|
7450
7659
|
var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7451
|
-
|
|
7452
|
-
tableSearchForm =
|
|
7453
|
-
setTableSearchForm =
|
|
7454
|
-
var
|
|
7455
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
7456
|
-
caretLeftFlag = _useState10[0],
|
|
7457
|
-
setCaretLeftFlag = _useState10[1];
|
|
7458
|
-
var _useState11 = useState([]),
|
|
7660
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7661
|
+
tableSearchForm = _useState10[0],
|
|
7662
|
+
setTableSearchForm = _useState10[1];
|
|
7663
|
+
var _useState11 = useState(true),
|
|
7459
7664
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
var _useState13 = useState(
|
|
7665
|
+
caretLeftFlag = _useState12[0],
|
|
7666
|
+
setCaretLeftFlag = _useState12[1];
|
|
7667
|
+
var _useState13 = useState([]),
|
|
7668
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7669
|
+
tableData = _useState14[0],
|
|
7670
|
+
setTableData = _useState14[1];
|
|
7671
|
+
var _useState15 = useState(_objectSpread2({
|
|
7463
7672
|
total: 0,
|
|
7464
7673
|
size: "small",
|
|
7465
7674
|
current: 1,
|
|
7466
7675
|
pageSize: tableInitPageSize
|
|
7467
7676
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7468
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7469
|
-
tablePagination = _useState14[0],
|
|
7470
|
-
setTablePagination = _useState14[1];
|
|
7471
|
-
var _useState15 = useState([]),
|
|
7472
7677
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
var _useState17 = useState(
|
|
7678
|
+
tablePagination = _useState16[0],
|
|
7679
|
+
setTablePagination = _useState16[1];
|
|
7680
|
+
var _useState17 = useState([]),
|
|
7476
7681
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
var _useState19 = useState(
|
|
7682
|
+
selectedRowKeys = _useState18[0],
|
|
7683
|
+
setSelectedRowKeys = _useState18[1];
|
|
7684
|
+
var _useState19 = useState({}),
|
|
7480
7685
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7481
|
-
|
|
7482
|
-
|
|
7686
|
+
tableFormParams = _useState20[0],
|
|
7687
|
+
setTableFormParams = _useState20[1];
|
|
7483
7688
|
var _useState21 = useState(false),
|
|
7484
7689
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
var _useState23 = useState(
|
|
7690
|
+
confirmLoading = _useState22[0],
|
|
7691
|
+
setConfirmLoading = _useState22[1];
|
|
7692
|
+
var _useState23 = useState(false),
|
|
7488
7693
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7489
|
-
|
|
7490
|
-
|
|
7694
|
+
confirmContinueLoading = _useState24[0],
|
|
7695
|
+
setConfirmContinueLoading = _useState24[1];
|
|
7491
7696
|
var _useState25 = useState([]),
|
|
7492
7697
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7493
|
-
|
|
7494
|
-
|
|
7698
|
+
selectColumns = _useState26[0],
|
|
7699
|
+
setSelectColumns = _useState26[1];
|
|
7495
7700
|
var _useState27 = useState([]),
|
|
7496
7701
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7497
|
-
|
|
7498
|
-
|
|
7702
|
+
showColumns = _useState28[0],
|
|
7703
|
+
setShowColumns = _useState28[1];
|
|
7499
7704
|
var _useState29 = useState([]),
|
|
7500
7705
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7501
|
-
|
|
7502
|
-
|
|
7706
|
+
tableColumns = _useState30[0],
|
|
7707
|
+
setTableColumns = _useState30[1];
|
|
7708
|
+
var _useState31 = useState([]),
|
|
7709
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
7710
|
+
showToChooseColumns = _useState32[0],
|
|
7711
|
+
setShowToChooseColumns = _useState32[1];
|
|
7503
7712
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7504
7713
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7505
7714
|
// FIXME: 特殊业务逻辑
|
|
7506
7715
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7507
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7508
|
-
var result
|
|
7509
|
-
return
|
|
7510
|
-
while (1) switch (_context.
|
|
7716
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7717
|
+
var result;
|
|
7718
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7719
|
+
while (1) switch (_context.prev = _context.next) {
|
|
7511
7720
|
case 0:
|
|
7512
7721
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7513
7722
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7514
7723
|
}))) {
|
|
7515
|
-
_context.
|
|
7724
|
+
_context.next = 3;
|
|
7516
7725
|
break;
|
|
7517
7726
|
}
|
|
7518
7727
|
message$1.warning('相同skc配码不可设置相同哦');
|
|
7519
|
-
return _context.
|
|
7520
|
-
case
|
|
7728
|
+
return _context.abrupt("return", false);
|
|
7729
|
+
case 3:
|
|
7521
7730
|
if (!(bType == 'spu')) {
|
|
7522
|
-
_context.
|
|
7731
|
+
_context.next = 26;
|
|
7523
7732
|
break;
|
|
7524
7733
|
}
|
|
7525
7734
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7526
7735
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7527
7736
|
}))) {
|
|
7528
|
-
_context.
|
|
7737
|
+
_context.next = 7;
|
|
7529
7738
|
break;
|
|
7530
7739
|
}
|
|
7531
7740
|
message$1.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7532
|
-
return _context.
|
|
7533
|
-
case
|
|
7741
|
+
return _context.abrupt("return", false);
|
|
7742
|
+
case 7:
|
|
7534
7743
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7535
|
-
_context.
|
|
7744
|
+
_context.next = 10;
|
|
7536
7745
|
break;
|
|
7537
7746
|
}
|
|
7538
7747
|
message$1.warning('请先选择颜色!');
|
|
7539
|
-
return _context.
|
|
7540
|
-
case
|
|
7748
|
+
return _context.abrupt("return", false);
|
|
7749
|
+
case 10:
|
|
7541
7750
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7542
7751
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7543
7752
|
}))) {
|
|
7544
|
-
_context.
|
|
7753
|
+
_context.next = 13;
|
|
7545
7754
|
break;
|
|
7546
7755
|
}
|
|
7547
7756
|
message$1.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7548
|
-
return _context.
|
|
7549
|
-
case
|
|
7757
|
+
return _context.abrupt("return", false);
|
|
7758
|
+
case 13:
|
|
7550
7759
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7551
|
-
_context.
|
|
7760
|
+
_context.next = 26;
|
|
7552
7761
|
break;
|
|
7553
7762
|
}
|
|
7554
7763
|
result = true;
|
|
7555
|
-
_context.
|
|
7556
|
-
_context.
|
|
7764
|
+
_context.prev = 15;
|
|
7765
|
+
_context.next = 18;
|
|
7557
7766
|
return checkSpuMatchCode({
|
|
7558
7767
|
skcCode: recordItem[recordKey],
|
|
7559
7768
|
matchingCode: changeValue,
|
|
7560
7769
|
ext1: recordItem.colorName
|
|
7561
7770
|
});
|
|
7562
|
-
case
|
|
7563
|
-
result = _context.
|
|
7771
|
+
case 18:
|
|
7772
|
+
result = _context.sent;
|
|
7564
7773
|
result = true;
|
|
7565
|
-
_context.
|
|
7774
|
+
_context.next = 25;
|
|
7566
7775
|
break;
|
|
7567
|
-
case
|
|
7568
|
-
_context.
|
|
7569
|
-
|
|
7570
|
-
result = typeof
|
|
7571
|
-
case
|
|
7572
|
-
return _context.
|
|
7573
|
-
case
|
|
7574
|
-
return _context.
|
|
7575
|
-
|
|
7576
|
-
|
|
7776
|
+
case 22:
|
|
7777
|
+
_context.prev = 22;
|
|
7778
|
+
_context.t0 = _context["catch"](15);
|
|
7779
|
+
result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
|
|
7780
|
+
case 25:
|
|
7781
|
+
return _context.abrupt("return", result);
|
|
7782
|
+
case 26:
|
|
7783
|
+
return _context.abrupt("return", true);
|
|
7784
|
+
case 27:
|
|
7785
|
+
case "end":
|
|
7786
|
+
return _context.stop();
|
|
7787
|
+
}
|
|
7788
|
+
}, _callee, null, [[15, 22]]);
|
|
7577
7789
|
}));
|
|
7578
7790
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7579
7791
|
return _ref2.apply(this, arguments);
|
|
@@ -7651,6 +7863,116 @@ var AddSelect = function AddSelect(props) {
|
|
|
7651
7863
|
acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
|
|
7652
7864
|
return acc;
|
|
7653
7865
|
}, {});
|
|
7866
|
+
// 可输入非数字字符
|
|
7867
|
+
if (item.canInputString) {
|
|
7868
|
+
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
7869
|
+
min: 0,
|
|
7870
|
+
precision: 0,
|
|
7871
|
+
controls: false
|
|
7872
|
+
}, inputProps), {}, {
|
|
7873
|
+
value: text || '',
|
|
7874
|
+
keyboard: false,
|
|
7875
|
+
onPressEnter: function onPressEnter(e) {
|
|
7876
|
+
e.target.blur();
|
|
7877
|
+
},
|
|
7878
|
+
onBlur: function () {
|
|
7879
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
7880
|
+
var value;
|
|
7881
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7882
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
7883
|
+
case 0:
|
|
7884
|
+
value = e.target.value;
|
|
7885
|
+
record[item.dataIndex] = value;
|
|
7886
|
+
editRecord(record);
|
|
7887
|
+
case 3:
|
|
7888
|
+
case "end":
|
|
7889
|
+
return _context2.stop();
|
|
7890
|
+
}
|
|
7891
|
+
}, _callee2);
|
|
7892
|
+
}));
|
|
7893
|
+
function onBlur(_x7) {
|
|
7894
|
+
return _onBlur.apply(this, arguments);
|
|
7895
|
+
}
|
|
7896
|
+
return onBlur;
|
|
7897
|
+
}(),
|
|
7898
|
+
onKeyDown: function onKeyDown(e) {
|
|
7899
|
+
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7900
|
+
var _document$getElementB;
|
|
7901
|
+
handleOk(true);
|
|
7902
|
+
(_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
|
7903
|
+
}
|
|
7904
|
+
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7905
|
+
var _e$nativeEvent$path$;
|
|
7906
|
+
message$1.success('删除当前行');
|
|
7907
|
+
e.stopPropagation();
|
|
7908
|
+
e.preventDefault();
|
|
7909
|
+
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
|
|
7910
|
+
if (dom) {
|
|
7911
|
+
dom.select();
|
|
7912
|
+
dom.focus();
|
|
7913
|
+
dom.scrollIntoView(false);
|
|
7914
|
+
}
|
|
7915
|
+
dom = null;
|
|
7916
|
+
deleteRecord(record);
|
|
7917
|
+
}
|
|
7918
|
+
if (e.keyCode === 37 && e.shiftKey) {
|
|
7919
|
+
var _e$nativeEvent$path$2;
|
|
7920
|
+
// 左滑动
|
|
7921
|
+
e.stopPropagation();
|
|
7922
|
+
e.preventDefault();
|
|
7923
|
+
var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
|
|
7924
|
+
if (_dom) {
|
|
7925
|
+
_dom.select();
|
|
7926
|
+
_dom.focus();
|
|
7927
|
+
_dom.scrollIntoView(false);
|
|
7928
|
+
}
|
|
7929
|
+
_dom = null;
|
|
7930
|
+
}
|
|
7931
|
+
if (e.keyCode === 39 && e.shiftKey) {
|
|
7932
|
+
var _e$nativeEvent$path$3;
|
|
7933
|
+
// 右滑
|
|
7934
|
+
e.stopPropagation();
|
|
7935
|
+
e.preventDefault();
|
|
7936
|
+
var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
|
|
7937
|
+
if (_dom2) {
|
|
7938
|
+
_dom2.select();
|
|
7939
|
+
_dom2.focus();
|
|
7940
|
+
_dom2.scrollIntoView(false);
|
|
7941
|
+
}
|
|
7942
|
+
_dom2 = null;
|
|
7943
|
+
}
|
|
7944
|
+
if (e.keyCode === 40) {
|
|
7945
|
+
var _e$nativeEvent$path$4;
|
|
7946
|
+
e.stopPropagation();
|
|
7947
|
+
e.preventDefault();
|
|
7948
|
+
var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
|
|
7949
|
+
if (_dom3) {
|
|
7950
|
+
_dom3.select();
|
|
7951
|
+
_dom3.focus();
|
|
7952
|
+
_dom3.scrollIntoView(false);
|
|
7953
|
+
}
|
|
7954
|
+
_dom3 = null;
|
|
7955
|
+
} else if (e.keyCode === 38) {
|
|
7956
|
+
var _e$nativeEvent$path$5;
|
|
7957
|
+
e.stopPropagation();
|
|
7958
|
+
e.preventDefault();
|
|
7959
|
+
var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
|
|
7960
|
+
if (dom1) {
|
|
7961
|
+
// dom1.value=""
|
|
7962
|
+
// dom1.setSelectionRange(100, 0);
|
|
7963
|
+
dom1.select();
|
|
7964
|
+
dom1.focus();
|
|
7965
|
+
dom1.scrollIntoViewIfNeeded(false);
|
|
7966
|
+
// dom1.value=record['count']
|
|
7967
|
+
}
|
|
7968
|
+
dom1 = null;
|
|
7969
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
7970
|
+
e.stopPropagation();
|
|
7971
|
+
e.preventDefault();
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
}));
|
|
7975
|
+
}
|
|
7654
7976
|
return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
7655
7977
|
value: text || '',
|
|
7656
7978
|
min: 0,
|
|
@@ -7668,16 +7990,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7668
7990
|
// }}
|
|
7669
7991
|
onKeyDown: function onKeyDown(e) {
|
|
7670
7992
|
if (e.keyCode === 13 && e.ctrlKey) {
|
|
7671
|
-
var _document$
|
|
7993
|
+
var _document$getElementB2;
|
|
7672
7994
|
handleOk(true);
|
|
7673
|
-
(_document$
|
|
7995
|
+
(_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
|
|
7674
7996
|
}
|
|
7675
7997
|
if (e.keyCode === 8 && e.ctrlKey) {
|
|
7676
|
-
var _e$nativeEvent$path
|
|
7998
|
+
var _e$nativeEvent$path$6;
|
|
7677
7999
|
message$1.success('删除当前行');
|
|
7678
8000
|
e.stopPropagation();
|
|
7679
8001
|
e.preventDefault();
|
|
7680
|
-
var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path
|
|
8002
|
+
var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
|
|
7681
8003
|
if (dom) {
|
|
7682
8004
|
dom.select();
|
|
7683
8005
|
dom.focus();
|
|
@@ -7687,47 +8009,47 @@ var AddSelect = function AddSelect(props) {
|
|
|
7687
8009
|
deleteRecord(record);
|
|
7688
8010
|
}
|
|
7689
8011
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7690
|
-
var _e$nativeEvent$path$
|
|
8012
|
+
var _e$nativeEvent$path$7;
|
|
7691
8013
|
// 左滑动
|
|
7692
8014
|
e.stopPropagation();
|
|
7693
8015
|
e.preventDefault();
|
|
7694
|
-
var
|
|
7695
|
-
if (
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
8016
|
+
var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
|
|
8017
|
+
if (_dom4) {
|
|
8018
|
+
_dom4.select();
|
|
8019
|
+
_dom4.focus();
|
|
8020
|
+
_dom4.scrollIntoView(false);
|
|
7699
8021
|
}
|
|
7700
|
-
|
|
8022
|
+
_dom4 = null;
|
|
7701
8023
|
}
|
|
7702
8024
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7703
|
-
var _e$nativeEvent$path$
|
|
8025
|
+
var _e$nativeEvent$path$8;
|
|
7704
8026
|
// 右滑
|
|
7705
8027
|
e.stopPropagation();
|
|
7706
8028
|
e.preventDefault();
|
|
7707
|
-
var
|
|
7708
|
-
if (
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
8029
|
+
var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
|
|
8030
|
+
if (_dom5) {
|
|
8031
|
+
_dom5.select();
|
|
8032
|
+
_dom5.focus();
|
|
8033
|
+
_dom5.scrollIntoView(false);
|
|
7712
8034
|
}
|
|
7713
|
-
|
|
8035
|
+
_dom5 = null;
|
|
7714
8036
|
}
|
|
7715
8037
|
if (e.keyCode === 40) {
|
|
7716
|
-
var _e$nativeEvent$path$
|
|
8038
|
+
var _e$nativeEvent$path$9;
|
|
7717
8039
|
e.stopPropagation();
|
|
7718
8040
|
e.preventDefault();
|
|
7719
|
-
var
|
|
7720
|
-
if (
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
8041
|
+
var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
|
|
8042
|
+
if (_dom6) {
|
|
8043
|
+
_dom6.select();
|
|
8044
|
+
_dom6.focus();
|
|
8045
|
+
_dom6.scrollIntoView(false);
|
|
7724
8046
|
}
|
|
7725
|
-
|
|
8047
|
+
_dom6 = null;
|
|
7726
8048
|
} else if (e.keyCode === 38) {
|
|
7727
|
-
var _e$nativeEvent$path$
|
|
8049
|
+
var _e$nativeEvent$path$10;
|
|
7728
8050
|
e.stopPropagation();
|
|
7729
8051
|
e.preventDefault();
|
|
7730
|
-
var dom1 = (_e$nativeEvent$path$
|
|
8052
|
+
var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
|
|
7731
8053
|
if (dom1) {
|
|
7732
8054
|
// dom1.value=""
|
|
7733
8055
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7761,19 +8083,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
7761
8083
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7762
8084
|
value: text || null,
|
|
7763
8085
|
onChange: function () {
|
|
7764
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
7765
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules
|
|
7766
|
-
return
|
|
7767
|
-
while (1) switch (
|
|
8086
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
8087
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8088
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8089
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
7768
8090
|
case 0:
|
|
7769
8091
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
7770
8092
|
return d[selectKey] == value;
|
|
7771
8093
|
})) || {};
|
|
7772
8094
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
7773
|
-
|
|
8095
|
+
_context3.next = 6;
|
|
7774
8096
|
break;
|
|
7775
8097
|
}
|
|
7776
|
-
|
|
8098
|
+
_context3.next = 4;
|
|
7777
8099
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
7778
8100
|
record: record,
|
|
7779
8101
|
index: index,
|
|
@@ -7783,10 +8105,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7783
8105
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
7784
8106
|
editRecord: editRecord
|
|
7785
8107
|
});
|
|
7786
|
-
case
|
|
7787
|
-
|
|
8108
|
+
case 4:
|
|
8109
|
+
_context3.next = 25;
|
|
7788
8110
|
break;
|
|
7789
|
-
case
|
|
8111
|
+
case 6:
|
|
7790
8112
|
// 更新当前行数据函数
|
|
7791
8113
|
changeValue = function changeValue(v, dSSItem) {
|
|
7792
8114
|
var _item$dataSourceSelec;
|
|
@@ -7799,12 +8121,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
7799
8121
|
}
|
|
7800
8122
|
}; // 处理校验,默认不校验
|
|
7801
8123
|
isCheckPass = true;
|
|
7802
|
-
|
|
8124
|
+
_context3.prev = 8;
|
|
7803
8125
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
7804
|
-
|
|
8126
|
+
_context3.next = 15;
|
|
7805
8127
|
break;
|
|
7806
8128
|
}
|
|
7807
|
-
|
|
8129
|
+
_context3.next = 12;
|
|
7808
8130
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
7809
8131
|
record: record,
|
|
7810
8132
|
index: index,
|
|
@@ -7813,23 +8135,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
7813
8135
|
changeValue: value,
|
|
7814
8136
|
dataSourceSelectItem: dataSourceSelectItem
|
|
7815
8137
|
});
|
|
7816
|
-
case
|
|
7817
|
-
isCheckPass =
|
|
7818
|
-
|
|
8138
|
+
case 12:
|
|
8139
|
+
isCheckPass = _context3.sent;
|
|
8140
|
+
_context3.next = 19;
|
|
7819
8141
|
break;
|
|
7820
|
-
case
|
|
7821
|
-
|
|
8142
|
+
case 15:
|
|
8143
|
+
_context3.next = 17;
|
|
7822
8144
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
7823
|
-
case
|
|
7824
|
-
isConformToTheRules =
|
|
8145
|
+
case 17:
|
|
8146
|
+
isConformToTheRules = _context3.sent;
|
|
7825
8147
|
isCheckPass = !isConformToTheRules;
|
|
7826
|
-
case
|
|
7827
|
-
|
|
8148
|
+
case 19:
|
|
8149
|
+
_context3.next = 23;
|
|
7828
8150
|
break;
|
|
7829
|
-
case
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
case
|
|
8151
|
+
case 21:
|
|
8152
|
+
_context3.prev = 21;
|
|
8153
|
+
_context3.t0 = _context3["catch"](8);
|
|
8154
|
+
case 23:
|
|
7833
8155
|
if (isCheckPass) {
|
|
7834
8156
|
changeValue(value, dataSourceSelectItem);
|
|
7835
8157
|
} else {
|
|
@@ -7837,12 +8159,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7837
8159
|
}
|
|
7838
8160
|
// 更新已选表格函数
|
|
7839
8161
|
editRecord(record);
|
|
7840
|
-
case
|
|
7841
|
-
|
|
8162
|
+
case 25:
|
|
8163
|
+
case "end":
|
|
8164
|
+
return _context3.stop();
|
|
7842
8165
|
}
|
|
7843
|
-
},
|
|
8166
|
+
}, _callee3, null, [[8, 21]]);
|
|
7844
8167
|
}));
|
|
7845
|
-
function onChange(
|
|
8168
|
+
function onChange(_x8) {
|
|
7846
8169
|
return _onChange.apply(this, arguments);
|
|
7847
8170
|
}
|
|
7848
8171
|
return onChange;
|
|
@@ -8102,8 +8425,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8102
8425
|
}
|
|
8103
8426
|
}
|
|
8104
8427
|
setTimeout(function () {
|
|
8105
|
-
var _document$
|
|
8106
|
-
(_document$
|
|
8428
|
+
var _document$getElementB3;
|
|
8429
|
+
(_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
|
|
8107
8430
|
}, 50);
|
|
8108
8431
|
};
|
|
8109
8432
|
// 将格式化完的数据回显到 表格中
|
|
@@ -8133,7 +8456,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8133
8456
|
handleLoading(isContinue, true);
|
|
8134
8457
|
onSaveCallback(popvalue).then(function (res) {
|
|
8135
8458
|
{
|
|
8136
|
-
var _Object$keys2, _document$
|
|
8459
|
+
var _Object$keys2, _document$getElementB4;
|
|
8137
8460
|
// 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
|
|
8138
8461
|
var initSuccessMessage = '保存成功';
|
|
8139
8462
|
var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
|
|
@@ -8143,7 +8466,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8143
8466
|
message$1.success(initSuccessMessage);
|
|
8144
8467
|
}
|
|
8145
8468
|
deleteSelectRows();
|
|
8146
|
-
(_document$
|
|
8469
|
+
(_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
|
|
8147
8470
|
!isContinue && handleCancel();
|
|
8148
8471
|
}
|
|
8149
8472
|
handleLoading(isContinue, false);
|
|
@@ -9231,29 +9554,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9231
9554
|
dataIndex: 'propertyNameAndValue'
|
|
9232
9555
|
}];
|
|
9233
9556
|
var _useState9 = useState(false),
|
|
9234
|
-
|
|
9235
|
-
isModalVisible =
|
|
9236
|
-
setIsModalVisible =
|
|
9237
|
-
var
|
|
9557
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
9558
|
+
isModalVisible = _useState10[0],
|
|
9559
|
+
setIsModalVisible = _useState10[1];
|
|
9560
|
+
var _useState11 = useState([{
|
|
9238
9561
|
hovered: false
|
|
9239
9562
|
}]),
|
|
9240
|
-
|
|
9241
|
-
data =
|
|
9242
|
-
setData =
|
|
9563
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9564
|
+
data = _useState12[0],
|
|
9565
|
+
setData = _useState12[1];
|
|
9243
9566
|
var tableRef = useRef(null);
|
|
9244
9567
|
var codeSelected = tableCode;
|
|
9245
|
-
var
|
|
9246
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
9247
|
-
loading = _useState12[0],
|
|
9248
|
-
setLoading = _useState12[1];
|
|
9249
|
-
var _useState13 = useState([]),
|
|
9568
|
+
var _useState13 = useState(false),
|
|
9250
9569
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9251
|
-
|
|
9252
|
-
|
|
9570
|
+
loading = _useState14[0],
|
|
9571
|
+
setLoading = _useState14[1];
|
|
9253
9572
|
var _useState15 = useState([]),
|
|
9254
9573
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9255
|
-
|
|
9256
|
-
|
|
9574
|
+
selectColumns = _useState16[0],
|
|
9575
|
+
setSelectColumns = _useState16[1];
|
|
9576
|
+
var _useState17 = useState([]),
|
|
9577
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
9578
|
+
showColumns = _useState18[0],
|
|
9579
|
+
setShowColumns = _useState18[1];
|
|
9257
9580
|
useEffect(function () {
|
|
9258
9581
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9259
9582
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9369,42 +9692,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9369
9692
|
});
|
|
9370
9693
|
};
|
|
9371
9694
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9372
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9695
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9373
9696
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9374
|
-
return
|
|
9375
|
-
while (1) switch (_context.
|
|
9697
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9698
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9376
9699
|
case 0:
|
|
9377
9700
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9378
|
-
_context.
|
|
9701
|
+
_context.next = 3;
|
|
9379
9702
|
break;
|
|
9380
9703
|
}
|
|
9381
9704
|
message$1.warning('至少录入一条数据');
|
|
9382
|
-
return _context.
|
|
9383
|
-
case
|
|
9705
|
+
return _context.abrupt("return");
|
|
9706
|
+
case 3:
|
|
9384
9707
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9385
9708
|
return d.skuCode && d.name;
|
|
9386
9709
|
})) {
|
|
9387
|
-
_context.
|
|
9710
|
+
_context.next = 6;
|
|
9388
9711
|
break;
|
|
9389
9712
|
}
|
|
9390
9713
|
message$1.warning('录入商品不存在');
|
|
9391
|
-
return _context.
|
|
9392
|
-
case
|
|
9714
|
+
return _context.abrupt("return");
|
|
9715
|
+
case 6:
|
|
9393
9716
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9394
9717
|
return d.count;
|
|
9395
9718
|
})) {
|
|
9396
|
-
_context.
|
|
9719
|
+
_context.next = 9;
|
|
9397
9720
|
break;
|
|
9398
9721
|
}
|
|
9399
9722
|
message$1.warning('请填写商品数量!');
|
|
9400
|
-
return _context.
|
|
9401
|
-
case
|
|
9402
|
-
_context.
|
|
9723
|
+
return _context.abrupt("return");
|
|
9724
|
+
case 9:
|
|
9725
|
+
_context.next = 11;
|
|
9403
9726
|
return isSkuCanEntry(data);
|
|
9404
|
-
case
|
|
9405
|
-
canEntryObject = _context.
|
|
9727
|
+
case 11:
|
|
9728
|
+
canEntryObject = _context.sent;
|
|
9406
9729
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9407
|
-
_context.
|
|
9730
|
+
_context.next = 16;
|
|
9408
9731
|
break;
|
|
9409
9732
|
}
|
|
9410
9733
|
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
@@ -9414,8 +9737,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9414
9737
|
content: messageInfo,
|
|
9415
9738
|
duration: 6
|
|
9416
9739
|
});
|
|
9417
|
-
return _context.
|
|
9418
|
-
case
|
|
9740
|
+
return _context.abrupt("return");
|
|
9741
|
+
case 16:
|
|
9419
9742
|
setLoading(true);
|
|
9420
9743
|
onSaveCallback(data).then(function (res) {
|
|
9421
9744
|
{
|
|
@@ -9433,8 +9756,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9433
9756
|
message$1.error(Error);
|
|
9434
9757
|
setLoading(false);
|
|
9435
9758
|
});
|
|
9436
|
-
case
|
|
9437
|
-
|
|
9759
|
+
case 18:
|
|
9760
|
+
case "end":
|
|
9761
|
+
return _context.stop();
|
|
9438
9762
|
}
|
|
9439
9763
|
}, _callee);
|
|
9440
9764
|
}));
|
|
@@ -10320,10 +10644,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10320
10644
|
selectProps = _objectSpread2({
|
|
10321
10645
|
placeholder: '输入商品(SPU)编码或名称',
|
|
10322
10646
|
renderTableColumns: [{
|
|
10323
|
-
title: '
|
|
10647
|
+
title: 'SPU编码',
|
|
10324
10648
|
dataIndex: 'itemCode'
|
|
10325
10649
|
}, {
|
|
10326
|
-
title: '
|
|
10650
|
+
title: 'SPU名称',
|
|
10327
10651
|
dataIndex: 'name'
|
|
10328
10652
|
}]
|
|
10329
10653
|
}, selectConfigProps);
|
|
@@ -10340,11 +10664,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10340
10664
|
}, requestConfigProp);
|
|
10341
10665
|
tableSearchForm = [{
|
|
10342
10666
|
name: 'itemCode*multiInput',
|
|
10343
|
-
label: '
|
|
10667
|
+
label: 'SPU编码',
|
|
10344
10668
|
type: 'multipleQueryInput'
|
|
10345
10669
|
}, {
|
|
10346
10670
|
name: 'name*multiInput',
|
|
10347
|
-
label: '
|
|
10671
|
+
label: 'SPU名称',
|
|
10348
10672
|
type: 'multipleQueryInput'
|
|
10349
10673
|
}, {
|
|
10350
10674
|
name: 'qp-brandId-in',
|
|
@@ -10438,11 +10762,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10438
10762
|
dataIndex: 'keyIndex',
|
|
10439
10763
|
defaultSort: 0
|
|
10440
10764
|
}, {
|
|
10441
|
-
title: '
|
|
10765
|
+
title: 'SPU编码',
|
|
10442
10766
|
dataIndex: 'itemCode',
|
|
10443
10767
|
defaultSort: 1
|
|
10444
10768
|
}, {
|
|
10445
|
-
title: '
|
|
10769
|
+
title: 'SPU名称',
|
|
10446
10770
|
dataIndex: 'name',
|
|
10447
10771
|
defaultSort: 2
|
|
10448
10772
|
}, {
|
|
@@ -10796,7 +11120,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10796
11120
|
options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
|
|
10797
11121
|
}], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
|
|
10798
11122
|
var fieldLoadSource = fieldsRequest.map(function (i) {
|
|
10799
|
-
return loadSelectSource$1(i.url, i.params, options);
|
|
11123
|
+
return loadSelectSource$1(i.url, i.params, i.options);
|
|
10800
11124
|
});
|
|
10801
11125
|
requestConfig = _objectSpread2({
|
|
10802
11126
|
url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
|
|
@@ -11010,6 +11334,26 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11010
11334
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
11011
11335
|
sourceName: 'warehouseIds'
|
|
11012
11336
|
}, requestConfigProp);
|
|
11337
|
+
var _queryHeaderParams7 = getQueryHeadersList({
|
|
11338
|
+
querySelectHeadersList: querySelectHeadersList,
|
|
11339
|
+
extralHeaders: extralHeaders
|
|
11340
|
+
});
|
|
11341
|
+
Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11342
|
+
'qp-status-eq': 10,
|
|
11343
|
+
'qp-isMain-eq': 1,
|
|
11344
|
+
'qp-type-in': '1,2'
|
|
11345
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11346
|
+
'qp-status-eq': 1
|
|
11347
|
+
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11348
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11349
|
+
return data['parentCode'] === '0';
|
|
11350
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11351
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11352
|
+
return data['parent'] === '0';
|
|
11353
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11354
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11355
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11356
|
+
});
|
|
11013
11357
|
tableSearchForm = [{
|
|
11014
11358
|
name: 'realWarehouseName*multiInput',
|
|
11015
11359
|
label: '逻辑仓名称',
|
|
@@ -11033,6 +11377,70 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11033
11377
|
},
|
|
11034
11378
|
label: '管理大区',
|
|
11035
11379
|
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
11380
|
+
}, {
|
|
11381
|
+
name: 'qp-channelCode-in',
|
|
11382
|
+
type: 'treeSelect',
|
|
11383
|
+
label: '销售渠道',
|
|
11384
|
+
field: {
|
|
11385
|
+
type: 'treeSelect',
|
|
11386
|
+
props: {
|
|
11387
|
+
multiple: true,
|
|
11388
|
+
treeData: [],
|
|
11389
|
+
treeCheckable: false,
|
|
11390
|
+
notFoundContent: '暂无数据',
|
|
11391
|
+
allowClear: true,
|
|
11392
|
+
showSearch: true,
|
|
11393
|
+
showArrow: true,
|
|
11394
|
+
maxTagCount: 1,
|
|
11395
|
+
optionFilterProp: 'children',
|
|
11396
|
+
filterOption: function filterOption(input, option) {
|
|
11397
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11398
|
+
},
|
|
11399
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11400
|
+
}
|
|
11401
|
+
}
|
|
11402
|
+
}, {
|
|
11403
|
+
name: 'qp-refCode-in',
|
|
11404
|
+
type: 'treeSelect',
|
|
11405
|
+
label: '营销区域',
|
|
11406
|
+
field: {
|
|
11407
|
+
type: 'treeSelect',
|
|
11408
|
+
props: {
|
|
11409
|
+
multiple: true,
|
|
11410
|
+
treeData: [],
|
|
11411
|
+
treeCheckable: false,
|
|
11412
|
+
notFoundContent: '暂无数据',
|
|
11413
|
+
allowClear: true,
|
|
11414
|
+
showSearch: true,
|
|
11415
|
+
showArrow: true,
|
|
11416
|
+
maxTagCount: 1,
|
|
11417
|
+
optionFilterProp: 'children',
|
|
11418
|
+
filterOption: function filterOption(input, option) {
|
|
11419
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11420
|
+
},
|
|
11421
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11422
|
+
}
|
|
11423
|
+
}
|
|
11424
|
+
}, {
|
|
11425
|
+
name: 'qp-type-in',
|
|
11426
|
+
type: 'select',
|
|
11427
|
+
label: '店铺性质',
|
|
11428
|
+
field: {
|
|
11429
|
+
type: 'select',
|
|
11430
|
+
props: {
|
|
11431
|
+
mode: 'multiple',
|
|
11432
|
+
notFoundContent: '暂无数据',
|
|
11433
|
+
allowClear: true,
|
|
11434
|
+
showSearch: true,
|
|
11435
|
+
showArrow: true,
|
|
11436
|
+
maxTagCount: 1,
|
|
11437
|
+
optionFilterProp: 'children',
|
|
11438
|
+
filterOption: function filterOption(input, option) {
|
|
11439
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11440
|
+
}
|
|
11441
|
+
}
|
|
11442
|
+
},
|
|
11443
|
+
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11036
11444
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11037
11445
|
name: 'qp-isEnable-eq',
|
|
11038
11446
|
type: 'select',
|
|
@@ -11061,10 +11469,36 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11061
11469
|
render: function render(text) {
|
|
11062
11470
|
return getDictionaryTextByValue$1('SC00004', text);
|
|
11063
11471
|
}
|
|
11472
|
+
}, {
|
|
11473
|
+
title: '运营组名称',
|
|
11474
|
+
dataIndex: 'groupCode',
|
|
11475
|
+
defaultSort: 7,
|
|
11476
|
+
render: function render(text, record) {
|
|
11477
|
+
return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
|
|
11478
|
+
},
|
|
11479
|
+
width: 100
|
|
11480
|
+
}, {
|
|
11481
|
+
title: '所属销售渠道',
|
|
11482
|
+
dataIndex: 'channelName',
|
|
11483
|
+
defaultSort: 4,
|
|
11484
|
+
width: 100
|
|
11485
|
+
}, {
|
|
11486
|
+
title: '营销区域',
|
|
11487
|
+
dataIndex: 'commonRelationAreaName',
|
|
11488
|
+
defaultSort: 5,
|
|
11489
|
+
width: 100
|
|
11490
|
+
}, {
|
|
11491
|
+
title: '店铺性质',
|
|
11492
|
+
dataIndex: 'type',
|
|
11493
|
+
defaultSort: 6,
|
|
11494
|
+
render: function render(text) {
|
|
11495
|
+
return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
|
|
11496
|
+
},
|
|
11497
|
+
width: 80
|
|
11064
11498
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11065
11499
|
title: '状态',
|
|
11066
11500
|
dataIndex: 'isEnable',
|
|
11067
|
-
defaultSort:
|
|
11501
|
+
defaultSort: 8,
|
|
11068
11502
|
render: function render(text) {
|
|
11069
11503
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11070
11504
|
}
|
|
@@ -11124,20 +11558,50 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11124
11558
|
}
|
|
11125
11559
|
}
|
|
11126
11560
|
}
|
|
11561
|
+
}, {
|
|
11562
|
+
name: 'qp-channelCode-in',
|
|
11563
|
+
type: 'treeSelect',
|
|
11564
|
+
label: '销售渠道',
|
|
11565
|
+
field: {
|
|
11566
|
+
type: 'treeSelect',
|
|
11567
|
+
props: {
|
|
11568
|
+
multiple: true,
|
|
11569
|
+
treeData: [],
|
|
11570
|
+
treeCheckable: false,
|
|
11571
|
+
notFoundContent: '暂无数据',
|
|
11572
|
+
allowClear: true,
|
|
11573
|
+
showSearch: true,
|
|
11574
|
+
showArrow: true,
|
|
11575
|
+
maxTagCount: 1,
|
|
11576
|
+
optionFilterProp: 'children',
|
|
11577
|
+
filterOption: function filterOption(input, option) {
|
|
11578
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11579
|
+
},
|
|
11580
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11581
|
+
}
|
|
11582
|
+
}
|
|
11127
11583
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11128
11584
|
name: 'qp-status-eq',
|
|
11129
11585
|
type: 'select',
|
|
11130
11586
|
label: '运营仓状态',
|
|
11131
11587
|
initialSource: getDictionarySource$1('SC00001')
|
|
11132
11588
|
}] : []));
|
|
11133
|
-
var
|
|
11589
|
+
var _queryHeaderParams8 = getQueryHeadersList({
|
|
11134
11590
|
querySelectHeadersList: querySelectHeadersList,
|
|
11135
11591
|
extralHeaders: extralHeaders
|
|
11136
11592
|
});
|
|
11137
11593
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
|
|
11138
11594
|
'qp-status-eq': 1
|
|
11139
|
-
}, getQueryHeadersItem(
|
|
11595
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11596
|
+
'qp-status-eq': 10,
|
|
11597
|
+
'qp-isMain-eq': 1,
|
|
11598
|
+
'qp-type-in': '1,2'
|
|
11599
|
+
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11140
11600
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11601
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11602
|
+
return data['parentCode'] === '0';
|
|
11603
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11604
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11141
11605
|
});
|
|
11142
11606
|
modalTableProps = _objectSpread2({
|
|
11143
11607
|
modalTableTitle: '选择运营仓',
|
|
@@ -11165,7 +11629,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11165
11629
|
render: function render(text) {
|
|
11166
11630
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
11167
11631
|
}
|
|
11168
|
-
}] : [])
|
|
11632
|
+
}] : []), [{
|
|
11633
|
+
title: '所属销售渠道',
|
|
11634
|
+
dataIndex: 'channelName',
|
|
11635
|
+
defaultSort: 5,
|
|
11636
|
+
width: 100
|
|
11637
|
+
}])
|
|
11169
11638
|
}, modalTableBusProps);
|
|
11170
11639
|
}
|
|
11171
11640
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
@@ -11314,7 +11783,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11314
11783
|
label: '共享类型',
|
|
11315
11784
|
initialSource: sharingTypeDataList
|
|
11316
11785
|
}];
|
|
11317
|
-
var
|
|
11786
|
+
var _queryHeaderParams9 = getQueryHeadersList({
|
|
11318
11787
|
querySelectHeadersList: querySelectHeadersList,
|
|
11319
11788
|
extralHeaders: extralHeaders
|
|
11320
11789
|
});
|
|
@@ -11322,14 +11791,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11322
11791
|
pageSize: 5000,
|
|
11323
11792
|
currentPage: 1,
|
|
11324
11793
|
'qp-companyType-eq': '30'
|
|
11325
|
-
}, getQueryHeadersItem(
|
|
11794
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11326
11795
|
pageSize: 5000,
|
|
11327
11796
|
currentPage: 1
|
|
11328
|
-
}, getQueryHeadersItem(
|
|
11797
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11329
11798
|
pageSize: 5000,
|
|
11330
11799
|
currentPage: 1,
|
|
11331
11800
|
'qp-companyType-eq': '20'
|
|
11332
|
-
}, getQueryHeadersItem(
|
|
11801
|
+
}, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
|
|
11333
11802
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11334
11803
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11335
11804
|
formatSource(x, 2, 4, tableSearchForm);
|
|
@@ -11441,16 +11910,74 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11441
11910
|
}
|
|
11442
11911
|
}
|
|
11443
11912
|
}
|
|
11913
|
+
}, {
|
|
11914
|
+
name: 'qp-saleChannel-in',
|
|
11915
|
+
type: 'treeSelect',
|
|
11916
|
+
label: '销售渠道',
|
|
11917
|
+
field: {
|
|
11918
|
+
type: 'treeSelect',
|
|
11919
|
+
props: {
|
|
11920
|
+
multiple: true,
|
|
11921
|
+
treeData: [],
|
|
11922
|
+
treeCheckable: false,
|
|
11923
|
+
notFoundContent: '暂无数据',
|
|
11924
|
+
allowClear: true,
|
|
11925
|
+
showSearch: true,
|
|
11926
|
+
showArrow: true,
|
|
11927
|
+
maxTagCount: 1,
|
|
11928
|
+
optionFilterProp: 'children',
|
|
11929
|
+
filterOption: function filterOption(input, option) {
|
|
11930
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11931
|
+
},
|
|
11932
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11933
|
+
}
|
|
11934
|
+
}
|
|
11935
|
+
}, {
|
|
11936
|
+
name: 'qp-refCode-in',
|
|
11937
|
+
type: 'treeSelect',
|
|
11938
|
+
label: '营销区域',
|
|
11939
|
+
field: {
|
|
11940
|
+
type: 'treeSelect',
|
|
11941
|
+
props: {
|
|
11942
|
+
multiple: true,
|
|
11943
|
+
treeData: [],
|
|
11944
|
+
treeCheckable: false,
|
|
11945
|
+
notFoundContent: '暂无数据',
|
|
11946
|
+
allowClear: true,
|
|
11947
|
+
showSearch: true,
|
|
11948
|
+
showArrow: true,
|
|
11949
|
+
maxTagCount: 1,
|
|
11950
|
+
optionFilterProp: 'children',
|
|
11951
|
+
filterOption: function filterOption(input, option) {
|
|
11952
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
11953
|
+
},
|
|
11954
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11955
|
+
}
|
|
11956
|
+
}
|
|
11444
11957
|
}];
|
|
11445
|
-
var
|
|
11958
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
11446
11959
|
querySelectHeadersList: querySelectHeadersList,
|
|
11447
11960
|
extralHeaders: extralHeaders
|
|
11448
11961
|
});
|
|
11449
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
11962
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
11963
|
+
'qp-status-eq': 10,
|
|
11964
|
+
'qp-isMain-eq': 1,
|
|
11965
|
+
'qp-type-in': '1,2'
|
|
11966
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11967
|
+
'qp-status-eq': 1
|
|
11968
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
11450
11969
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
11451
11970
|
var allList = firstElement && [firstElement, firstElement];
|
|
11452
11971
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
11453
11972
|
formatSource(allList, 1, 3, tableSearchForm);
|
|
11973
|
+
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11974
|
+
return data['parentCode'] === '0';
|
|
11975
|
+
}; // 所属销售渠道 树节点不能点判断
|
|
11976
|
+
var areaDisabledJude = function areaDisabledJude(data) {
|
|
11977
|
+
return data['parent'] === '0';
|
|
11978
|
+
}; // 所属营销区域 树节点不能点判断
|
|
11979
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11980
|
+
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
|
|
11454
11981
|
});
|
|
11455
11982
|
modalTableProps = _objectSpread2({
|
|
11456
11983
|
modalTableTitle: '选择客户',
|
|
@@ -11474,7 +12001,18 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11474
12001
|
}, {
|
|
11475
12002
|
title: '使用组织',
|
|
11476
12003
|
dataIndex: 'salesOrgName',
|
|
11477
|
-
defaultSort: 4
|
|
12004
|
+
defaultSort: 4,
|
|
12005
|
+
width: 100
|
|
12006
|
+
}, {
|
|
12007
|
+
title: '所属销售渠道',
|
|
12008
|
+
dataIndex: 'channelName',
|
|
12009
|
+
defaultSort: 5,
|
|
12010
|
+
width: 100
|
|
12011
|
+
}, {
|
|
12012
|
+
title: '营销区域',
|
|
12013
|
+
dataIndex: 'commonRelationAreaName',
|
|
12014
|
+
defaultSort: 6,
|
|
12015
|
+
width: 100
|
|
11478
12016
|
}]
|
|
11479
12017
|
}, modalTableBusProps);
|
|
11480
12018
|
}
|
|
@@ -11502,12 +12040,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11502
12040
|
sourceName: 'code'
|
|
11503
12041
|
}, requestConfigProp);
|
|
11504
12042
|
tableSearchForm = [{
|
|
11505
|
-
name: '
|
|
11506
|
-
label: '店铺名称'
|
|
11507
|
-
|
|
11508
|
-
name: 'qp-code-like',
|
|
11509
|
-
label: '店铺编码'
|
|
12043
|
+
name: 'name*multiInput',
|
|
12044
|
+
label: '店铺名称',
|
|
12045
|
+
type: 'multipleQueryInput'
|
|
11510
12046
|
}, {
|
|
12047
|
+
name: 'code*multiInput',
|
|
12048
|
+
label: '店铺编码',
|
|
12049
|
+
type: 'multipleQueryInput'
|
|
12050
|
+
},
|
|
12051
|
+
// { name: 'qp-name-like', label: '店铺名称' },
|
|
12052
|
+
// { name: 'qp-code-like', label: '店铺编码' },
|
|
12053
|
+
{
|
|
11511
12054
|
name: 'qp-conglomerateCode-in',
|
|
11512
12055
|
type: 'select',
|
|
11513
12056
|
label: '归属集团',
|
|
@@ -11608,7 +12151,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11608
12151
|
}
|
|
11609
12152
|
}
|
|
11610
12153
|
}];
|
|
11611
|
-
var
|
|
12154
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
11612
12155
|
querySelectHeadersList: querySelectHeadersList,
|
|
11613
12156
|
extralHeaders: extralHeaders
|
|
11614
12157
|
});
|
|
@@ -11616,21 +12159,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11616
12159
|
pageSize: 5000,
|
|
11617
12160
|
currentPage: 1,
|
|
11618
12161
|
'qp-companyType-eq': '30'
|
|
11619
|
-
}, getQueryHeadersItem(
|
|
12162
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
11620
12163
|
pageSize: 5000,
|
|
11621
12164
|
currentPage: 1,
|
|
11622
12165
|
'qp-companyType-eq': '20'
|
|
11623
|
-
}, getQueryHeadersItem(
|
|
12166
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
11624
12167
|
// pageSize: 5000,
|
|
11625
12168
|
// currentPage: 1,
|
|
11626
12169
|
'qp-status-eq': '1'
|
|
11627
|
-
}, getQueryHeadersItem(
|
|
12170
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
11628
12171
|
pageSize: 5000,
|
|
11629
12172
|
currentPage: 1
|
|
11630
|
-
}, getQueryHeadersItem(
|
|
12173
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
11631
12174
|
pageSize: 5000,
|
|
11632
12175
|
currentPage: 1
|
|
11633
|
-
}, getQueryHeadersItem(
|
|
12176
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
|
|
11634
12177
|
formatSource(x, 0, 2, tableSearchForm);
|
|
11635
12178
|
formatSource(x, 1, 3, tableSearchForm);
|
|
11636
12179
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -11800,7 +12343,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11800
12343
|
},
|
|
11801
12344
|
initialSource: getDictionarySource$1('BUSINESS_StoreType')
|
|
11802
12345
|
}];
|
|
11803
|
-
var
|
|
12346
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
11804
12347
|
querySelectHeadersList: querySelectHeadersList,
|
|
11805
12348
|
extralHeaders: extralHeaders
|
|
11806
12349
|
});
|
|
@@ -11808,13 +12351,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11808
12351
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
11809
12352
|
'qp-realOrg-eq': true,
|
|
11810
12353
|
'qp-status-eq': 10
|
|
11811
|
-
}, getQueryHeadersItem(
|
|
12354
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
11812
12355
|
'qp-status-eq': 10,
|
|
11813
12356
|
'qp-isMain-eq': 1,
|
|
11814
12357
|
'qp-type-in': '1,2'
|
|
11815
|
-
}, getQueryHeadersItem(
|
|
12358
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
11816
12359
|
'qp-status-eq': 1
|
|
11817
|
-
}, getQueryHeadersItem(
|
|
12360
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
|
|
11818
12361
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11819
12362
|
return data['parentCode'] === '0';
|
|
11820
12363
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12049,10 +12592,10 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12049
12592
|
name: 'qp-email-like',
|
|
12050
12593
|
label: '邮箱'
|
|
12051
12594
|
}, {
|
|
12052
|
-
name: 'qp-
|
|
12595
|
+
name: 'qp-phone-like',
|
|
12053
12596
|
label: '手机号'
|
|
12054
12597
|
}];
|
|
12055
|
-
var
|
|
12598
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
12056
12599
|
querySelectHeadersList: querySelectHeadersList,
|
|
12057
12600
|
extralHeaders: extralHeaders
|
|
12058
12601
|
});
|
|
@@ -12060,7 +12603,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12060
12603
|
pageSize: 5000,
|
|
12061
12604
|
currentPage: 1,
|
|
12062
12605
|
'qp-companyType-eq': 20
|
|
12063
|
-
}, getQueryHeadersItem(
|
|
12606
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
|
|
12064
12607
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12065
12608
|
});
|
|
12066
12609
|
modalTableProps = _objectSpread2({
|
|
@@ -12166,16 +12709,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12166
12709
|
name: 'qp-email-like',
|
|
12167
12710
|
label: '邮箱'
|
|
12168
12711
|
}, {
|
|
12169
|
-
name: 'qp-
|
|
12712
|
+
name: 'qp-phone-like',
|
|
12170
12713
|
label: '手机号'
|
|
12171
12714
|
}]);
|
|
12172
|
-
var
|
|
12715
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
12173
12716
|
querySelectHeadersList: querySelectHeadersList,
|
|
12174
12717
|
extralHeaders: extralHeaders
|
|
12175
12718
|
});
|
|
12176
12719
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
12177
12720
|
'orgViewCode': 'administrative-organization-view'
|
|
12178
|
-
}, getQueryHeadersItem(
|
|
12721
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
|
|
12179
12722
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
12180
12723
|
});
|
|
12181
12724
|
modalTableProps = _objectSpread2({
|
|
@@ -12322,17 +12865,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12322
12865
|
name: 'qp-remark-like',
|
|
12323
12866
|
label: '备注'
|
|
12324
12867
|
}];
|
|
12325
|
-
var
|
|
12868
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
12326
12869
|
querySelectHeadersList: querySelectHeadersList,
|
|
12327
12870
|
extralHeaders: extralHeaders
|
|
12328
12871
|
});
|
|
12329
12872
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
12330
12873
|
pageSize: 5000,
|
|
12331
12874
|
currentPage: 1
|
|
12332
|
-
}, getQueryHeadersItem(
|
|
12875
|
+
}, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
12333
12876
|
pageSize: 5000,
|
|
12334
12877
|
currentPage: 1
|
|
12335
|
-
}, getQueryHeadersItem(
|
|
12878
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
12336
12879
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12337
12880
|
formatSource(x, 1, 5, tableSearchForm);
|
|
12338
12881
|
});
|
|
@@ -12502,14 +13045,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12502
13045
|
}
|
|
12503
13046
|
}
|
|
12504
13047
|
}];
|
|
12505
|
-
var
|
|
13048
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
12506
13049
|
querySelectHeadersList: querySelectHeadersList,
|
|
12507
13050
|
extralHeaders: extralHeaders
|
|
12508
13051
|
});
|
|
12509
13052
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
12510
13053
|
pageSize: 5000,
|
|
12511
13054
|
currentPage: 1
|
|
12512
|
-
}, getQueryHeadersItem(
|
|
13055
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
12513
13056
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12514
13057
|
});
|
|
12515
13058
|
modalTableProps = _objectSpread2({
|
|
@@ -12606,7 +13149,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12606
13149
|
}
|
|
12607
13150
|
}
|
|
12608
13151
|
}];
|
|
12609
|
-
var
|
|
13152
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
12610
13153
|
querySelectHeadersList: querySelectHeadersList,
|
|
12611
13154
|
extralHeaders: extralHeaders
|
|
12612
13155
|
});
|
|
@@ -12614,7 +13157,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12614
13157
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12615
13158
|
'qp-realOrg-eq': true,
|
|
12616
13159
|
'qp-status-eq': 10
|
|
12617
|
-
}, getQueryHeadersItem(
|
|
13160
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
12618
13161
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12619
13162
|
});
|
|
12620
13163
|
modalTableProps = _objectSpread2({
|
|
@@ -12720,13 +13263,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12720
13263
|
},
|
|
12721
13264
|
initialSource: nodeType
|
|
12722
13265
|
}];
|
|
12723
|
-
var
|
|
13266
|
+
var _queryHeaderParams18 = getQueryHeadersList({
|
|
12724
13267
|
querySelectHeadersList: querySelectHeadersList,
|
|
12725
13268
|
extralHeaders: extralHeaders
|
|
12726
13269
|
});
|
|
12727
13270
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
12728
13271
|
'qp-status-eq': 10
|
|
12729
|
-
}, getQueryHeadersItem(
|
|
13272
|
+
}, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
12730
13273
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12731
13274
|
});
|
|
12732
13275
|
modalTableProps = _objectSpread2({
|
|
@@ -13052,13 +13595,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13052
13595
|
},
|
|
13053
13596
|
initialSource: nodeType
|
|
13054
13597
|
}];
|
|
13055
|
-
var
|
|
13598
|
+
var _queryHeaderParams19 = getQueryHeadersList({
|
|
13056
13599
|
querySelectHeadersList: querySelectHeadersList,
|
|
13057
13600
|
extralHeaders: extralHeaders
|
|
13058
13601
|
});
|
|
13059
13602
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13060
13603
|
'qp-status-eq': 10
|
|
13061
|
-
}, getQueryHeadersItem(
|
|
13604
|
+
}, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13062
13605
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13063
13606
|
});
|
|
13064
13607
|
modalTableProps = _objectSpread2({
|
|
@@ -14003,9 +14546,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
14003
14546
|
value = _useState8[0],
|
|
14004
14547
|
setValue = _useState8[1];
|
|
14005
14548
|
var _useState9 = useState([]),
|
|
14006
|
-
|
|
14007
|
-
propertyList =
|
|
14008
|
-
setPropertyList =
|
|
14549
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
14550
|
+
propertyList = _useState10[0],
|
|
14551
|
+
setPropertyList = _useState10[1];
|
|
14009
14552
|
useEffect(function () {
|
|
14010
14553
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
14011
14554
|
// type: 1 尺码组; 2 配码组
|
|
@@ -14529,45 +15072,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14529
15072
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14530
15073
|
headers: headers
|
|
14531
15074
|
}).then(/*#__PURE__*/function () {
|
|
14532
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15075
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14533
15076
|
var _ctx$form;
|
|
14534
15077
|
var resData, coverData, data, dataList;
|
|
14535
|
-
return
|
|
14536
|
-
while (1) switch (_context.
|
|
15078
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
15079
|
+
while (1) switch (_context.prev = _context.next) {
|
|
14537
15080
|
case 0:
|
|
14538
15081
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
14539
15082
|
if (!judgeIsRequestSuccess(resData)) {
|
|
14540
|
-
_context.
|
|
15083
|
+
_context.next = 13;
|
|
14541
15084
|
break;
|
|
14542
15085
|
}
|
|
14543
15086
|
data = resData.data;
|
|
14544
15087
|
if (!remoteSource.converter) {
|
|
14545
|
-
_context.
|
|
15088
|
+
_context.next = 9;
|
|
14546
15089
|
break;
|
|
14547
15090
|
}
|
|
14548
|
-
_context.
|
|
15091
|
+
_context.next = 6;
|
|
14549
15092
|
return remoteSource.converter({
|
|
14550
15093
|
data: [data]
|
|
14551
15094
|
});
|
|
14552
|
-
case
|
|
14553
|
-
coverData = _context.
|
|
14554
|
-
_context.
|
|
15095
|
+
case 6:
|
|
15096
|
+
coverData = _context.sent;
|
|
15097
|
+
_context.next = 11;
|
|
14555
15098
|
break;
|
|
14556
|
-
case
|
|
15099
|
+
case 9:
|
|
14557
15100
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14558
15101
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14559
15102
|
return _mapSearchTree(ites);
|
|
14560
15103
|
}) || [];
|
|
14561
|
-
case
|
|
14562
|
-
_context.
|
|
15104
|
+
case 11:
|
|
15105
|
+
_context.next = 14;
|
|
14563
15106
|
break;
|
|
14564
|
-
case
|
|
15107
|
+
case 13:
|
|
14565
15108
|
coverData = [];
|
|
14566
|
-
case
|
|
15109
|
+
case 14:
|
|
14567
15110
|
setTreeData(coverData);
|
|
14568
15111
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
14569
|
-
case
|
|
14570
|
-
|
|
15112
|
+
case 16:
|
|
15113
|
+
case "end":
|
|
15114
|
+
return _context.stop();
|
|
14571
15115
|
}
|
|
14572
15116
|
}, _callee);
|
|
14573
15117
|
}));
|
|
@@ -14871,7 +15415,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
14871
15415
|
return true;
|
|
14872
15416
|
});
|
|
14873
15417
|
|
|
14874
|
-
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n
|
|
15418
|
+
var css_248z$b = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF95;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
14875
15419
|
styleInject(css_248z$b);
|
|
14876
15420
|
|
|
14877
15421
|
var index$2 = (function (props) {
|
|
@@ -18869,38 +19413,38 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18869
19413
|
};
|
|
18870
19414
|
var refs = useRef(null);
|
|
18871
19415
|
var _useState9 = useState(''),
|
|
18872
|
-
|
|
18873
|
-
pagePath =
|
|
18874
|
-
setPagePath =
|
|
19416
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
19417
|
+
pagePath = _useState10[0],
|
|
19418
|
+
setPagePath = _useState10[1];
|
|
18875
19419
|
var _useLocation = useLocation(),
|
|
18876
19420
|
pathname = _useLocation.pathname,
|
|
18877
19421
|
_useLocation$state = _useLocation.state,
|
|
18878
19422
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
18879
|
-
var
|
|
18880
|
-
|
|
18881
|
-
isFullScreen =
|
|
18882
|
-
setIsFnllScreen =
|
|
19423
|
+
var _useState11 = useState(false),
|
|
19424
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19425
|
+
isFullScreen = _useState12[0],
|
|
19426
|
+
setIsFnllScreen = _useState12[1];
|
|
18883
19427
|
// @ts-nocheck
|
|
18884
19428
|
var value = props;
|
|
18885
19429
|
var _props$fields = props.fields,
|
|
18886
19430
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
18887
|
-
var
|
|
18888
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
18889
|
-
showColumn = _useState12[0],
|
|
18890
|
-
setShowColumns = _useState12[1]; // 列字段
|
|
18891
|
-
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
18892
|
-
var _useState13 = useState(originSearchFields),
|
|
19431
|
+
var _useState13 = useState([]),
|
|
18893
19432
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
var
|
|
19433
|
+
showColumn = _useState14[0],
|
|
19434
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
19435
|
+
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19436
|
+
var _useState15 = useState(originSearchFields),
|
|
18897
19437
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
var _useState17 = useState(
|
|
19438
|
+
showSearchFields = _useState16[0],
|
|
19439
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
19440
|
+
var _useState17 = useState([]),
|
|
18901
19441
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
18902
|
-
|
|
18903
|
-
|
|
19442
|
+
showExportColumn = _useState18[0],
|
|
19443
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
19444
|
+
var _useState19 = useState(''),
|
|
19445
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
19446
|
+
height = _useState20[0],
|
|
19447
|
+
setHeight = _useState20[1];
|
|
18904
19448
|
var sortTableRef = useRef(null);
|
|
18905
19449
|
var searchTableRef = useRef(null);
|
|
18906
19450
|
var exportTableRef = useRef(null);
|
|
@@ -19948,19 +20492,22 @@ function outLogin(_x) {
|
|
|
19948
20492
|
return _outLogin.apply(this, arguments);
|
|
19949
20493
|
}
|
|
19950
20494
|
function _outLogin() {
|
|
19951
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20495
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19952
20496
|
var res;
|
|
19953
|
-
return
|
|
19954
|
-
while (1) switch (_context.
|
|
20497
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20498
|
+
while (1) switch (_context.prev = _context.next) {
|
|
19955
20499
|
case 0:
|
|
19956
|
-
_context.
|
|
20500
|
+
_context.next = 2;
|
|
19957
20501
|
return requestUtil({
|
|
19958
20502
|
url: '/user/web/loginOut',
|
|
19959
20503
|
method: 'GET'
|
|
19960
20504
|
});
|
|
19961
|
-
case
|
|
19962
|
-
res = _context.
|
|
19963
|
-
return _context.
|
|
20505
|
+
case 2:
|
|
20506
|
+
res = _context.sent;
|
|
20507
|
+
return _context.abrupt("return", res);
|
|
20508
|
+
case 4:
|
|
20509
|
+
case "end":
|
|
20510
|
+
return _context.stop();
|
|
19964
20511
|
}
|
|
19965
20512
|
}, _callee);
|
|
19966
20513
|
}));
|
|
@@ -20087,20 +20634,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20087
20634
|
});
|
|
20088
20635
|
};
|
|
20089
20636
|
var loginOut = /*#__PURE__*/function () {
|
|
20090
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20637
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20091
20638
|
var sessionId;
|
|
20092
|
-
return
|
|
20093
|
-
while (1) switch (_context.
|
|
20639
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20640
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20094
20641
|
case 0:
|
|
20095
|
-
_context.
|
|
20642
|
+
_context.next = 2;
|
|
20096
20643
|
return getSessionId();
|
|
20097
|
-
case
|
|
20098
|
-
sessionId = _context.
|
|
20099
|
-
_context.
|
|
20644
|
+
case 2:
|
|
20645
|
+
sessionId = _context.sent;
|
|
20646
|
+
_context.next = 5;
|
|
20100
20647
|
return outLogin({
|
|
20101
20648
|
sessionId: sessionId
|
|
20102
20649
|
});
|
|
20103
|
-
case
|
|
20650
|
+
case 5:
|
|
20104
20651
|
// @ts-ignore
|
|
20105
20652
|
if (BUILD_TYPE) {
|
|
20106
20653
|
message$1.success('退出登录成功');
|
|
@@ -20110,8 +20657,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
20110
20657
|
} else {
|
|
20111
20658
|
setLoginOutPath();
|
|
20112
20659
|
}
|
|
20113
|
-
case
|
|
20114
|
-
|
|
20660
|
+
case 6:
|
|
20661
|
+
case "end":
|
|
20662
|
+
return _context.stop();
|
|
20115
20663
|
}
|
|
20116
20664
|
}, _callee);
|
|
20117
20665
|
}));
|
|
@@ -20198,15 +20746,18 @@ function getStoreByName(_x) {
|
|
|
20198
20746
|
return _getStoreByName.apply(this, arguments);
|
|
20199
20747
|
}
|
|
20200
20748
|
function _getStoreByName() {
|
|
20201
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
20202
|
-
return
|
|
20203
|
-
while (1) switch (_context.
|
|
20749
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
20750
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20751
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20204
20752
|
case 0:
|
|
20205
|
-
return _context.
|
|
20753
|
+
return _context.abrupt("return", requestUtil({
|
|
20206
20754
|
url: '/store-house/orgViewNode/listNoPage',
|
|
20207
20755
|
method: 'GET',
|
|
20208
20756
|
params: _objectSpread2({}, params)
|
|
20209
20757
|
}));
|
|
20758
|
+
case 1:
|
|
20759
|
+
case "end":
|
|
20760
|
+
return _context.stop();
|
|
20210
20761
|
}
|
|
20211
20762
|
}, _callee);
|
|
20212
20763
|
}));
|
|
@@ -20241,33 +20792,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20241
20792
|
openSelect = _useState8[0],
|
|
20242
20793
|
setOpenSelect = _useState8[1];
|
|
20243
20794
|
var _useState9 = useState([]),
|
|
20244
|
-
|
|
20245
|
-
options =
|
|
20246
|
-
setOptions =
|
|
20247
|
-
var
|
|
20248
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
20249
|
-
rescouse = _useState10[0],
|
|
20250
|
-
setRescouse = _useState10[1];
|
|
20251
|
-
var _useState11 = useState(''),
|
|
20795
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
20796
|
+
options = _useState10[0],
|
|
20797
|
+
setOptions = _useState10[1];
|
|
20798
|
+
var _useState11 = useState([]),
|
|
20252
20799
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
20253
|
-
|
|
20254
|
-
|
|
20255
|
-
var _useState13 = useState(
|
|
20800
|
+
rescouse = _useState12[0],
|
|
20801
|
+
setRescouse = _useState12[1];
|
|
20802
|
+
var _useState13 = useState(''),
|
|
20803
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
20804
|
+
searchValue = _useState14[0],
|
|
20805
|
+
setSearchValue = _useState14[1];
|
|
20806
|
+
var _useState15 = useState([{
|
|
20256
20807
|
label: name,
|
|
20257
20808
|
value: code
|
|
20258
20809
|
}]),
|
|
20259
|
-
|
|
20260
|
-
store =
|
|
20261
|
-
setStore =
|
|
20810
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
20811
|
+
store = _useState16[0],
|
|
20812
|
+
setStore = _useState16[1];
|
|
20262
20813
|
function fetchUserList(_x, _x2) {
|
|
20263
20814
|
return _fetchUserList.apply(this, arguments);
|
|
20264
20815
|
}
|
|
20265
20816
|
function _fetchUserList() {
|
|
20266
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
20267
|
-
return
|
|
20268
|
-
while (1) switch (_context3.
|
|
20817
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
20818
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
20819
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
20269
20820
|
case 0:
|
|
20270
|
-
return _context3.
|
|
20821
|
+
return _context3.abrupt("return", getStoreByName({
|
|
20271
20822
|
orgName: storeName ? storeName : undefined,
|
|
20272
20823
|
platCompanyCode: init ? undefined : key,
|
|
20273
20824
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -20286,6 +20837,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20286
20837
|
};
|
|
20287
20838
|
});
|
|
20288
20839
|
}));
|
|
20840
|
+
case 1:
|
|
20841
|
+
case "end":
|
|
20842
|
+
return _context3.stop();
|
|
20289
20843
|
}
|
|
20290
20844
|
}, _callee3);
|
|
20291
20845
|
}));
|
|
@@ -20308,19 +20862,20 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20308
20862
|
return debounce$1(loadOptions, debounceTimeout);
|
|
20309
20863
|
}, [debounceTimeout, key]);
|
|
20310
20864
|
var changeInput = /*#__PURE__*/function () {
|
|
20311
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
20865
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
20312
20866
|
var res;
|
|
20313
|
-
return
|
|
20314
|
-
while (1) switch (_context.
|
|
20867
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20868
|
+
while (1) switch (_context.prev = _context.next) {
|
|
20315
20869
|
case 0:
|
|
20316
|
-
_context.
|
|
20870
|
+
_context.next = 2;
|
|
20317
20871
|
return debounceFetcher(str);
|
|
20318
|
-
case
|
|
20319
|
-
res = _context.
|
|
20872
|
+
case 2:
|
|
20873
|
+
res = _context.sent;
|
|
20320
20874
|
setOptions(res);
|
|
20321
20875
|
setRescouse(res);
|
|
20322
|
-
case
|
|
20323
|
-
|
|
20876
|
+
case 5:
|
|
20877
|
+
case "end":
|
|
20878
|
+
return _context.stop();
|
|
20324
20879
|
}
|
|
20325
20880
|
}, _callee);
|
|
20326
20881
|
}));
|
|
@@ -20329,15 +20884,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20329
20884
|
};
|
|
20330
20885
|
}();
|
|
20331
20886
|
useEffect(function () {
|
|
20332
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
20887
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
20333
20888
|
var res;
|
|
20334
|
-
return
|
|
20335
|
-
while (1) switch (_context2.
|
|
20889
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
20890
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
20336
20891
|
case 0:
|
|
20337
|
-
_context2.
|
|
20892
|
+
_context2.next = 2;
|
|
20338
20893
|
return fetchUserList(undefined, true);
|
|
20339
|
-
case
|
|
20340
|
-
res = _context2.
|
|
20894
|
+
case 2:
|
|
20895
|
+
res = _context2.sent;
|
|
20341
20896
|
res.map(function (item, indexNumber) {
|
|
20342
20897
|
if (item.label === name) {
|
|
20343
20898
|
setIndex(indexNumber);
|
|
@@ -20353,8 +20908,9 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
20353
20908
|
});
|
|
20354
20909
|
setOptions(res);
|
|
20355
20910
|
setRescouse(res);
|
|
20356
|
-
case
|
|
20357
|
-
|
|
20911
|
+
case 6:
|
|
20912
|
+
case "end":
|
|
20913
|
+
return _context2.stop();
|
|
20358
20914
|
}
|
|
20359
20915
|
}, _callee2);
|
|
20360
20916
|
}))();
|
|
@@ -21403,25 +21959,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21403
21959
|
currentOneLevel = _useState8[0],
|
|
21404
21960
|
setCurrentOneLevel = _useState8[1];
|
|
21405
21961
|
var _useState9 = useState([]),
|
|
21406
|
-
|
|
21407
|
-
SearhData =
|
|
21408
|
-
setSearchMenuData =
|
|
21409
|
-
var
|
|
21410
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
21411
|
-
rightMenuHeight = _useState10[0],
|
|
21412
|
-
setHeight = _useState10[1];
|
|
21413
|
-
var _useState11 = useState(900),
|
|
21962
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
21963
|
+
SearhData = _useState10[0],
|
|
21964
|
+
setSearchMenuData = _useState10[1];
|
|
21965
|
+
var _useState11 = useState(600),
|
|
21414
21966
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
var _useState13 = useState(
|
|
21967
|
+
rightMenuHeight = _useState12[0],
|
|
21968
|
+
setHeight = _useState12[1];
|
|
21969
|
+
var _useState13 = useState(900),
|
|
21418
21970
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
21419
|
-
|
|
21420
|
-
|
|
21971
|
+
drawHeight = _useState14[0],
|
|
21972
|
+
setDrawHeight = _useState14[1];
|
|
21421
21973
|
var _useState15 = useState(false),
|
|
21422
21974
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
21423
|
-
|
|
21424
|
-
|
|
21975
|
+
moreBtnShow = _useState16[0],
|
|
21976
|
+
setMoreBtnShow = _useState16[1];
|
|
21977
|
+
var _useState17 = useState(false),
|
|
21978
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
21979
|
+
showScroll = _useState18[0],
|
|
21980
|
+
setShowScroll = _useState18[1];
|
|
21425
21981
|
useEffect(function () {
|
|
21426
21982
|
var _originRoutes$find;
|
|
21427
21983
|
getMenuContentHeight();
|
|
@@ -23032,11 +23588,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23032
23588
|
},
|
|
23033
23589
|
menu: {
|
|
23034
23590
|
request: function () {
|
|
23035
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
23036
|
-
return
|
|
23037
|
-
while (1) switch (_context.
|
|
23591
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
23592
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23593
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23038
23594
|
case 0:
|
|
23039
|
-
return _context.
|
|
23595
|
+
return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
23596
|
+
case 1:
|
|
23597
|
+
case "end":
|
|
23598
|
+
return _context.stop();
|
|
23040
23599
|
}
|
|
23041
23600
|
}, _callee);
|
|
23042
23601
|
}));
|
|
@@ -23441,31 +24000,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
23441
24000
|
multiTableData = _useState8[0],
|
|
23442
24001
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
23443
24002
|
var _useState9 = useState(10),
|
|
23444
|
-
|
|
23445
|
-
viewCount =
|
|
23446
|
-
setViewCount =
|
|
24003
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
24004
|
+
viewCount = _useState10[0],
|
|
24005
|
+
setViewCount = _useState10[1]; //虚拟表格每次渲染数量
|
|
23447
24006
|
var itemWidth = 100; // 表格每一项宽度
|
|
23448
|
-
var
|
|
23449
|
-
|
|
23450
|
-
realColHeaderWidth =
|
|
23451
|
-
setLeftWidth =
|
|
24007
|
+
var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24008
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24009
|
+
realColHeaderWidth = _useState12[0],
|
|
24010
|
+
setLeftWidth = _useState12[1];
|
|
23452
24011
|
var viewPort = useRef(null);
|
|
23453
24012
|
var topScrollBar = useRef(null);
|
|
23454
24013
|
var leftTableRef = useRef(null);
|
|
23455
24014
|
//起始渲染item
|
|
23456
|
-
var
|
|
23457
|
-
|
|
23458
|
-
startIndex =
|
|
23459
|
-
setStartIndex =
|
|
24015
|
+
var _useState13 = useState(0),
|
|
24016
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24017
|
+
startIndex = _useState14[0],
|
|
24018
|
+
setStartIndex = _useState14[1];
|
|
23460
24019
|
//结束渲染item
|
|
23461
24020
|
var endIndex = useMemo(function () {
|
|
23462
24021
|
return startIndex + viewCount;
|
|
23463
24022
|
}, [startIndex, viewCount]);
|
|
23464
24023
|
//表格偏移量
|
|
23465
|
-
var
|
|
23466
|
-
|
|
23467
|
-
offsetWidth =
|
|
23468
|
-
setOffset =
|
|
24024
|
+
var _useState15 = useState(0),
|
|
24025
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
24026
|
+
offsetWidth = _useState16[0],
|
|
24027
|
+
setOffset = _useState16[1];
|
|
23469
24028
|
useEffect(function () {
|
|
23470
24029
|
setTimeout(function () {
|
|
23471
24030
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -30769,11 +31328,11 @@ var valueType = {
|
|
|
30769
31328
|
};
|
|
30770
31329
|
|
|
30771
31330
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30772
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
30773
|
-
return
|
|
30774
|
-
while (1) switch (_context.
|
|
31331
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
31332
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31333
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30775
31334
|
case 0:
|
|
30776
|
-
_context.
|
|
31335
|
+
_context.next = 2;
|
|
30777
31336
|
return request$2({
|
|
30778
31337
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
30779
31338
|
converter: function converter(_ref2) {
|
|
@@ -30786,8 +31345,11 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
30786
31345
|
});
|
|
30787
31346
|
}
|
|
30788
31347
|
});
|
|
30789
|
-
case
|
|
30790
|
-
return _context.
|
|
31348
|
+
case 2:
|
|
31349
|
+
return _context.abrupt("return", _context.sent);
|
|
31350
|
+
case 3:
|
|
31351
|
+
case "end":
|
|
31352
|
+
return _context.stop();
|
|
30791
31353
|
}
|
|
30792
31354
|
}, _callee);
|
|
30793
31355
|
}));
|
|
@@ -30834,12 +31396,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30834
31396
|
value: false
|
|
30835
31397
|
}];
|
|
30836
31398
|
var ref = useRef();
|
|
30837
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
30838
|
-
var _ref$current, source
|
|
30839
|
-
return
|
|
30840
|
-
while (1) switch (_context.
|
|
31399
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31400
|
+
var _ref$current, source;
|
|
31401
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31402
|
+
while (1) switch (_context.prev = _context.next) {
|
|
30841
31403
|
case 0:
|
|
30842
|
-
_context.
|
|
31404
|
+
_context.next = 2;
|
|
30843
31405
|
return setIsShowAndType(function (prev) {
|
|
30844
31406
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
30845
31407
|
return {
|
|
@@ -30850,39 +31412,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30850
31412
|
}
|
|
30851
31413
|
return prev;
|
|
30852
31414
|
});
|
|
30853
|
-
case
|
|
31415
|
+
case 2:
|
|
30854
31416
|
if (!record.dictionaryCode) {
|
|
30855
|
-
_context.
|
|
31417
|
+
_context.next = 17;
|
|
30856
31418
|
break;
|
|
30857
31419
|
}
|
|
30858
31420
|
if (!(record.choiceType == 20)) {
|
|
30859
|
-
_context.
|
|
31421
|
+
_context.next = 7;
|
|
30860
31422
|
break;
|
|
30861
31423
|
}
|
|
30862
|
-
|
|
30863
|
-
_context.
|
|
31424
|
+
_context.t0 = getDictionarySource(record.dictionaryCode);
|
|
31425
|
+
_context.next = 15;
|
|
30864
31426
|
break;
|
|
30865
|
-
case
|
|
31427
|
+
case 7:
|
|
30866
31428
|
if (!(record.choiceType == 30)) {
|
|
30867
|
-
_context.
|
|
31429
|
+
_context.next = 13;
|
|
30868
31430
|
break;
|
|
30869
31431
|
}
|
|
30870
|
-
_context.
|
|
31432
|
+
_context.next = 10;
|
|
30871
31433
|
return getDynamicDict(record.dictionaryCode);
|
|
30872
|
-
case
|
|
30873
|
-
|
|
30874
|
-
_context.
|
|
31434
|
+
case 10:
|
|
31435
|
+
_context.t1 = _context.sent;
|
|
31436
|
+
_context.next = 14;
|
|
30875
31437
|
break;
|
|
30876
|
-
case
|
|
30877
|
-
|
|
30878
|
-
case
|
|
30879
|
-
|
|
30880
|
-
case
|
|
30881
|
-
source =
|
|
31438
|
+
case 13:
|
|
31439
|
+
_context.t1 = [];
|
|
31440
|
+
case 14:
|
|
31441
|
+
_context.t0 = _context.t1;
|
|
31442
|
+
case 15:
|
|
31443
|
+
source = _context.t0;
|
|
30882
31444
|
// @ts-ignore
|
|
30883
31445
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
30884
|
-
case
|
|
30885
|
-
|
|
31446
|
+
case 17:
|
|
31447
|
+
case "end":
|
|
31448
|
+
return _context.stop();
|
|
30886
31449
|
}
|
|
30887
31450
|
}, _callee);
|
|
30888
31451
|
})));
|
|
@@ -30947,10 +31510,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30947
31510
|
source: {
|
|
30948
31511
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30949
31512
|
type: function () {
|
|
30950
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31513
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30951
31514
|
var form, values, name, relates, source;
|
|
30952
|
-
return
|
|
30953
|
-
while (1) switch (_context2.
|
|
31515
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31516
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
30954
31517
|
case 0:
|
|
30955
31518
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
30956
31519
|
if (values[0]) {
|
|
@@ -30959,18 +31522,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30959
31522
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
30960
31523
|
}
|
|
30961
31524
|
if (!values[1]) {
|
|
30962
|
-
_context2.
|
|
31525
|
+
_context2.next = 9;
|
|
30963
31526
|
break;
|
|
30964
31527
|
}
|
|
30965
|
-
_context2.
|
|
31528
|
+
_context2.next = 5;
|
|
30966
31529
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
30967
|
-
case
|
|
30968
|
-
source = _context2.
|
|
31530
|
+
case 5:
|
|
31531
|
+
source = _context2.sent;
|
|
30969
31532
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
30970
31533
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
30971
31534
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
30972
|
-
case
|
|
30973
|
-
|
|
31535
|
+
case 9:
|
|
31536
|
+
case "end":
|
|
31537
|
+
return _context2.stop();
|
|
30974
31538
|
}
|
|
30975
31539
|
}, _callee2);
|
|
30976
31540
|
}));
|
|
@@ -31426,25 +31990,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31426
31990
|
source: {
|
|
31427
31991
|
relates: ['choiceType', 'inputType'],
|
|
31428
31992
|
type: function () {
|
|
31429
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
31993
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
31430
31994
|
var values, name, form, source;
|
|
31431
|
-
return
|
|
31432
|
-
while (1) switch (_context3.
|
|
31995
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31996
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
31433
31997
|
case 0:
|
|
31434
|
-
values =
|
|
31998
|
+
values = _ref10.values, name = _ref10.name, form = _ref10.form;
|
|
31435
31999
|
if (values[1] === 40) {
|
|
31436
32000
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
31437
32001
|
form.setFieldVisible(name, false);
|
|
31438
32002
|
}
|
|
31439
32003
|
if (!(values[0] === 30)) {
|
|
31440
|
-
_context3.
|
|
32004
|
+
_context3.next = 10;
|
|
31441
32005
|
break;
|
|
31442
32006
|
}
|
|
31443
|
-
_context3.
|
|
32007
|
+
_context3.next = 5;
|
|
31444
32008
|
return request$2({
|
|
31445
32009
|
url: '/basic/dictDynamicItem/queryList',
|
|
31446
|
-
converter: function converter(
|
|
31447
|
-
var data =
|
|
32010
|
+
converter: function converter(_ref11) {
|
|
32011
|
+
var data = _ref11.data;
|
|
31448
32012
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31449
32013
|
return {
|
|
31450
32014
|
text: d.dictCode,
|
|
@@ -31453,16 +32017,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31453
32017
|
});
|
|
31454
32018
|
}
|
|
31455
32019
|
});
|
|
31456
|
-
case
|
|
31457
|
-
source = _context3.
|
|
32020
|
+
case 5:
|
|
32021
|
+
source = _context3.sent;
|
|
31458
32022
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
31459
32023
|
form.setFieldVisible(name, true);
|
|
31460
|
-
_context3.
|
|
32024
|
+
_context3.next = 11;
|
|
31461
32025
|
break;
|
|
31462
|
-
case
|
|
32026
|
+
case 10:
|
|
31463
32027
|
form.setFieldVisible(name, false);
|
|
31464
|
-
case
|
|
31465
|
-
|
|
32028
|
+
case 11:
|
|
32029
|
+
case "end":
|
|
32030
|
+
return _context3.stop();
|
|
31466
32031
|
}
|
|
31467
32032
|
}, _callee3);
|
|
31468
32033
|
}));
|
|
@@ -31477,8 +32042,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31477
32042
|
name: 'enumeration',
|
|
31478
32043
|
label: '维护自定义选项',
|
|
31479
32044
|
field: {
|
|
31480
|
-
type: function type(
|
|
31481
|
-
var form =
|
|
32045
|
+
type: function type(_ref12) {
|
|
32046
|
+
var form = _ref12.form;
|
|
31482
32047
|
return /*#__PURE__*/React$1.createElement(Button, {
|
|
31483
32048
|
type: 'link',
|
|
31484
32049
|
onClick: function onClick() {
|
|
@@ -31504,10 +32069,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31504
32069
|
dependency: {
|
|
31505
32070
|
source: {
|
|
31506
32071
|
relates: ['choiceType'],
|
|
31507
|
-
type: function type(
|
|
31508
|
-
var values =
|
|
31509
|
-
name =
|
|
31510
|
-
form =
|
|
32072
|
+
type: function type(_ref13) {
|
|
32073
|
+
var values = _ref13.values,
|
|
32074
|
+
name = _ref13.name,
|
|
32075
|
+
form = _ref13.form;
|
|
31511
32076
|
if (values[0] === 10) {
|
|
31512
32077
|
form.setFieldVisible(name, true);
|
|
31513
32078
|
} else {
|
|
@@ -31523,10 +32088,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31523
32088
|
dependency: {
|
|
31524
32089
|
visible: {
|
|
31525
32090
|
relates: ['choiceType'],
|
|
31526
|
-
type: function type(
|
|
31527
|
-
var name =
|
|
31528
|
-
values =
|
|
31529
|
-
form =
|
|
32091
|
+
type: function type(_ref14) {
|
|
32092
|
+
var name = _ref14.name,
|
|
32093
|
+
values = _ref14.values,
|
|
32094
|
+
form = _ref14.form;
|
|
31530
32095
|
if (values[0] == 330) {
|
|
31531
32096
|
form.setFieldVisible(name, true);
|
|
31532
32097
|
} else {
|
|
@@ -31550,8 +32115,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31550
32115
|
params: {
|
|
31551
32116
|
'qp-businessType-eq': record.businessType
|
|
31552
32117
|
},
|
|
31553
|
-
converter: function converter(
|
|
31554
|
-
var data =
|
|
32118
|
+
converter: function converter(_ref15) {
|
|
32119
|
+
var data = _ref15.data;
|
|
31555
32120
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31556
32121
|
return {
|
|
31557
32122
|
text: d.name,
|
|
@@ -31591,8 +32156,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31591
32156
|
'qp-businessType-eq': record.businessType,
|
|
31592
32157
|
'qp-status-eq': 1
|
|
31593
32158
|
},
|
|
31594
|
-
converter: function converter(
|
|
31595
|
-
var data =
|
|
32159
|
+
converter: function converter(_ref16) {
|
|
32160
|
+
var data = _ref16.data;
|
|
31596
32161
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31597
32162
|
var _d$code;
|
|
31598
32163
|
return {
|
|
@@ -31620,8 +32185,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31620
32185
|
remoteSource: {
|
|
31621
32186
|
url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
|
|
31622
32187
|
method: 'get',
|
|
31623
|
-
converter: function converter(
|
|
31624
|
-
var data =
|
|
32188
|
+
converter: function converter(_ref17) {
|
|
32189
|
+
var data = _ref17.data;
|
|
31625
32190
|
if (lineDetail.moduleType == 1) {
|
|
31626
32191
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
31627
32192
|
return {
|
|
@@ -31647,16 +32212,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31647
32212
|
width: 900,
|
|
31648
32213
|
maskClosable: false,
|
|
31649
32214
|
onOk: function () {
|
|
31650
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32215
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31651
32216
|
var _ref$current4, _res$editableStatus;
|
|
31652
32217
|
var res, _res$defaultValue;
|
|
31653
|
-
return
|
|
31654
|
-
while (1) switch (_context4.
|
|
32218
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32219
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
31655
32220
|
case 0:
|
|
31656
|
-
_context4.
|
|
32221
|
+
_context4.next = 2;
|
|
31657
32222
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
31658
|
-
case
|
|
31659
|
-
res = _context4.
|
|
32223
|
+
case 2:
|
|
32224
|
+
res = _context4.sent;
|
|
31660
32225
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
31661
32226
|
res.fieldGroup = record.fieldGroup;
|
|
31662
32227
|
res.businessType = record.businessType;
|
|
@@ -31683,7 +32248,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31683
32248
|
delete res.formula;
|
|
31684
32249
|
delete res.showValue;
|
|
31685
32250
|
if (!(mode === 'create')) {
|
|
31686
|
-
_context4.
|
|
32251
|
+
_context4.next = 18;
|
|
31687
32252
|
break;
|
|
31688
32253
|
}
|
|
31689
32254
|
request$2({
|
|
@@ -31695,8 +32260,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31695
32260
|
onParentOk();
|
|
31696
32261
|
}
|
|
31697
32262
|
});
|
|
31698
|
-
return _context4.
|
|
31699
|
-
case
|
|
32263
|
+
return _context4.abrupt("return");
|
|
32264
|
+
case 18:
|
|
31700
32265
|
request$2({
|
|
31701
32266
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
31702
32267
|
method: 'PATCH',
|
|
@@ -31706,8 +32271,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31706
32271
|
onParentOk();
|
|
31707
32272
|
}
|
|
31708
32273
|
});
|
|
31709
|
-
case
|
|
31710
|
-
|
|
32274
|
+
case 19:
|
|
32275
|
+
case "end":
|
|
32276
|
+
return _context4.stop();
|
|
31711
32277
|
}
|
|
31712
32278
|
}, _callee4);
|
|
31713
32279
|
}));
|
|
@@ -32163,21 +32729,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
32163
32729
|
jsonEditorVal = _useState8[0],
|
|
32164
32730
|
setJsonEditorVal = _useState8[1];
|
|
32165
32731
|
var _useState9 = useState({}),
|
|
32166
|
-
|
|
32167
|
-
moduleParams =
|
|
32168
|
-
setModuleParams =
|
|
32169
|
-
var
|
|
32170
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
32171
|
-
activeKey = _useState10[0],
|
|
32172
|
-
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32173
|
-
var _useState11 = useState({}),
|
|
32732
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
32733
|
+
moduleParams = _useState10[0],
|
|
32734
|
+
setModuleParams = _useState10[1];
|
|
32735
|
+
var _useState11 = useState('main'),
|
|
32174
32736
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
var _useState13 = useState(
|
|
32737
|
+
activeKey = _useState12[0],
|
|
32738
|
+
setActiveKey = _useState12[1]; //默认详情页配置
|
|
32739
|
+
var _useState13 = useState({}),
|
|
32178
32740
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
32179
|
-
|
|
32180
|
-
|
|
32741
|
+
tablesConfigParams = _useState14[0],
|
|
32742
|
+
setTablesConfigParams = _useState14[1];
|
|
32743
|
+
var _useState15 = useState([]),
|
|
32744
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
32745
|
+
tableJsonEditorValsArr = _useState16[0],
|
|
32746
|
+
setTableJsonEditorValsArr = _useState16[1];
|
|
32181
32747
|
useEffect(function () {
|
|
32182
32748
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
32183
32749
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -32553,11 +33119,11 @@ function getMetaData(_x) {
|
|
|
32553
33119
|
|
|
32554
33120
|
// 获取数据
|
|
32555
33121
|
function _getMetaData() {
|
|
32556
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
32557
|
-
return
|
|
32558
|
-
while (1) switch (_context.
|
|
33122
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
33123
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33124
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32559
33125
|
case 0:
|
|
32560
|
-
return _context.
|
|
33126
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
32561
33127
|
request$3('/basic/entityProperty/listNoPage', {
|
|
32562
33128
|
params: {
|
|
32563
33129
|
'qp-entityId-eq': id
|
|
@@ -32569,6 +33135,9 @@ function _getMetaData() {
|
|
|
32569
33135
|
reject([]);
|
|
32570
33136
|
});
|
|
32571
33137
|
}));
|
|
33138
|
+
case 1:
|
|
33139
|
+
case "end":
|
|
33140
|
+
return _context.stop();
|
|
32572
33141
|
}
|
|
32573
33142
|
}, _callee);
|
|
32574
33143
|
}));
|
|
@@ -32772,11 +33341,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32772
33341
|
tableState = _useState4[0],
|
|
32773
33342
|
setTableState = _useState4[1];
|
|
32774
33343
|
var handleOpen = /*#__PURE__*/function () {
|
|
32775
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33344
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32776
33345
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32777
33346
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32778
|
-
return
|
|
32779
|
-
while (1) switch (_context.
|
|
33347
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33348
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32780
33349
|
case 0:
|
|
32781
33350
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
32782
33351
|
isSearchForm: props.isSearchForm,
|
|
@@ -32784,16 +33353,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32784
33353
|
searchFormData: searchFormData
|
|
32785
33354
|
});
|
|
32786
33355
|
if (requestConfigNew) {
|
|
32787
|
-
_context.
|
|
33356
|
+
_context.next = 3;
|
|
32788
33357
|
break;
|
|
32789
33358
|
}
|
|
32790
|
-
return _context.
|
|
32791
|
-
case
|
|
33359
|
+
return _context.abrupt("return");
|
|
33360
|
+
case 3:
|
|
32792
33361
|
metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
|
|
32793
|
-
_context.
|
|
33362
|
+
_context.next = 6;
|
|
32794
33363
|
return getMetaData(metaDataId);
|
|
32795
|
-
case
|
|
32796
|
-
metaData = _context.
|
|
33364
|
+
case 6:
|
|
33365
|
+
metaData = _context.sent;
|
|
32797
33366
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
32798
33367
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
32799
33368
|
})) || [];
|
|
@@ -32833,8 +33402,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32833
33402
|
// @ts-ignore
|
|
32834
33403
|
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
|
|
32835
33404
|
}
|
|
32836
|
-
case
|
|
32837
|
-
|
|
33405
|
+
case 14:
|
|
33406
|
+
case "end":
|
|
33407
|
+
return _context.stop();
|
|
32838
33408
|
}
|
|
32839
33409
|
}, _callee);
|
|
32840
33410
|
}));
|
|
@@ -32937,7 +33507,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32937
33507
|
}, [requestConfig, tableState.columns]);
|
|
32938
33508
|
var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
|
|
32939
33509
|
var handleOk = function handleOk(rowData) {
|
|
32940
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33510
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
|
|
32941
33511
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
32942
33512
|
//多选数据处理
|
|
32943
33513
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -32948,9 +33518,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32948
33518
|
var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
|
|
32949
33519
|
var realSelectedRows = selectedRows;
|
|
32950
33520
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
32951
|
-
var _queryTableRef$
|
|
33521
|
+
var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
|
|
32952
33522
|
// @ts-ignore
|
|
32953
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33523
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
|
|
32954
33524
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
32955
33525
|
return selectedKesys.includes(s[rowKey]);
|
|
32956
33526
|
});
|
|
@@ -32983,10 +33553,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32983
33553
|
});
|
|
32984
33554
|
}
|
|
32985
33555
|
mappings.map(function (item) {
|
|
32986
|
-
var _props$
|
|
32987
|
-
if (((_props$
|
|
32988
|
-
var _props$
|
|
32989
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33556
|
+
var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
|
|
33557
|
+
if (((_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel]) {
|
|
33558
|
+
var _props$customSelector14, _props$customSelector15;
|
|
33559
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
|
|
32990
33560
|
}
|
|
32991
33561
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
32992
33562
|
});
|
|
@@ -33041,10 +33611,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33041
33611
|
}
|
|
33042
33612
|
props.onCancel();
|
|
33043
33613
|
//@ts-ignore
|
|
33044
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33614
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
|
|
33045
33615
|
};
|
|
33046
33616
|
var config = useMemo(function () {
|
|
33047
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33617
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
|
|
33048
33618
|
var returnConfig = {
|
|
33049
33619
|
size: 'small',
|
|
33050
33620
|
needPageHeader: false,
|
|
@@ -33053,7 +33623,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33053
33623
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
33054
33624
|
selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
|
|
33055
33625
|
return v.key || v;
|
|
33056
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33626
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))
|
|
33057
33627
|
} : false,
|
|
33058
33628
|
remoteDataSource: remoteDataSource,
|
|
33059
33629
|
fields: tableState.fields,
|
|
@@ -33061,8 +33631,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33061
33631
|
rowKey: rowKey,
|
|
33062
33632
|
tableProps: !isView && {
|
|
33063
33633
|
rowClassName: function rowClassName(record) {
|
|
33064
|
-
var _props$
|
|
33065
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33634
|
+
var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
|
|
33635
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
33066
33636
|
},
|
|
33067
33637
|
onRow: function onRow(record) {
|
|
33068
33638
|
return {
|
|
@@ -33107,10 +33677,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
33107
33677
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
33108
33678
|
type: "default",
|
|
33109
33679
|
onClick: function onClick() {
|
|
33110
|
-
var _queryTableRef$
|
|
33680
|
+
var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
|
|
33111
33681
|
props.onCancel();
|
|
33112
33682
|
//@ts-ignore
|
|
33113
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33683
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
|
|
33114
33684
|
}
|
|
33115
33685
|
}, "\u53D6\u6D88"))));
|
|
33116
33686
|
});
|
|
@@ -33334,19 +33904,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33334
33904
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33335
33905
|
handSource = _useState2[0],
|
|
33336
33906
|
setHandSource = _useState2[1];
|
|
33337
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
33907
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33338
33908
|
var resData, data;
|
|
33339
|
-
return
|
|
33340
|
-
while (1) switch (_context.
|
|
33909
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33910
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33341
33911
|
case 0:
|
|
33342
33912
|
if (!(!source && initRequestSource)) {
|
|
33343
|
-
_context.
|
|
33913
|
+
_context.next = 6;
|
|
33344
33914
|
break;
|
|
33345
33915
|
}
|
|
33346
|
-
_context.
|
|
33916
|
+
_context.next = 3;
|
|
33347
33917
|
return initRequestSource();
|
|
33348
|
-
case
|
|
33349
|
-
resData = _context.
|
|
33918
|
+
case 3:
|
|
33919
|
+
resData = _context.sent;
|
|
33350
33920
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
33351
33921
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
33352
33922
|
label: item.text,
|
|
@@ -33354,8 +33924,9 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
33354
33924
|
});
|
|
33355
33925
|
})) || [];
|
|
33356
33926
|
setHandSource(data);
|
|
33357
|
-
case
|
|
33358
|
-
|
|
33927
|
+
case 6:
|
|
33928
|
+
case "end":
|
|
33929
|
+
return _context.stop();
|
|
33359
33930
|
}
|
|
33360
33931
|
}, _callee);
|
|
33361
33932
|
})), []);
|
|
@@ -33485,17 +34056,20 @@ function getRegularThresholdRange(_x) {
|
|
|
33485
34056
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
33486
34057
|
}
|
|
33487
34058
|
function _getRegularThresholdRange() {
|
|
33488
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
33489
|
-
return
|
|
33490
|
-
while (1) switch (_context.
|
|
34059
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
34060
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34061
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33491
34062
|
case 0:
|
|
33492
|
-
return _context.
|
|
34063
|
+
return _context.abrupt("return", requestUtil({
|
|
33493
34064
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
33494
34065
|
method: 'POST',
|
|
33495
34066
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
33496
34067
|
queryIdentify: undefined
|
|
33497
34068
|
})
|
|
33498
34069
|
}));
|
|
34070
|
+
case 1:
|
|
34071
|
+
case "end":
|
|
34072
|
+
return _context.stop();
|
|
33499
34073
|
}
|
|
33500
34074
|
}, _callee);
|
|
33501
34075
|
}));
|
|
@@ -33636,24 +34210,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33636
34210
|
};
|
|
33637
34211
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33638
34212
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33639
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34213
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33640
34214
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33641
|
-
return
|
|
33642
|
-
while (1) switch (_context.
|
|
34215
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34216
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33643
34217
|
case 0:
|
|
33644
34218
|
if (queryIdentify) {
|
|
33645
|
-
_context.
|
|
34219
|
+
_context.next = 2;
|
|
33646
34220
|
break;
|
|
33647
34221
|
}
|
|
33648
|
-
return _context.
|
|
33649
|
-
case
|
|
34222
|
+
return _context.abrupt("return");
|
|
34223
|
+
case 2:
|
|
33650
34224
|
thresholdQuery = _this.state.thresholdQuery;
|
|
33651
34225
|
extraRequestUrl = '';
|
|
33652
34226
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
33653
34227
|
if (!queryIdentityInfo.find(function (item) {
|
|
33654
34228
|
return item.identity == propertyCode;
|
|
33655
34229
|
})) {
|
|
33656
|
-
_context.
|
|
34230
|
+
_context.next = 10;
|
|
33657
34231
|
break;
|
|
33658
34232
|
}
|
|
33659
34233
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -33667,15 +34241,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33667
34241
|
if (!needQueryList.some(function (item) {
|
|
33668
34242
|
return !querParams[item] || !querParams[item].length;
|
|
33669
34243
|
})) {
|
|
33670
|
-
_context.
|
|
34244
|
+
_context.next = 9;
|
|
33671
34245
|
break;
|
|
33672
34246
|
}
|
|
33673
|
-
return _context.
|
|
33674
|
-
case
|
|
34247
|
+
return _context.abrupt("return");
|
|
34248
|
+
case 9:
|
|
33675
34249
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
33676
34250
|
return item.identity == propertyCode;
|
|
33677
34251
|
}).requestUrl || '';
|
|
33678
|
-
case
|
|
34252
|
+
case 10:
|
|
33679
34253
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
33680
34254
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
33681
34255
|
querParams = {
|
|
@@ -33686,7 +34260,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33686
34260
|
// querParams = { dictCode: queryIdentify }
|
|
33687
34261
|
}
|
|
33688
34262
|
if (!extraRequestUrl) {
|
|
33689
|
-
_context.
|
|
34263
|
+
_context.next = 16;
|
|
33690
34264
|
break;
|
|
33691
34265
|
}
|
|
33692
34266
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -33725,42 +34299,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33725
34299
|
return handleData;
|
|
33726
34300
|
}
|
|
33727
34301
|
});
|
|
33728
|
-
_context.
|
|
34302
|
+
_context.next = 29;
|
|
33729
34303
|
break;
|
|
33730
|
-
case
|
|
34304
|
+
case 16:
|
|
33731
34305
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
33732
|
-
_context.
|
|
34306
|
+
_context.next = 20;
|
|
33733
34307
|
break;
|
|
33734
34308
|
}
|
|
33735
34309
|
_this.setState({
|
|
33736
34310
|
thresholdList: queryIdentify
|
|
33737
34311
|
});
|
|
33738
|
-
_context.
|
|
34312
|
+
_context.next = 29;
|
|
33739
34313
|
break;
|
|
33740
|
-
case
|
|
34314
|
+
case 20:
|
|
33741
34315
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
33742
|
-
_context.
|
|
34316
|
+
_context.next = 24;
|
|
33743
34317
|
break;
|
|
33744
34318
|
}
|
|
33745
34319
|
// TODO待处理
|
|
33746
34320
|
_this.setState({
|
|
33747
34321
|
thresholdList: []
|
|
33748
34322
|
});
|
|
33749
|
-
_context.
|
|
34323
|
+
_context.next = 29;
|
|
33750
34324
|
break;
|
|
33751
|
-
case
|
|
34325
|
+
case 24:
|
|
33752
34326
|
querParams.queryIdentify = queryIdentify;
|
|
33753
|
-
_context.
|
|
34327
|
+
_context.next = 27;
|
|
33754
34328
|
return getRegularThresholdRange(querParams);
|
|
33755
|
-
case
|
|
33756
|
-
res = _context.
|
|
34329
|
+
case 27:
|
|
34330
|
+
res = _context.sent;
|
|
33757
34331
|
if (handleError(res)) {
|
|
33758
34332
|
_this.setState({
|
|
33759
34333
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
33760
34334
|
});
|
|
33761
34335
|
}
|
|
33762
|
-
case
|
|
33763
|
-
|
|
34336
|
+
case 29:
|
|
34337
|
+
case "end":
|
|
34338
|
+
return _context.stop();
|
|
33764
34339
|
}
|
|
33765
34340
|
}, _callee);
|
|
33766
34341
|
}));
|
|
@@ -34592,11 +35167,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34592
35167
|
isAll: true,
|
|
34593
35168
|
needNameAndCode: true,
|
|
34594
35169
|
notChangeOnSelect: true,
|
|
34595
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34596
|
-
return
|
|
34597
|
-
while (1) switch (_context2.
|
|
35170
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35171
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35172
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
34598
35173
|
case 0:
|
|
34599
|
-
_context2.
|
|
35174
|
+
_context2.next = 2;
|
|
34600
35175
|
return request$2({
|
|
34601
35176
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34602
35177
|
method: 'get',
|
|
@@ -34613,8 +35188,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34613
35188
|
return handleData;
|
|
34614
35189
|
}
|
|
34615
35190
|
});
|
|
34616
|
-
case
|
|
34617
|
-
return _context2.
|
|
35191
|
+
case 2:
|
|
35192
|
+
return _context2.abrupt("return", _context2.sent);
|
|
35193
|
+
case 3:
|
|
35194
|
+
case "end":
|
|
35195
|
+
return _context2.stop();
|
|
34618
35196
|
}
|
|
34619
35197
|
}, _callee2);
|
|
34620
35198
|
})),
|
|
@@ -34638,11 +35216,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34638
35216
|
isAll: true,
|
|
34639
35217
|
needNameAndCode: true,
|
|
34640
35218
|
notChangeOnSelect: true,
|
|
34641
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34642
|
-
return
|
|
34643
|
-
while (1) switch (_context3.
|
|
35219
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
35220
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
35221
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
34644
35222
|
case 0:
|
|
34645
|
-
_context3.
|
|
35223
|
+
_context3.next = 2;
|
|
34646
35224
|
return request$2({
|
|
34647
35225
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34648
35226
|
method: 'get',
|
|
@@ -34659,8 +35237,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34659
35237
|
return handleData;
|
|
34660
35238
|
}
|
|
34661
35239
|
});
|
|
34662
|
-
case
|
|
34663
|
-
return _context3.
|
|
35240
|
+
case 2:
|
|
35241
|
+
return _context3.abrupt("return", _context3.sent);
|
|
35242
|
+
case 3:
|
|
35243
|
+
case "end":
|
|
35244
|
+
return _context3.stop();
|
|
34664
35245
|
}
|
|
34665
35246
|
}, _callee3);
|
|
34666
35247
|
})),
|
|
@@ -34686,11 +35267,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34686
35267
|
isAll: true,
|
|
34687
35268
|
needNameAndCode: true,
|
|
34688
35269
|
notChangeOnSelect: true,
|
|
34689
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34690
|
-
return
|
|
34691
|
-
while (1) switch (_context4.
|
|
35270
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
35271
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
35272
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
34692
35273
|
case 0:
|
|
34693
|
-
_context4.
|
|
35274
|
+
_context4.next = 2;
|
|
34694
35275
|
return request$2({
|
|
34695
35276
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
34696
35277
|
method: 'get',
|
|
@@ -34707,8 +35288,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34707
35288
|
return handleData;
|
|
34708
35289
|
}
|
|
34709
35290
|
});
|
|
34710
|
-
case
|
|
34711
|
-
return _context4.
|
|
35291
|
+
case 2:
|
|
35292
|
+
return _context4.abrupt("return", _context4.sent);
|
|
35293
|
+
case 3:
|
|
35294
|
+
case "end":
|
|
35295
|
+
return _context4.stop();
|
|
34712
35296
|
}
|
|
34713
35297
|
}, _callee4);
|
|
34714
35298
|
})),
|
|
@@ -35395,8 +35979,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35395
35979
|
}
|
|
35396
35980
|
}));
|
|
35397
35981
|
} else {
|
|
35398
|
-
var
|
|
35399
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
35982
|
+
var _values10;
|
|
35983
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
35400
35984
|
return {
|
|
35401
35985
|
key: s,
|
|
35402
35986
|
label: valueNames[vIndex],
|
|
@@ -35674,8 +36258,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35674
36258
|
}
|
|
35675
36259
|
}));
|
|
35676
36260
|
} else {
|
|
35677
|
-
var
|
|
35678
|
-
var
|
|
36261
|
+
var _values11;
|
|
36262
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
35679
36263
|
return {
|
|
35680
36264
|
key: s,
|
|
35681
36265
|
label: valueNames[vIndex],
|
|
@@ -35697,7 +36281,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35697
36281
|
} : {}),
|
|
35698
36282
|
disabled: disabled,
|
|
35699
36283
|
labelInValue: true,
|
|
35700
|
-
value:
|
|
36284
|
+
value: _currentValue10,
|
|
35701
36285
|
requestConfig: {
|
|
35702
36286
|
filterInit: 'qp-code-in'
|
|
35703
36287
|
},
|
|
@@ -35790,8 +36374,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35790
36374
|
}
|
|
35791
36375
|
}));
|
|
35792
36376
|
} else {
|
|
35793
|
-
var
|
|
35794
|
-
var
|
|
36377
|
+
var _values12;
|
|
36378
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
35795
36379
|
return {
|
|
35796
36380
|
key: s,
|
|
35797
36381
|
label: valueNames[vIndex],
|
|
@@ -35813,7 +36397,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35813
36397
|
} : {}),
|
|
35814
36398
|
disabled: disabled,
|
|
35815
36399
|
labelInValue: true,
|
|
35816
|
-
value:
|
|
36400
|
+
value: _currentValue11,
|
|
35817
36401
|
requestConfig: {
|
|
35818
36402
|
filterInit: 'qp-code-in'
|
|
35819
36403
|
},
|
|
@@ -35906,8 +36490,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35906
36490
|
}
|
|
35907
36491
|
}));
|
|
35908
36492
|
} else {
|
|
35909
|
-
var
|
|
35910
|
-
var
|
|
36493
|
+
var _values13;
|
|
36494
|
+
var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
|
|
35911
36495
|
return {
|
|
35912
36496
|
key: s,
|
|
35913
36497
|
label: valueNames[vIndex],
|
|
@@ -35929,7 +36513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35929
36513
|
} : {}),
|
|
35930
36514
|
disabled: disabled,
|
|
35931
36515
|
labelInValue: true,
|
|
35932
|
-
value:
|
|
36516
|
+
value: _currentValue12,
|
|
35933
36517
|
requestConfig: {
|
|
35934
36518
|
filterInit: 'qp-brandCode-in'
|
|
35935
36519
|
},
|
|
@@ -36120,8 +36704,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36120
36704
|
}
|
|
36121
36705
|
}));
|
|
36122
36706
|
} else {
|
|
36123
|
-
var
|
|
36124
|
-
var
|
|
36707
|
+
var _values14;
|
|
36708
|
+
var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
|
|
36125
36709
|
return {
|
|
36126
36710
|
key: s,
|
|
36127
36711
|
label: valueNames[vIndex]
|
|
@@ -36149,7 +36733,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36149
36733
|
isSearchForm: true,
|
|
36150
36734
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
36151
36735
|
disabled: disabled,
|
|
36152
|
-
value:
|
|
36736
|
+
value: _currentValue13,
|
|
36153
36737
|
onChange: function onChange(value, sourceList) {
|
|
36154
36738
|
if (dataInputBusinessType === 12) {
|
|
36155
36739
|
var _value$map3, _sourceList$filter3;
|
|
@@ -36469,9 +37053,9 @@ var App$1 = function App(_ref) {
|
|
|
36469
37053
|
UpdateState(res);
|
|
36470
37054
|
};
|
|
36471
37055
|
var _useState9 = useState(false),
|
|
36472
|
-
|
|
36473
|
-
isModalVisible =
|
|
36474
|
-
setIsModalVisible =
|
|
37056
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
37057
|
+
isModalVisible = _useState10[0],
|
|
37058
|
+
setIsModalVisible = _useState10[1];
|
|
36475
37059
|
var showModal = function showModal() {
|
|
36476
37060
|
setIsModalVisible(true);
|
|
36477
37061
|
};
|
|
@@ -36952,26 +37536,27 @@ function RenderCompItem(props) {
|
|
|
36952
37536
|
dictData = _useState2[0],
|
|
36953
37537
|
setDictData = _useState2[1];
|
|
36954
37538
|
var getDictData = /*#__PURE__*/function () {
|
|
36955
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37539
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36956
37540
|
var _data$map;
|
|
36957
37541
|
var data;
|
|
36958
|
-
return
|
|
36959
|
-
while (1) switch (_context.
|
|
37542
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
37543
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36960
37544
|
case 0:
|
|
36961
|
-
_context.
|
|
37545
|
+
_context.next = 2;
|
|
36962
37546
|
return request$2({
|
|
36963
37547
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
36964
37548
|
});
|
|
36965
|
-
case
|
|
36966
|
-
data = _context.
|
|
37549
|
+
case 2:
|
|
37550
|
+
data = _context.sent;
|
|
36967
37551
|
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
36968
37552
|
return {
|
|
36969
37553
|
text: item.dictItemName,
|
|
36970
37554
|
value: item.dictItemCode
|
|
36971
37555
|
};
|
|
36972
37556
|
}));
|
|
36973
|
-
case
|
|
36974
|
-
|
|
37557
|
+
case 4:
|
|
37558
|
+
case "end":
|
|
37559
|
+
return _context.stop();
|
|
36975
37560
|
}
|
|
36976
37561
|
}, _callee);
|
|
36977
37562
|
}));
|
|
@@ -37212,11 +37797,11 @@ function RenderCompItem(props) {
|
|
|
37212
37797
|
needNameAndCode: true,
|
|
37213
37798
|
notChangeOnSelect: true,
|
|
37214
37799
|
initRequestSource: function () {
|
|
37215
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
37216
|
-
return
|
|
37217
|
-
while (1) switch (_context2.
|
|
37800
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
37801
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
37802
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
37218
37803
|
case 0:
|
|
37219
|
-
_context2.
|
|
37804
|
+
_context2.next = 2;
|
|
37220
37805
|
return request$2({
|
|
37221
37806
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
37222
37807
|
method: 'get',
|
|
@@ -37234,8 +37819,11 @@ function RenderCompItem(props) {
|
|
|
37234
37819
|
return handleData;
|
|
37235
37820
|
}
|
|
37236
37821
|
});
|
|
37237
|
-
case
|
|
37238
|
-
return _context2.
|
|
37822
|
+
case 2:
|
|
37823
|
+
return _context2.abrupt("return", _context2.sent);
|
|
37824
|
+
case 3:
|
|
37825
|
+
case "end":
|
|
37826
|
+
return _context2.stop();
|
|
37239
37827
|
}
|
|
37240
37828
|
}, _callee2);
|
|
37241
37829
|
}));
|
|
@@ -38025,7 +38613,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
38025
38613
|
display: 'flex',
|
|
38026
38614
|
marginBottom: '0px',
|
|
38027
38615
|
padding: '10px 0px'
|
|
38028
|
-
}
|
|
38616
|
+
},
|
|
38617
|
+
key: itemDetail.elementId
|
|
38029
38618
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
38030
38619
|
className: 'logical_operate_content',
|
|
38031
38620
|
style: {
|
|
@@ -39285,13 +39874,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39285
39874
|
ruleTypeData = _useState8[0],
|
|
39286
39875
|
setRuleTypeData = _useState8[1];
|
|
39287
39876
|
var _useState9 = useState([]),
|
|
39288
|
-
|
|
39289
|
-
ruleReturnConfig =
|
|
39290
|
-
setRuleReturnConfig =
|
|
39291
|
-
var
|
|
39292
|
-
|
|
39293
|
-
templateData =
|
|
39294
|
-
setTemplateData =
|
|
39877
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
39878
|
+
ruleReturnConfig = _useState10[0],
|
|
39879
|
+
setRuleReturnConfig = _useState10[1];
|
|
39880
|
+
var _useState11 = useState({}),
|
|
39881
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
39882
|
+
templateData = _useState12[0],
|
|
39883
|
+
setTemplateData = _useState12[1];
|
|
39295
39884
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
39296
39885
|
request$2({
|
|
39297
39886
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -39627,25 +40216,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39627
40216
|
regularDataList = _useState8[0],
|
|
39628
40217
|
setRegularDataList = _useState8[1];
|
|
39629
40218
|
var _useState9 = useState([]),
|
|
39630
|
-
|
|
39631
|
-
baseRuleDetailList =
|
|
39632
|
-
setBaseRuleDetailList =
|
|
39633
|
-
var
|
|
39634
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
39635
|
-
systemVariableList = _useState10[0],
|
|
39636
|
-
setSystemVariableList = _useState10[1];
|
|
39637
|
-
var _useState11 = useState(false),
|
|
40219
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
40220
|
+
baseRuleDetailList = _useState10[0],
|
|
40221
|
+
setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
|
|
40222
|
+
var _useState11 = useState([]),
|
|
39638
40223
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
39639
|
-
|
|
39640
|
-
|
|
40224
|
+
systemVariableList = _useState12[0],
|
|
40225
|
+
setSystemVariableList = _useState12[1];
|
|
39641
40226
|
var _useState13 = useState(false),
|
|
39642
40227
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
39643
|
-
|
|
39644
|
-
|
|
40228
|
+
isGetDefRuleDataRes = _useState14[0],
|
|
40229
|
+
setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
39645
40230
|
var _useState15 = useState(false),
|
|
39646
40231
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
39647
|
-
|
|
39648
|
-
|
|
40232
|
+
isGetRuleDataRes = _useState16[0],
|
|
40233
|
+
setIsGetRuleDataRes = _useState16[1];
|
|
40234
|
+
var _useState17 = useState(false),
|
|
40235
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
40236
|
+
groupOtherPriorityList = _useState18[0],
|
|
40237
|
+
setGroupOtherPriorityList = _useState18[1];
|
|
39649
40238
|
var baseRuleRef = useRef();
|
|
39650
40239
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
39651
40240
|
// 查询规则组下所有规则实例
|