@kmkf-fe-packages/basic-components 1.17.8-beta.17 → 1.17.8-beta.22

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/index.esm.js CHANGED
@@ -10,363 +10,377 @@ import zhCN from 'antd/lib/locale/zh_CN';
10
10
  import pubsub from 'pubsub-js';
11
11
  import BigNumber from 'bignumber.js';
12
12
 
13
- function _iterableToArrayLimit(arr, i) {
14
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
15
- if (null != _i) {
16
- var _s,
17
- _e,
18
- _x,
19
- _r,
20
- _arr = [],
21
- _n = !0,
22
- _d = !1;
13
+ function _iterableToArrayLimit(r, l) {
14
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15
+ if (null != t) {
16
+ var e,
17
+ n,
18
+ i,
19
+ u,
20
+ a = [],
21
+ f = !0,
22
+ o = !1;
23
23
  try {
24
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
25
- if (Object(_i) !== _i) return;
26
- _n = !1;
27
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
28
- } catch (err) {
29
- _d = !0, _e = err;
24
+ if (i = (t = t.call(r)).next, 0 === l) {
25
+ if (Object(t) !== t) return;
26
+ f = !1;
27
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
28
+ } catch (r) {
29
+ o = !0, n = r;
30
30
  } finally {
31
31
  try {
32
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
32
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
33
33
  } finally {
34
- if (_d) throw _e;
34
+ if (o) throw n;
35
35
  }
36
36
  }
37
- return _arr;
37
+ return a;
38
38
  }
39
39
  }
40
- function ownKeys(object, enumerableOnly) {
41
- var keys = Object.keys(object);
40
+ function ownKeys(e, r) {
41
+ var t = Object.keys(e);
42
42
  if (Object.getOwnPropertySymbols) {
43
- var symbols = Object.getOwnPropertySymbols(object);
44
- enumerableOnly && (symbols = symbols.filter(function (sym) {
45
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
46
- })), keys.push.apply(keys, symbols);
43
+ var o = Object.getOwnPropertySymbols(e);
44
+ r && (o = o.filter(function (r) {
45
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
46
+ })), t.push.apply(t, o);
47
47
  }
48
- return keys;
49
- }
50
- function _objectSpread2(target) {
51
- for (var i = 1; i < arguments.length; i++) {
52
- var source = null != arguments[i] ? arguments[i] : {};
53
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
54
- _defineProperty(target, key, source[key]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
56
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
48
+ return t;
49
+ }
50
+ function _objectSpread2(e) {
51
+ for (var r = 1; r < arguments.length; r++) {
52
+ var t = null != arguments[r] ? arguments[r] : {};
53
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
54
+ _defineProperty(e, r, t[r]);
55
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
56
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
57
57
  });
58
58
  }
59
- return target;
59
+ return e;
60
60
  }
61
61
  function _regeneratorRuntime() {
62
62
  _regeneratorRuntime = function () {
63
- return exports;
64
- };
65
- var exports = {},
66
- Op = Object.prototype,
67
- hasOwn = Op.hasOwnProperty,
68
- defineProperty = Object.defineProperty || function (obj, key, desc) {
69
- obj[key] = desc.value;
63
+ return e;
64
+ };
65
+ var t,
66
+ e = {},
67
+ r = Object.prototype,
68
+ n = r.hasOwnProperty,
69
+ o = Object.defineProperty || function (t, e, r) {
70
+ t[e] = r.value;
70
71
  },
71
- $Symbol = "function" == typeof Symbol ? Symbol : {},
72
- iteratorSymbol = $Symbol.iterator || "@@iterator",
73
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
74
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
75
- function define(obj, key, value) {
76
- return Object.defineProperty(obj, key, {
77
- value: value,
72
+ i = "function" == typeof Symbol ? Symbol : {},
73
+ a = i.iterator || "@@iterator",
74
+ c = i.asyncIterator || "@@asyncIterator",
75
+ u = i.toStringTag || "@@toStringTag";
76
+ function define(t, e, r) {
77
+ return Object.defineProperty(t, e, {
78
+ value: r,
78
79
  enumerable: !0,
79
80
  configurable: !0,
80
81
  writable: !0
81
- }), obj[key];
82
+ }), t[e];
82
83
  }
83
84
  try {
84
85
  define({}, "");
85
- } catch (err) {
86
- define = function (obj, key, value) {
87
- return obj[key] = value;
86
+ } catch (t) {
87
+ define = function (t, e, r) {
88
+ return t[e] = r;
88
89
  };
89
90
  }
90
- function wrap(innerFn, outerFn, self, tryLocsList) {
91
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
92
- generator = Object.create(protoGenerator.prototype),
93
- context = new Context(tryLocsList || []);
94
- return defineProperty(generator, "_invoke", {
95
- value: makeInvokeMethod(innerFn, self, context)
96
- }), generator;
91
+ function wrap(t, e, r, n) {
92
+ var i = e && e.prototype instanceof Generator ? e : Generator,
93
+ a = Object.create(i.prototype),
94
+ c = new Context(n || []);
95
+ return o(a, "_invoke", {
96
+ value: makeInvokeMethod(t, r, c)
97
+ }), a;
97
98
  }
98
- function tryCatch(fn, obj, arg) {
99
+ function tryCatch(t, e, r) {
99
100
  try {
100
101
  return {
101
102
  type: "normal",
102
- arg: fn.call(obj, arg)
103
+ arg: t.call(e, r)
103
104
  };
104
- } catch (err) {
105
+ } catch (t) {
105
106
  return {
106
107
  type: "throw",
107
- arg: err
108
+ arg: t
108
109
  };
109
110
  }
110
111
  }
111
- exports.wrap = wrap;
112
- var ContinueSentinel = {};
112
+ e.wrap = wrap;
113
+ var h = "suspendedStart",
114
+ l = "suspendedYield",
115
+ f = "executing",
116
+ s = "completed",
117
+ y = {};
113
118
  function Generator() {}
114
119
  function GeneratorFunction() {}
115
120
  function GeneratorFunctionPrototype() {}
116
- var IteratorPrototype = {};
117
- define(IteratorPrototype, iteratorSymbol, function () {
121
+ var p = {};
122
+ define(p, a, function () {
118
123
  return this;
119
124
  });
120
- var getProto = Object.getPrototypeOf,
121
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
122
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
123
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
124
- function defineIteratorMethods(prototype) {
125
- ["next", "throw", "return"].forEach(function (method) {
126
- define(prototype, method, function (arg) {
127
- return this._invoke(method, arg);
125
+ var d = Object.getPrototypeOf,
126
+ v = d && d(d(values([])));
127
+ v && v !== r && n.call(v, a) && (p = v);
128
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
129
+ function defineIteratorMethods(t) {
130
+ ["next", "throw", "return"].forEach(function (e) {
131
+ define(t, e, function (t) {
132
+ return this._invoke(e, t);
128
133
  });
129
134
  });
130
135
  }
131
- function AsyncIterator(generator, PromiseImpl) {
132
- function invoke(method, arg, resolve, reject) {
133
- var record = tryCatch(generator[method], generator, arg);
134
- if ("throw" !== record.type) {
135
- var result = record.arg,
136
- value = result.value;
137
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
138
- invoke("next", value, resolve, reject);
139
- }, function (err) {
140
- invoke("throw", err, resolve, reject);
141
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
142
- result.value = unwrapped, resolve(result);
143
- }, function (error) {
144
- return invoke("throw", error, resolve, reject);
136
+ function AsyncIterator(t, e) {
137
+ function invoke(r, o, i, a) {
138
+ var c = tryCatch(t[r], t, o);
139
+ if ("throw" !== c.type) {
140
+ var u = c.arg,
141
+ h = u.value;
142
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
143
+ invoke("next", t, i, a);
144
+ }, function (t) {
145
+ invoke("throw", t, i, a);
146
+ }) : e.resolve(h).then(function (t) {
147
+ u.value = t, i(u);
148
+ }, function (t) {
149
+ return invoke("throw", t, i, a);
145
150
  });
146
151
  }
147
- reject(record.arg);
152
+ a(c.arg);
148
153
  }
149
- var previousPromise;
150
- defineProperty(this, "_invoke", {
151
- value: function (method, arg) {
154
+ var r;
155
+ o(this, "_invoke", {
156
+ value: function (t, n) {
152
157
  function callInvokeWithMethodAndArg() {
153
- return new PromiseImpl(function (resolve, reject) {
154
- invoke(method, arg, resolve, reject);
158
+ return new e(function (e, r) {
159
+ invoke(t, n, e, r);
155
160
  });
156
161
  }
157
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
158
163
  }
159
164
  });
160
165
  }
161
- function makeInvokeMethod(innerFn, self, context) {
162
- var state = "suspendedStart";
163
- return function (method, arg) {
164
- if ("executing" === state) throw new Error("Generator is already running");
165
- if ("completed" === state) {
166
- if ("throw" === method) throw arg;
167
- return doneResult();
166
+ function makeInvokeMethod(e, r, n) {
167
+ var o = h;
168
+ return function (i, a) {
169
+ if (o === f) throw new Error("Generator is already running");
170
+ if (o === s) {
171
+ if ("throw" === i) throw a;
172
+ return {
173
+ value: t,
174
+ done: !0
175
+ };
168
176
  }
169
- for (context.method = method, context.arg = arg;;) {
170
- var delegate = context.delegate;
171
- if (delegate) {
172
- var delegateResult = maybeInvokeDelegate(delegate, context);
173
- if (delegateResult) {
174
- if (delegateResult === ContinueSentinel) continue;
175
- return delegateResult;
177
+ for (n.method = i, n.arg = a;;) {
178
+ var c = n.delegate;
179
+ if (c) {
180
+ var u = maybeInvokeDelegate(c, n);
181
+ if (u) {
182
+ if (u === y) continue;
183
+ return u;
176
184
  }
177
185
  }
178
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
179
- if ("suspendedStart" === state) throw state = "completed", context.arg;
180
- context.dispatchException(context.arg);
181
- } else "return" === context.method && context.abrupt("return", context.arg);
182
- state = "executing";
183
- var record = tryCatch(innerFn, self, context);
184
- if ("normal" === record.type) {
185
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
186
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
187
+ if (o === h) throw o = s, n.arg;
188
+ n.dispatchException(n.arg);
189
+ } else "return" === n.method && n.abrupt("return", n.arg);
190
+ o = f;
191
+ var p = tryCatch(e, r, n);
192
+ if ("normal" === p.type) {
193
+ if (o = n.done ? s : l, p.arg === y) continue;
186
194
  return {
187
- value: record.arg,
188
- done: context.done
195
+ value: p.arg,
196
+ done: n.done
189
197
  };
190
198
  }
191
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
199
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
192
200
  }
193
201
  };
194
202
  }
195
- function maybeInvokeDelegate(delegate, context) {
196
- var methodName = context.method,
197
- method = delegate.iterator[methodName];
198
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
199
- var record = tryCatch(method, delegate.iterator, context.arg);
200
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
201
- var info = record.arg;
202
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
203
+ function maybeInvokeDelegate(e, r) {
204
+ var n = r.method,
205
+ o = e.iterator[n];
206
+ 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;
207
+ var i = tryCatch(o, e.iterator, r.arg);
208
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
209
+ var a = i.arg;
210
+ 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);
203
211
  }
204
- function pushTryEntry(locs) {
205
- var entry = {
206
- tryLoc: locs[0]
212
+ function pushTryEntry(t) {
213
+ var e = {
214
+ tryLoc: t[0]
207
215
  };
208
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
216
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
209
217
  }
210
- function resetTryEntry(entry) {
211
- var record = entry.completion || {};
212
- record.type = "normal", delete record.arg, entry.completion = record;
218
+ function resetTryEntry(t) {
219
+ var e = t.completion || {};
220
+ e.type = "normal", delete e.arg, t.completion = e;
213
221
  }
214
- function Context(tryLocsList) {
222
+ function Context(t) {
215
223
  this.tryEntries = [{
216
224
  tryLoc: "root"
217
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
225
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
218
226
  }
219
- function values(iterable) {
220
- if (iterable) {
221
- var iteratorMethod = iterable[iteratorSymbol];
222
- if (iteratorMethod) return iteratorMethod.call(iterable);
223
- if ("function" == typeof iterable.next) return iterable;
224
- if (!isNaN(iterable.length)) {
225
- var i = -1,
226
- next = function next() {
227
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
228
- return next.value = undefined, next.done = !0, next;
227
+ function values(e) {
228
+ if (e || "" === e) {
229
+ var r = e[a];
230
+ if (r) return r.call(e);
231
+ if ("function" == typeof e.next) return e;
232
+ if (!isNaN(e.length)) {
233
+ var o = -1,
234
+ i = function next() {
235
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
236
+ return next.value = t, next.done = !0, next;
229
237
  };
230
- return next.next = next;
238
+ return i.next = i;
231
239
  }
232
240
  }
233
- return {
234
- next: doneResult
235
- };
236
- }
237
- function doneResult() {
238
- return {
239
- value: undefined,
240
- done: !0
241
- };
241
+ throw new TypeError(typeof e + " is not iterable");
242
242
  }
243
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
243
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
244
244
  value: GeneratorFunctionPrototype,
245
245
  configurable: !0
246
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
246
+ }), o(GeneratorFunctionPrototype, "constructor", {
247
247
  value: GeneratorFunction,
248
248
  configurable: !0
249
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
250
- var ctor = "function" == typeof genFun && genFun.constructor;
251
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
252
- }, exports.mark = function (genFun) {
253
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
254
- }, exports.awrap = function (arg) {
249
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
250
+ var e = "function" == typeof t && t.constructor;
251
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
252
+ }, e.mark = function (t) {
253
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
254
+ }, e.awrap = function (t) {
255
255
  return {
256
- __await: arg
256
+ __await: t
257
257
  };
258
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
258
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
259
259
  return this;
260
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
261
- void 0 === PromiseImpl && (PromiseImpl = Promise);
262
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
263
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
264
- return result.done ? result.value : iter.next();
260
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
261
+ void 0 === i && (i = Promise);
262
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
263
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
264
+ return t.done ? t.value : a.next();
265
265
  });
266
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
266
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
267
267
  return this;
268
- }), define(Gp, "toString", function () {
268
+ }), define(g, "toString", function () {
269
269
  return "[object Generator]";
270
- }), exports.keys = function (val) {
271
- var object = Object(val),
272
- keys = [];
273
- for (var key in object) keys.push(key);
274
- return keys.reverse(), function next() {
275
- for (; keys.length;) {
276
- var key = keys.pop();
277
- if (key in object) return next.value = key, next.done = !1, next;
270
+ }), e.keys = function (t) {
271
+ var e = Object(t),
272
+ r = [];
273
+ for (var n in e) r.push(n);
274
+ return r.reverse(), function next() {
275
+ for (; r.length;) {
276
+ var t = r.pop();
277
+ if (t in e) return next.value = t, next.done = !1, next;
278
278
  }
279
279
  return next.done = !0, next;
280
280
  };
281
- }, exports.values = values, Context.prototype = {
281
+ }, e.values = values, Context.prototype = {
282
282
  constructor: Context,
283
- reset: function (skipTempReset) {
284
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
283
+ reset: function (e) {
284
+ 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);
285
285
  },
286
286
  stop: function () {
287
287
  this.done = !0;
288
- var rootRecord = this.tryEntries[0].completion;
289
- if ("throw" === rootRecord.type) throw rootRecord.arg;
288
+ var t = this.tryEntries[0].completion;
289
+ if ("throw" === t.type) throw t.arg;
290
290
  return this.rval;
291
291
  },
292
- dispatchException: function (exception) {
293
- if (this.done) throw exception;
294
- var context = this;
295
- function handle(loc, caught) {
296
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
292
+ dispatchException: function (e) {
293
+ if (this.done) throw e;
294
+ var r = this;
295
+ function handle(n, o) {
296
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
297
297
  }
298
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
- var entry = this.tryEntries[i],
300
- record = entry.completion;
301
- if ("root" === entry.tryLoc) return handle("end");
302
- if (entry.tryLoc <= this.prev) {
303
- var hasCatch = hasOwn.call(entry, "catchLoc"),
304
- hasFinally = hasOwn.call(entry, "finallyLoc");
305
- if (hasCatch && hasFinally) {
306
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
307
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
308
- } else if (hasCatch) {
309
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
298
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
299
+ var i = this.tryEntries[o],
300
+ a = i.completion;
301
+ if ("root" === i.tryLoc) return handle("end");
302
+ if (i.tryLoc <= this.prev) {
303
+ var c = n.call(i, "catchLoc"),
304
+ u = n.call(i, "finallyLoc");
305
+ if (c && u) {
306
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
307
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
308
+ } else if (c) {
309
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
310
310
  } else {
311
- if (!hasFinally) throw new Error("try statement without catch or finally");
312
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
311
+ if (!u) throw new Error("try statement without catch or finally");
312
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
313
313
  }
314
314
  }
315
315
  }
316
316
  },
317
- abrupt: function (type, arg) {
318
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
319
- var entry = this.tryEntries[i];
320
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
321
- var finallyEntry = entry;
317
+ abrupt: function (t, e) {
318
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
319
+ var o = this.tryEntries[r];
320
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
321
+ var i = o;
322
322
  break;
323
323
  }
324
324
  }
325
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
326
- var record = finallyEntry ? finallyEntry.completion : {};
327
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
325
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
326
+ var a = i ? i.completion : {};
327
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
328
328
  },
329
- complete: function (record, afterLoc) {
330
- if ("throw" === record.type) throw record.arg;
331
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
329
+ complete: function (t, e) {
330
+ if ("throw" === t.type) throw t.arg;
331
+ 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;
332
332
  },
333
- finish: function (finallyLoc) {
334
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
- var entry = this.tryEntries[i];
336
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
333
+ finish: function (t) {
334
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
+ var r = this.tryEntries[e];
336
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
337
337
  }
338
338
  },
339
- catch: function (tryLoc) {
340
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
341
- var entry = this.tryEntries[i];
342
- if (entry.tryLoc === tryLoc) {
343
- var record = entry.completion;
344
- if ("throw" === record.type) {
345
- var thrown = record.arg;
346
- resetTryEntry(entry);
339
+ catch: function (t) {
340
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
341
+ var r = this.tryEntries[e];
342
+ if (r.tryLoc === t) {
343
+ var n = r.completion;
344
+ if ("throw" === n.type) {
345
+ var o = n.arg;
346
+ resetTryEntry(r);
347
347
  }
348
- return thrown;
348
+ return o;
349
349
  }
350
350
  }
351
351
  throw new Error("illegal catch attempt");
352
352
  },
353
- delegateYield: function (iterable, resultName, nextLoc) {
353
+ delegateYield: function (e, r, n) {
354
354
  return this.delegate = {
355
- iterator: values(iterable),
356
- resultName: resultName,
357
- nextLoc: nextLoc
358
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
359
- }
360
- }, exports;
355
+ iterator: values(e),
356
+ resultName: r,
357
+ nextLoc: n
358
+ }, "next" === this.method && (this.arg = t), y;
359
+ }
360
+ }, e;
361
+ }
362
+ function _toPrimitive(t, r) {
363
+ if ("object" != typeof t || !t) return t;
364
+ var e = t[Symbol.toPrimitive];
365
+ if (void 0 !== e) {
366
+ var i = e.call(t, r || "default");
367
+ if ("object" != typeof i) return i;
368
+ throw new TypeError("@@toPrimitive must return a primitive value.");
369
+ }
370
+ return ("string" === r ? String : Number)(t);
371
+ }
372
+ function _toPropertyKey(t) {
373
+ var i = _toPrimitive(t, "string");
374
+ return "symbol" == typeof i ? i : String(i);
361
375
  }
362
- function _typeof(obj) {
376
+ function _typeof(o) {
363
377
  "@babel/helpers - typeof";
364
378
 
365
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
366
- return typeof obj;
367
- } : function (obj) {
368
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
369
- }, _typeof(obj);
379
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
380
+ return typeof o;
381
+ } : function (o) {
382
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
383
+ }, _typeof(o);
370
384
  }
371
385
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
372
386
  try {
@@ -473,20 +487,6 @@ function _nonIterableSpread() {
473
487
  function _nonIterableRest() {
474
488
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
475
489
  }
476
- function _toPrimitive(input, hint) {
477
- if (typeof input !== "object" || input === null) return input;
478
- var prim = input[Symbol.toPrimitive];
479
- if (prim !== undefined) {
480
- var res = prim.call(input, hint || "default");
481
- if (typeof res !== "object") return res;
482
- throw new TypeError("@@toPrimitive must return a primitive value.");
483
- }
484
- return (hint === "string" ? String : Number)(input);
485
- }
486
- function _toPropertyKey(arg) {
487
- var key = _toPrimitive(arg, "string");
488
- return typeof key === "symbol" ? key : String(key);
489
- }
490
490
 
491
491
  function ApaasCascader(props) {
492
492
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -12024,6 +12024,347 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
12024
12024
  };
12025
12025
  var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
12026
12026
 
12027
+ var getTableData$1 = function getTableData(_ref, formData) {
12028
+ var current = _ref.current,
12029
+ pageSize = _ref.pageSize;
12030
+ var data = {
12031
+ goodsSn: formData.goodsSn || null,
12032
+ goodsname: formData.goodsname || null,
12033
+ sku: formData.sku || null,
12034
+ skuId: formData.skuId || null
12035
+ };
12036
+ return extendRequest('/qy/gdfw/product/product/page', {
12037
+ method: 'post',
12038
+ data: _objectSpread2({
12039
+ pageSize: pageSize,
12040
+ pageNo: current,
12041
+ platform: 'WDT_ERP'
12042
+ }, data)
12043
+ }).then(function (res) {
12044
+ var _res$data = res.data,
12045
+ _res$data$productSkuL = _res$data.productSkuList,
12046
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12047
+ _res$data$total = _res$data.total,
12048
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12049
+ var newProducts = productSkuList.map(function (item, index) {
12050
+ return _objectSpread2(_objectSpread2({}, item), {}, {
12051
+ index: index + 1
12052
+ });
12053
+ });
12054
+ return {
12055
+ total: total,
12056
+ list: newProducts
12057
+ };
12058
+ });
12059
+ };
12060
+ var columns$2 = [{
12061
+ dataIndex: 'index',
12062
+ title: 'NO',
12063
+ render: function render(val, record, index) {
12064
+ return /*#__PURE__*/React.createElement("div", {
12065
+ style: {
12066
+ width: 25
12067
+ }
12068
+ }, index + 1);
12069
+ },
12070
+ width: 100
12071
+ }, {
12072
+ dataIndex: 'specName',
12073
+ title: 'SKU名称',
12074
+ width: 250,
12075
+ ellipsis: true
12076
+ }, {
12077
+ dataIndex: 'specNo',
12078
+ title: 'SKU编码',
12079
+ width: 200,
12080
+ ellipsis: true
12081
+ }, {
12082
+ dataIndex: 'specId',
12083
+ title: 'SKUID',
12084
+ width: 200,
12085
+ ellipsis: true
12086
+ }, {
12087
+ dataIndex: 'specImgUrl',
12088
+ title: '商品图片',
12089
+ width: 100,
12090
+ render: function render(picUrl) {
12091
+ return /*#__PURE__*/React.createElement("img", {
12092
+ style: {
12093
+ width: '40px',
12094
+ height: '40px',
12095
+ objectFit: 'contain'
12096
+ },
12097
+ src: picUrl
12098
+ });
12099
+ }
12100
+ }, {
12101
+ dataIndex: 'goodName',
12102
+ title: '商品名称',
12103
+ width: 250,
12104
+ ellipsis: true
12105
+ }, {
12106
+ dataIndex: 'goodNo',
12107
+ title: '商品编码',
12108
+ width: 200,
12109
+ ellipsis: true
12110
+ }, {
12111
+ dataIndex: 'goodId',
12112
+ title: '商品ID',
12113
+ width: 200,
12114
+ ellipsis: true
12115
+ }, {
12116
+ dataIndex: 'marketPrice',
12117
+ title: '市场价',
12118
+ width: 140,
12119
+ render: function render(price) {
12120
+ return Number(price).toFixed(2);
12121
+ }
12122
+ }, {
12123
+ dataIndex: 'retailPrice',
12124
+ title: '零售价',
12125
+ width: 140,
12126
+ render: function render(price) {
12127
+ return Number(price).toFixed(2);
12128
+ }
12129
+ }, {
12130
+ dataIndex: 'memberPrice',
12131
+ title: '会员价',
12132
+ width: 140,
12133
+ render: function render(price) {
12134
+ return Number(price).toFixed(2);
12135
+ }
12136
+ }];
12137
+ var GoodList$1 = function GoodList(props, ref) {
12138
+ var _useState = useState([]),
12139
+ _useState2 = _slicedToArray(_useState, 2),
12140
+ selectList = _useState2[0],
12141
+ setSelect = _useState2[1];
12142
+ var _useState3 = useState([]),
12143
+ _useState4 = _slicedToArray(_useState3, 2),
12144
+ selectIds = _useState4[0],
12145
+ setSelectIds = _useState4[1];
12146
+ useImperativeHandle(ref, function () {
12147
+ return {
12148
+ getSelectGoodList: function getSelectGoodList() {
12149
+ return selectList;
12150
+ }
12151
+ };
12152
+ });
12153
+ var _Form$useForm = Form.useForm(),
12154
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12155
+ form = _Form$useForm2[0];
12156
+ var _useAntdTable = useAntdTable(getTableData$1, {
12157
+ defaultPageSize: 10,
12158
+ form: form
12159
+ }),
12160
+ tableProps = _useAntdTable.tableProps,
12161
+ search = _useAntdTable.search,
12162
+ params = _useAntdTable.params;
12163
+ var submit = search.submit,
12164
+ reset = search.reset;
12165
+ var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
12166
+ layout: "inline",
12167
+ form: form
12168
+ }, /*#__PURE__*/React.createElement(Form.Item, {
12169
+ name: "goodsSn",
12170
+ style: {
12171
+ marginBottom: '12px'
12172
+ }
12173
+ }, /*#__PURE__*/React.createElement(Input, {
12174
+ placeholder: "\u5546\u54C1\u8D27\u53F7",
12175
+ allowClear: true,
12176
+ style: {
12177
+ width: 150
12178
+ }
12179
+ })), /*#__PURE__*/React.createElement(Form.Item, {
12180
+ name: "goodsname",
12181
+ style: {
12182
+ marginBottom: '12px'
12183
+ }
12184
+ }, /*#__PURE__*/React.createElement(Input, {
12185
+ placeholder: "\u5546\u54C1\u540D\u79F0",
12186
+ allowClear: true,
12187
+ style: {
12188
+ width: 150
12189
+ }
12190
+ })), /*#__PURE__*/React.createElement(Form.Item, {
12191
+ name: "sku",
12192
+ style: {
12193
+ marginBottom: '12px'
12194
+ }
12195
+ }, /*#__PURE__*/React.createElement(Input, {
12196
+ placeholder: "SKU",
12197
+ allowClear: true,
12198
+ style: {
12199
+ width: 150
12200
+ }
12201
+ })), /*#__PURE__*/React.createElement(Form.Item, {
12202
+ name: "skuId",
12203
+ style: {
12204
+ marginBottom: '12px'
12205
+ }
12206
+ }, /*#__PURE__*/React.createElement(Input, {
12207
+ placeholder: "SKU ID",
12208
+ allowClear: true,
12209
+ style: {
12210
+ width: 150
12211
+ }
12212
+ })), /*#__PURE__*/React.createElement(Form.Item, {
12213
+ style: {
12214
+ marginBottom: '12px'
12215
+ }
12216
+ }, /*#__PURE__*/React.createElement(Button, {
12217
+ type: "primary",
12218
+ style: {
12219
+ marginRight: '8px'
12220
+ },
12221
+ onClick: submit
12222
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
12223
+ onClick: reset
12224
+ }, "\u91CD\u7F6E")));
12225
+ var rowSelection = {
12226
+ selectedRowKeys: selectIds,
12227
+ fixed: true,
12228
+ onSelect: function onSelect(record, selected) {
12229
+ if (selected) {
12230
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
12231
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
12232
+ } else {
12233
+ setSelectIds(selectIds.filter(function (t) {
12234
+ return t !== record.specNo;
12235
+ }));
12236
+ setSelect(selectList.filter(function (t) {
12237
+ return t.specNo !== record.specNo;
12238
+ }));
12239
+ }
12240
+ },
12241
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
12242
+ if (selected) {
12243
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
12244
+ return t.specNo;
12245
+ }))));
12246
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
12247
+ } else {
12248
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
12249
+ return t.specNo;
12250
+ })));
12251
+ var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
12252
+ return arrVal.specNo !== othVal.specNo;
12253
+ });
12254
+ setSelect(list);
12255
+ }
12256
+ }
12257
+ };
12258
+ var showTable = function showTable() {
12259
+ var handleDelete = function handleDelete(record) {
12260
+ setSelectIds(selectIds.filter(function (t) {
12261
+ return t !== record.specNo;
12262
+ }));
12263
+ setSelect(selectList.filter(function (t) {
12264
+ return t.specNo !== record.specNo;
12265
+ }));
12266
+ };
12267
+ var showColumns = [{
12268
+ dataIndex: '',
12269
+ title: "\u64CD\u4F5C",
12270
+ ellipsis: true,
12271
+ width: 100,
12272
+ render: function render(val, record) {
12273
+ return /*#__PURE__*/React.createElement(Button, {
12274
+ type: "link",
12275
+ onClick: function onClick() {
12276
+ return handleDelete(record);
12277
+ }
12278
+ }, "\u5220\u9664");
12279
+ }
12280
+ }].concat(takeRight(columns$2, columns$2.length - 1));
12281
+ return selectList.length ? /*#__PURE__*/React.createElement("div", {
12282
+ style: {
12283
+ width: '100%',
12284
+ maxWidth: '387px'
12285
+ }
12286
+ }, /*#__PURE__*/React.createElement(Table, {
12287
+ columns: showColumns,
12288
+ rowKey: 'specNo',
12289
+ dataSource: selectList,
12290
+ scroll: {
12291
+ x: '100%',
12292
+ y: 250
12293
+ },
12294
+ pagination: {
12295
+ size: 'small',
12296
+ total: selectIds.length,
12297
+ pageSize: 10,
12298
+ showSizeChanger: false
12299
+ }
12300
+ })) : null;
12301
+ };
12302
+ return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
12303
+ style: {
12304
+ marginTop: '4px'
12305
+ }
12306
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
12307
+ rowSelection: rowSelection,
12308
+ rowKey: "specNo",
12309
+ columns: columns$2,
12310
+ scroll: {
12311
+ x: '100%',
12312
+ y: 250
12313
+ }
12314
+ }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
12315
+ getPopupContainer: function getPopupContainer(triggerNode) {
12316
+ return triggerNode.parentElement;
12317
+ },
12318
+ content: showTable(),
12319
+ title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
12320
+ }, /*#__PURE__*/React.createElement(Button, {
12321
+ danger: true,
12322
+ type: "text"
12323
+ }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
12324
+ };
12325
+ var BsE3GoodList = /*#__PURE__*/forwardRef(GoodList$1);
12326
+
12327
+ var GoodsModal$4 = function GoodsModal(props, ref) {
12328
+ useImperativeHandle(ref, function () {
12329
+ return {
12330
+ open: function open() {
12331
+ setVisible(true);
12332
+ }
12333
+ };
12334
+ });
12335
+ var onSubmit = props.onSubmit,
12336
+ width = props.width;
12337
+ var _useState = useState(false),
12338
+ _useState2 = _slicedToArray(_useState, 2),
12339
+ visible = _useState2[0],
12340
+ setVisible = _useState2[1];
12341
+ var bsE3GoodListRef = useRef(null);
12342
+ var _onCancel = function onCancel() {
12343
+ setVisible(false);
12344
+ };
12345
+ var onOk = function onOk() {
12346
+ var _bsE3GoodListRef$curr;
12347
+ var selectedList = ((_bsE3GoodListRef$curr = bsE3GoodListRef.current) === null || _bsE3GoodListRef$curr === void 0 ? void 0 : _bsE3GoodListRef$curr.getSelectGoodList()) || [];
12348
+ onSubmit(selectedList);
12349
+ _onCancel();
12350
+ };
12351
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
12352
+ title: '选择商品',
12353
+ okText: '确认',
12354
+ cancelText: '取消',
12355
+ visible: visible,
12356
+ width: width || 850,
12357
+ onCancel: function onCancel() {
12358
+ _onCancel();
12359
+ },
12360
+ onOk: onOk,
12361
+ wrapClassName: "goodModal"
12362
+ }, /*#__PURE__*/React.createElement(BsE3GoodList, {
12363
+ ref: bsE3GoodListRef
12364
+ })));
12365
+ };
12366
+ var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
12367
+
12027
12368
  // interface GoodsItem {
12028
12369
  // title: string;
12029
12370
  // pic: string;
@@ -12694,6 +13035,14 @@ var GoodItem$1 = function GoodItem(props) {
12694
13035
  shopId: shopId,
12695
13036
  maxLength: maxLength,
12696
13037
  companyKey: companyKey
13038
+ }) : ['BS_E3_REISSUE_GOODS', 'BS_E3_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React.createElement(BsE3GoodsModal, {
13039
+ ref: refModal,
13040
+ onSubmit: onSubmit,
13041
+ width: width,
13042
+ shopList: shopList,
13043
+ shopId: shopId,
13044
+ maxLength: maxLength,
13045
+ companyKey: companyKey
12697
13046
  }) : /*#__PURE__*/React.createElement(GoodsModal$2, {
12698
13047
  ref: refModal,
12699
13048
  onSubmit: onSubmit,
@@ -13313,19 +13662,89 @@ var BsReturnGoods = function BsReturnGoods(props) {
13313
13662
  })));
13314
13663
  };
13315
13664
 
13316
- var columnsNameMap = {
13317
- BS_SYSTEM_ORDER: {
13318
- typeName: '单据类型',
13319
- tagName: '标签'
13320
- },
13321
- WLN_SYSTEM_ORDER: {
13322
- typeName: '订单类型',
13323
- tagName: '标记'
13324
- },
13325
- WDT_SYSTEM_ORDER: {
13326
- typeName: '订单类型',
13327
- tagName: '订单标签'
13328
- }
13665
+ var columnsMap = {
13666
+ BS_SYSTEM_ORDER: [{
13667
+ title: '单据类型',
13668
+ dataIndex: 'billType',
13669
+ width: 150
13670
+ }, {
13671
+ title: '系统订单号',
13672
+ dataIndex: 'billNo',
13673
+ width: 150
13674
+ }, {
13675
+ title: '标签',
13676
+ dataIndex: 'billTag',
13677
+ width: 150
13678
+ }],
13679
+ WLN_SYSTEM_ORDER: [{
13680
+ title: '订单类型',
13681
+ dataIndex: 'billType',
13682
+ width: 150
13683
+ }, {
13684
+ title: '系统订单号',
13685
+ dataIndex: 'billNo',
13686
+ width: 150
13687
+ }, {
13688
+ title: '标记',
13689
+ dataIndex: 'billTag',
13690
+ width: 150
13691
+ }],
13692
+ WDT_SYSTEM_ORDER: [{
13693
+ title: '订单类型',
13694
+ dataIndex: 'billType',
13695
+ width: 150
13696
+ }, {
13697
+ title: '系统订单号',
13698
+ dataIndex: 'billNo',
13699
+ width: 150
13700
+ }, {
13701
+ title: '订单标签',
13702
+ dataIndex: 'billTag',
13703
+ width: 150
13704
+ }],
13705
+ BS_E3_SYSTEM_ORDER: [{
13706
+ title: '系统订单号',
13707
+ dataIndex: 'orderSn',
13708
+ width: 150
13709
+ }, {
13710
+ title: '订单状态',
13711
+ dataIndex: 'orderStatus',
13712
+ width: 100
13713
+ }, {
13714
+ title: '是否被拆分',
13715
+ dataIndex: 'isSplit',
13716
+ width: 100
13717
+ }, {
13718
+ title: '是否拆分子单',
13719
+ dataIndex: 'isSplitNew',
13720
+ width: 100
13721
+ }, {
13722
+ title: '是否被合并',
13723
+ dataIndex: 'isCombine',
13724
+ width: 100
13725
+ }, {
13726
+ title: '是否合并新单',
13727
+ dataIndex: 'isCombineNew',
13728
+ width: 100
13729
+ }, {
13730
+ title: '是否复制单',
13731
+ dataIndex: 'isCopy',
13732
+ width: 100
13733
+ }, {
13734
+ title: '是否换货单',
13735
+ dataIndex: 'isHH',
13736
+ width: 100
13737
+ }, {
13738
+ title: '订单备注',
13739
+ dataIndex: 'orderMsg',
13740
+ width: 150
13741
+ }]
13742
+ };
13743
+ var rowKeyMap = {
13744
+ BS_SYSTEM_ORDER: 'billNo',
13745
+ WLN_SYSTEM_ORDER: 'billNo',
13746
+ WDT_SYSTEM_ORDER: 'billNo',
13747
+ BS_E3_SYSTEM_ORDER: 'orderSn'
13329
13748
  };
13330
13749
  var index$1 = (function (props) {
13331
13750
  var value = props.value,
@@ -13343,21 +13762,13 @@ var index$1 = (function (props) {
13343
13762
  getWlnOrderList(value.orderNo);
13344
13763
  } else if (type === 'WDT_SYSTEM_ORDER') {
13345
13764
  getWdtOrderList(value.orderNo);
13765
+ } else if (type === 'BS_E3_SYSTEM_ORDER') {
13766
+ getBsE3OrderList(value.orderNo);
13346
13767
  }
13347
13768
  }
13348
13769
  }, [value, type]);
13349
13770
  var columns = useMemo(function () {
13350
- var _columnsNameMap$type, _columnsNameMap$type2;
13351
- return [{
13352
- dataIndex: 'billType',
13353
- title: columnsNameMap === null || columnsNameMap === void 0 ? void 0 : (_columnsNameMap$type = columnsNameMap[type]) === null || _columnsNameMap$type === void 0 ? void 0 : _columnsNameMap$type.typeName
13354
- }, {
13355
- dataIndex: 'billNo',
13356
- title: '系统订单号'
13357
- }, {
13358
- dataIndex: 'billTag',
13359
- title: columnsNameMap === null || columnsNameMap === void 0 ? void 0 : (_columnsNameMap$type2 = columnsNameMap[type]) === null || _columnsNameMap$type2 === void 0 ? void 0 : _columnsNameMap$type2.tagName
13360
- }];
13771
+ return columnsMap[type] || [];
13361
13772
  }, [type]);
13362
13773
  var getOrderList = /*#__PURE__*/function () {
13363
13774
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
@@ -13501,6 +13912,62 @@ var index$1 = (function (props) {
13501
13912
  return _ref3.apply(this, arguments);
13502
13913
  };
13503
13914
  }();
13915
+ var getBsE3OrderList = /*#__PURE__*/function () {
13916
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(orderNo) {
13917
+ var _yield$request4, success, data, trades;
13918
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
13919
+ while (1) switch (_context4.prev = _context4.next) {
13920
+ case 0:
13921
+ _context4.next = 2;
13922
+ return extendRequest('/qy/gdfw/order/bsE3OrderDetail', {
13923
+ method: 'post',
13924
+ data: {
13925
+ billNo: orderNo
13926
+ }
13927
+ });
13928
+ case 2:
13929
+ _yield$request4 = _context4.sent;
13930
+ success = _yield$request4.success;
13931
+ data = _yield$request4.data;
13932
+ if (success) {
13933
+ trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
13934
+ return (item.srcTid || '').split(',').includes(orderNo);
13935
+ }).map(function (item) {
13936
+ if (Array.isArray(item.goodDetails)) {
13937
+ item.goodDetails = item.goodDetails.filter(function (good) {
13938
+ return good.srcTid === orderNo;
13939
+ });
13940
+ }
13941
+ return item;
13942
+ });
13943
+ _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13944
+ orders: trades.map(function (item) {
13945
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13946
+ billNo: item.tradeNo,
13947
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13948
+ billTag: item.tagName
13949
+ });
13950
+ }),
13951
+ showOrderInfo: trades.map(function (item) {
13952
+ return {
13953
+ billNo: item.tradeNo,
13954
+ billType: WDT_ORDER_TYPE_MAP[item.tradeType],
13955
+ billTag: item.tagName
13956
+ };
13957
+ })
13958
+ }));
13959
+ }
13960
+ onceRef.current = false;
13961
+ case 7:
13962
+ case "end":
13963
+ return _context4.stop();
13964
+ }
13965
+ }, _callee4);
13966
+ }));
13967
+ return function getBsE3OrderList(_x4) {
13968
+ return _ref4.apply(this, arguments);
13969
+ };
13970
+ }();
13504
13971
  var rowSelection = {
13505
13972
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
13506
13973
  fixed: true,
@@ -13521,7 +13988,7 @@ var index$1 = (function (props) {
13521
13988
  dataSource: (value === null || value === void 0 ? void 0 : value.orders) || [],
13522
13989
  columns: columns,
13523
13990
  rowSelection: rowSelection,
13524
- rowKey: 'billNo',
13991
+ rowKey: rowKeyMap[type] || 'billNo',
13525
13992
  size: "small",
13526
13993
  pagination: false,
13527
13994
  scroll: {
@@ -13973,8 +14440,8 @@ var typeMap$1 = {
13973
14440
  key: 'wdtReissueGoods',
13974
14441
  name: '旺店通',
13975
14442
  typeName: 'wdtReissueType',
13976
- wdtSystemOrder: 'wdtSystemOrder',
13977
- wdtSystemOrderNo: 'wdtSystemOrderNo',
14443
+ systemOrder: 'wdtSystemOrder',
14444
+ systemOrderNo: 'wdtSystemOrderNo',
13978
14445
  reissueSelectList: 'wdtReissueSelectList',
13979
14446
  reissueSelectListReturn: 'wdtReissueSelectListReturn',
13980
14447
  reissueDeleteGood: 'wdtReissueDeleteGood',
@@ -13987,7 +14454,7 @@ var typeMap$1 = {
13987
14454
  }
13988
14455
  };
13989
14456
  var wdtReissue = function wdtReissue(props) {
13990
- var _typeMap$type7, _value$typeMap$type$t3, _typeMap$type10, _typeMap$type26, _typeMap$type27, _value$typeMap$type$w2, _typeMap$type28, _typeMap$type29, _typeMap$type30;
14457
+ var _typeMap$type7, _value$typeMap$type$t3, _typeMap$type10, _typeMap$type26, _typeMap$type27, _value$typeMap$type$s2, _typeMap$type28, _typeMap$type29, _typeMap$type30;
13991
14458
  var value = props.value,
13992
14459
  onChange = props.onChange,
13993
14460
  _props$reasonList = props.reasonList,
@@ -14016,6 +14483,7 @@ var wdtReissue = function wdtReissue(props) {
14016
14483
  }));
14017
14484
  });
14018
14485
  }, [value, disabled]);
14486
+ // 用于暂存等系统订单下拉的回显,这块代码有bug,需要跟系统订单组件维护一个公共的slice
14019
14487
  useEffect(function () {
14020
14488
  var _value$orders, _value$showOrderInfo;
14021
14489
  if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
@@ -14027,33 +14495,32 @@ var wdtReissue = function wdtReissue(props) {
14027
14495
  }, [value]);
14028
14496
  useEffect(function () {
14029
14497
  var _typeMap$type5;
14030
- var wdtSystemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.wdtSystemOrderNo];
14031
- if (wdtSystemOrderNo) {
14498
+ var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type5 = typeMap$1[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrderNo];
14499
+ if (systemOrderNo) {
14032
14500
  var _value$typeMap$type$t, _typeMap$type6;
14033
14501
  if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type6 = typeMap$1[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0])) {
14034
- getGoodItems(wdtSystemOrderNo);
14502
+ getGoodItems(systemOrderNo);
14035
14503
  }
14036
14504
  }
14037
14505
  return;
14038
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.wdtSystemOrderNo]]);
14506
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type7 = typeMap$1[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderNo]]);
14039
14507
  useEffect(function () {
14040
14508
  var _value$typeMap$type$t2, _typeMap$type8, _typeMap$type9;
14041
14509
  var typeName = value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type8 = typeMap$1[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0];
14042
- var wdtSystemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.wdtSystemOrderNo];
14510
+ var systemOrderNo = value === null || value === void 0 ? void 0 : value[(_typeMap$type9 = typeMap$1[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrderNo];
14043
14511
  if (['1'].includes(typeName)) {
14044
- wdtSystemOrderNo && getGoodItems(wdtSystemOrderNo);
14512
+ systemOrderNo && getGoodItems(systemOrderNo);
14045
14513
  } else if (['2'].includes(typeName)) {
14046
14514
  var newValue = _objectSpread2({}, value);
14047
- // newValue[`${typeMap?.[type]?.key}`] = [];
14048
14515
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14049
14516
  }
14050
14517
  return;
14051
14518
  }, [value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type10 = typeMap$1[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0]]);
14052
- var getGoodItems = function getGoodItems(wdtSystemOrderNo) {
14053
- var _value$typeMap$type$w, _typeMap$type11, _ref;
14054
- var orders = value === null || value === void 0 ? void 0 : (_value$typeMap$type$w = value[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.wdtSystemOrder]) === null || _value$typeMap$type$w === void 0 ? void 0 : _value$typeMap$type$w.orders;
14519
+ var getGoodItems = function getGoodItems(systemOrderNo) {
14520
+ var _value$typeMap$type$s, _typeMap$type11, _ref;
14521
+ var orders = value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type11 = typeMap$1[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : _value$typeMap$type$s.orders;
14055
14522
  var order = (_ref = orders || []) === null || _ref === void 0 ? void 0 : _ref.find(function (orderItem) {
14056
- return orderItem.billNo === wdtSystemOrderNo;
14523
+ return orderItem.billNo === systemOrderNo;
14057
14524
  });
14058
14525
  if (order) {
14059
14526
  var _typeMap$type12, _order$goodDetails;
@@ -14100,7 +14567,7 @@ var wdtReissue = function wdtReissue(props) {
14100
14567
  billTag: item.tagName
14101
14568
  };
14102
14569
  });
14103
- onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.wdtSystemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.wdtSystemOrder]), {}, {
14570
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type15 = typeMap$1[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type16 = typeMap$1[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrder]), {}, {
14104
14571
  showOrderInfo: showOrderInfo,
14105
14572
  orders: orders
14106
14573
  }))));
@@ -14122,16 +14589,7 @@ var wdtReissue = function wdtReissue(props) {
14122
14589
  newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type18 = typeMap$1[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key)] = [];
14123
14590
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14124
14591
  valueRef.current = newValue;
14125
- // if (['2'].includes(val[0])) {
14126
- // onChange?.(newValue);
14127
- // valueRef.current = newValue;
14128
- // }
14129
- // pubsub.publish(`${typeMap?.[type]?.reissueType}`, {
14130
- // val: val[0],
14131
- // goodValue: newValue,
14132
- // });
14133
14592
  };
14134
-
14135
14593
  var changeGoodHandle = function changeGoodHandle(val) {
14136
14594
  var _typeMap$type19;
14137
14595
  var newValue = _objectSpread2({}, value);
@@ -14146,7 +14604,7 @@ var wdtReissue = function wdtReissue(props) {
14146
14604
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
14147
14605
  var _typeMap$type22, _value$typeMap$type$t4, _typeMap$type23;
14148
14606
  var newValue = _objectSpread2({}, value);
14149
- newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.wdtSystemOrderNo)] = val;
14607
+ newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
14150
14608
  if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t4 = value[(_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _value$typeMap$type$t4 === void 0 ? void 0 : _value$typeMap$type$t4[0])) {
14151
14609
  var _typeMap$type24;
14152
14610
  newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = [];
@@ -14156,8 +14614,8 @@ var wdtReissue = function wdtReissue(props) {
14156
14614
  //显示选择商品按钮 原单换不显示选择商品
14157
14615
  var showChangeBtn = useMemo(function () {
14158
14616
  var _typeMap$type25;
14159
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]);
14160
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo]]);
14617
+ return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo]);
14618
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo]]);
14161
14619
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
14162
14620
  gutter: 8
14163
14621
  }, /*#__PURE__*/React.createElement(Col, {
@@ -14174,12 +14632,12 @@ var wdtReissue = function wdtReissue(props) {
14174
14632
  },
14175
14633
  disabled: disabled,
14176
14634
  allowClear: false,
14177
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.wdtSystemOrderNo)],
14635
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo)],
14178
14636
  onChange: function onChange(val) {
14179
14637
  return changeSystemOrderHandle(val);
14180
14638
  },
14181
14639
  placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
14182
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$w2 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.wdtSystemOrder]) === null || _value$typeMap$type$w2 === void 0 ? void 0 : _value$typeMap$type$w2.showOrderInfo) || []).map(function (item) {
14640
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s2 = value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.showOrderInfo) || []).map(function (item) {
14183
14641
  return /*#__PURE__*/React.createElement(Select.Option, {
14184
14642
  key: item.billNo,
14185
14643
  value: item.billNo,
@@ -14225,7 +14683,7 @@ styleInject(css_248z$a);
14225
14683
  var TabPane$1 = Tabs.TabPane;
14226
14684
  var Option$2 = Select.Option;
14227
14685
  var Search$1 = Input.Search;
14228
- var GoodsModal$4 = function GoodsModal(props) {
14686
+ var GoodsModal$5 = function GoodsModal(props) {
14229
14687
  var onSubmit = props.onSubmit,
14230
14688
  _onCancel = props.onCancel,
14231
14689
  visible = props.visible,
@@ -14676,7 +15134,7 @@ var Goods$1 = function Goods(props, ref) {
14676
15134
  };
14677
15135
  return /*#__PURE__*/React.createElement("div", {
14678
15136
  className: "goodsBox"
14679
- }, /*#__PURE__*/React.createElement(GoodsModal$4, {
15137
+ }, /*#__PURE__*/React.createElement(GoodsModal$5, {
14680
15138
  visible: visible,
14681
15139
  onSubmit: onSubmit,
14682
15140
  type: type,