@kmkf-fe-packages/basic-components 1.4.0 → 1.4.3-rc.0

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.js CHANGED
@@ -12,6 +12,7 @@ var zhCN = require('antd/lib/locale/zh_CN');
12
12
  var lodash = require('lodash');
13
13
  var ahooks = require('ahooks');
14
14
  var pubsub = require('pubsub-js');
15
+ var BigNumber = require('bignumber.js');
15
16
 
16
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
18
 
@@ -19,378 +20,365 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
20
  var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
20
21
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
21
22
  var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
22
-
23
- function _iterableToArrayLimit(r, l) {
24
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
25
- if (null != t) {
26
- var e,
27
- n,
28
- i,
29
- u,
30
- a = [],
31
- f = !0,
32
- o = !1;
23
+ var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
24
+
25
+ function _iterableToArrayLimit(arr, i) {
26
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (null != _i) {
28
+ var _s,
29
+ _e,
30
+ _x,
31
+ _r,
32
+ _arr = [],
33
+ _n = !0,
34
+ _d = !1;
33
35
  try {
34
- if (i = (t = t.call(r)).next, 0 === l) {
35
- if (Object(t) !== t) return;
36
- f = !1;
37
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
38
- } catch (r) {
39
- o = !0, n = r;
36
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
37
+ if (Object(_i) !== _i) return;
38
+ _n = !1;
39
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
40
+ } catch (err) {
41
+ _d = !0, _e = err;
40
42
  } finally {
41
43
  try {
42
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
44
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
43
45
  } finally {
44
- if (o) throw n;
46
+ if (_d) throw _e;
45
47
  }
46
48
  }
47
- return a;
49
+ return _arr;
48
50
  }
49
51
  }
50
- function ownKeys(e, r) {
51
- var t = Object.keys(e);
52
+ function ownKeys(object, enumerableOnly) {
53
+ var keys = Object.keys(object);
52
54
  if (Object.getOwnPropertySymbols) {
53
- var o = Object.getOwnPropertySymbols(e);
54
- r && (o = o.filter(function (r) {
55
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
56
- })), t.push.apply(t, o);
55
+ var symbols = Object.getOwnPropertySymbols(object);
56
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
57
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
58
+ })), keys.push.apply(keys, symbols);
57
59
  }
58
- return t;
59
- }
60
- function _objectSpread2(e) {
61
- for (var r = 1; r < arguments.length; r++) {
62
- var t = null != arguments[r] ? arguments[r] : {};
63
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
64
- _defineProperty(e, r, t[r]);
65
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
66
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
60
+ return keys;
61
+ }
62
+ function _objectSpread2(target) {
63
+ for (var i = 1; i < arguments.length; i++) {
64
+ var source = null != arguments[i] ? arguments[i] : {};
65
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
66
+ _defineProperty(target, key, source[key]);
67
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
68
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67
69
  });
68
70
  }
69
- return e;
71
+ return target;
70
72
  }
71
73
  function _regeneratorRuntime() {
72
74
  _regeneratorRuntime = function () {
73
- return e;
74
- };
75
- var t,
76
- e = {},
77
- r = Object.prototype,
78
- n = r.hasOwnProperty,
79
- o = Object.defineProperty || function (t, e, r) {
80
- t[e] = r.value;
75
+ return exports;
76
+ };
77
+ var exports = {},
78
+ Op = Object.prototype,
79
+ hasOwn = Op.hasOwnProperty,
80
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
81
+ obj[key] = desc.value;
81
82
  },
82
- i = "function" == typeof Symbol ? Symbol : {},
83
- a = i.iterator || "@@iterator",
84
- c = i.asyncIterator || "@@asyncIterator",
85
- u = i.toStringTag || "@@toStringTag";
86
- function define(t, e, r) {
87
- return Object.defineProperty(t, e, {
88
- value: r,
83
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
84
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
85
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
86
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
87
+ function define(obj, key, value) {
88
+ return Object.defineProperty(obj, key, {
89
+ value: value,
89
90
  enumerable: !0,
90
91
  configurable: !0,
91
92
  writable: !0
92
- }), t[e];
93
+ }), obj[key];
93
94
  }
94
95
  try {
95
96
  define({}, "");
96
- } catch (t) {
97
- define = function (t, e, r) {
98
- return t[e] = r;
97
+ } catch (err) {
98
+ define = function (obj, key, value) {
99
+ return obj[key] = value;
99
100
  };
100
101
  }
101
- function wrap(t, e, r, n) {
102
- var i = e && e.prototype instanceof Generator ? e : Generator,
103
- a = Object.create(i.prototype),
104
- c = new Context(n || []);
105
- return o(a, "_invoke", {
106
- value: makeInvokeMethod(t, r, c)
107
- }), a;
102
+ function wrap(innerFn, outerFn, self, tryLocsList) {
103
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
104
+ generator = Object.create(protoGenerator.prototype),
105
+ context = new Context(tryLocsList || []);
106
+ return defineProperty(generator, "_invoke", {
107
+ value: makeInvokeMethod(innerFn, self, context)
108
+ }), generator;
108
109
  }
109
- function tryCatch(t, e, r) {
110
+ function tryCatch(fn, obj, arg) {
110
111
  try {
111
112
  return {
112
113
  type: "normal",
113
- arg: t.call(e, r)
114
+ arg: fn.call(obj, arg)
114
115
  };
115
- } catch (t) {
116
+ } catch (err) {
116
117
  return {
117
118
  type: "throw",
118
- arg: t
119
+ arg: err
119
120
  };
120
121
  }
121
122
  }
122
- e.wrap = wrap;
123
- var h = "suspendedStart",
124
- l = "suspendedYield",
125
- f = "executing",
126
- s = "completed",
127
- y = {};
123
+ exports.wrap = wrap;
124
+ var ContinueSentinel = {};
128
125
  function Generator() {}
129
126
  function GeneratorFunction() {}
130
127
  function GeneratorFunctionPrototype() {}
131
- var p = {};
132
- define(p, a, function () {
128
+ var IteratorPrototype = {};
129
+ define(IteratorPrototype, iteratorSymbol, function () {
133
130
  return this;
134
131
  });
135
- var d = Object.getPrototypeOf,
136
- v = d && d(d(values([])));
137
- v && v !== r && n.call(v, a) && (p = v);
138
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
139
- function defineIteratorMethods(t) {
140
- ["next", "throw", "return"].forEach(function (e) {
141
- define(t, e, function (t) {
142
- return this._invoke(e, t);
132
+ var getProto = Object.getPrototypeOf,
133
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
134
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
135
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
136
+ function defineIteratorMethods(prototype) {
137
+ ["next", "throw", "return"].forEach(function (method) {
138
+ define(prototype, method, function (arg) {
139
+ return this._invoke(method, arg);
143
140
  });
144
141
  });
145
142
  }
146
- function AsyncIterator(t, e) {
147
- function invoke(r, o, i, a) {
148
- var c = tryCatch(t[r], t, o);
149
- if ("throw" !== c.type) {
150
- var u = c.arg,
151
- h = u.value;
152
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
153
- invoke("next", t, i, a);
154
- }, function (t) {
155
- invoke("throw", t, i, a);
156
- }) : e.resolve(h).then(function (t) {
157
- u.value = t, i(u);
158
- }, function (t) {
159
- return invoke("throw", t, i, a);
143
+ function AsyncIterator(generator, PromiseImpl) {
144
+ function invoke(method, arg, resolve, reject) {
145
+ var record = tryCatch(generator[method], generator, arg);
146
+ if ("throw" !== record.type) {
147
+ var result = record.arg,
148
+ value = result.value;
149
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
150
+ invoke("next", value, resolve, reject);
151
+ }, function (err) {
152
+ invoke("throw", err, resolve, reject);
153
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
154
+ result.value = unwrapped, resolve(result);
155
+ }, function (error) {
156
+ return invoke("throw", error, resolve, reject);
160
157
  });
161
158
  }
162
- a(c.arg);
159
+ reject(record.arg);
163
160
  }
164
- var r;
165
- o(this, "_invoke", {
166
- value: function (t, n) {
161
+ var previousPromise;
162
+ defineProperty(this, "_invoke", {
163
+ value: function (method, arg) {
167
164
  function callInvokeWithMethodAndArg() {
168
- return new e(function (e, r) {
169
- invoke(t, n, e, r);
165
+ return new PromiseImpl(function (resolve, reject) {
166
+ invoke(method, arg, resolve, reject);
170
167
  });
171
168
  }
172
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
169
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
173
170
  }
174
171
  });
175
172
  }
176
- function makeInvokeMethod(e, r, n) {
177
- var o = h;
178
- return function (i, a) {
179
- if (o === f) throw new Error("Generator is already running");
180
- if (o === s) {
181
- if ("throw" === i) throw a;
182
- return {
183
- value: t,
184
- done: !0
185
- };
173
+ function makeInvokeMethod(innerFn, self, context) {
174
+ var state = "suspendedStart";
175
+ return function (method, arg) {
176
+ if ("executing" === state) throw new Error("Generator is already running");
177
+ if ("completed" === state) {
178
+ if ("throw" === method) throw arg;
179
+ return doneResult();
186
180
  }
187
- for (n.method = i, n.arg = a;;) {
188
- var c = n.delegate;
189
- if (c) {
190
- var u = maybeInvokeDelegate(c, n);
191
- if (u) {
192
- if (u === y) continue;
193
- return u;
181
+ for (context.method = method, context.arg = arg;;) {
182
+ var delegate = context.delegate;
183
+ if (delegate) {
184
+ var delegateResult = maybeInvokeDelegate(delegate, context);
185
+ if (delegateResult) {
186
+ if (delegateResult === ContinueSentinel) continue;
187
+ return delegateResult;
194
188
  }
195
189
  }
196
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
197
- if (o === h) throw o = s, n.arg;
198
- n.dispatchException(n.arg);
199
- } else "return" === n.method && n.abrupt("return", n.arg);
200
- o = f;
201
- var p = tryCatch(e, r, n);
202
- if ("normal" === p.type) {
203
- if (o = n.done ? s : l, p.arg === y) continue;
190
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
191
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
192
+ context.dispatchException(context.arg);
193
+ } else "return" === context.method && context.abrupt("return", context.arg);
194
+ state = "executing";
195
+ var record = tryCatch(innerFn, self, context);
196
+ if ("normal" === record.type) {
197
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
204
198
  return {
205
- value: p.arg,
206
- done: n.done
199
+ value: record.arg,
200
+ done: context.done
207
201
  };
208
202
  }
209
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
203
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
210
204
  }
211
205
  };
212
206
  }
213
- function maybeInvokeDelegate(e, r) {
214
- var n = r.method,
215
- o = e.iterator[n];
216
- 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;
217
- var i = tryCatch(o, e.iterator, r.arg);
218
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
219
- var a = i.arg;
220
- 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);
207
+ function maybeInvokeDelegate(delegate, context) {
208
+ var methodName = context.method,
209
+ method = delegate.iterator[methodName];
210
+ 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;
211
+ var record = tryCatch(method, delegate.iterator, context.arg);
212
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
213
+ var info = record.arg;
214
+ 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);
221
215
  }
222
- function pushTryEntry(t) {
223
- var e = {
224
- tryLoc: t[0]
216
+ function pushTryEntry(locs) {
217
+ var entry = {
218
+ tryLoc: locs[0]
225
219
  };
226
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
220
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
227
221
  }
228
- function resetTryEntry(t) {
229
- var e = t.completion || {};
230
- e.type = "normal", delete e.arg, t.completion = e;
222
+ function resetTryEntry(entry) {
223
+ var record = entry.completion || {};
224
+ record.type = "normal", delete record.arg, entry.completion = record;
231
225
  }
232
- function Context(t) {
226
+ function Context(tryLocsList) {
233
227
  this.tryEntries = [{
234
228
  tryLoc: "root"
235
- }], t.forEach(pushTryEntry, this), this.reset(!0);
229
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
236
230
  }
237
- function values(e) {
238
- if (e || "" === e) {
239
- var r = e[a];
240
- if (r) return r.call(e);
241
- if ("function" == typeof e.next) return e;
242
- if (!isNaN(e.length)) {
243
- var o = -1,
244
- i = function next() {
245
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
246
- return next.value = t, next.done = !0, next;
231
+ function values(iterable) {
232
+ if (iterable) {
233
+ var iteratorMethod = iterable[iteratorSymbol];
234
+ if (iteratorMethod) return iteratorMethod.call(iterable);
235
+ if ("function" == typeof iterable.next) return iterable;
236
+ if (!isNaN(iterable.length)) {
237
+ var i = -1,
238
+ next = function next() {
239
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
240
+ return next.value = undefined, next.done = !0, next;
247
241
  };
248
- return i.next = i;
242
+ return next.next = next;
249
243
  }
250
244
  }
251
- throw new TypeError(typeof e + " is not iterable");
245
+ return {
246
+ next: doneResult
247
+ };
252
248
  }
253
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
249
+ function doneResult() {
250
+ return {
251
+ value: undefined,
252
+ done: !0
253
+ };
254
+ }
255
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
254
256
  value: GeneratorFunctionPrototype,
255
257
  configurable: !0
256
- }), o(GeneratorFunctionPrototype, "constructor", {
258
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
257
259
  value: GeneratorFunction,
258
260
  configurable: !0
259
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
260
- var e = "function" == typeof t && t.constructor;
261
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
262
- }, e.mark = function (t) {
263
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
264
- }, e.awrap = function (t) {
261
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
262
+ var ctor = "function" == typeof genFun && genFun.constructor;
263
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
264
+ }, exports.mark = function (genFun) {
265
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
266
+ }, exports.awrap = function (arg) {
265
267
  return {
266
- __await: t
268
+ __await: arg
267
269
  };
268
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
270
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
269
271
  return this;
270
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
271
- void 0 === i && (i = Promise);
272
- var a = new AsyncIterator(wrap(t, r, n, o), i);
273
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
274
- return t.done ? t.value : a.next();
272
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
273
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
274
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
275
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
276
+ return result.done ? result.value : iter.next();
275
277
  });
276
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
278
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
277
279
  return this;
278
- }), define(g, "toString", function () {
280
+ }), define(Gp, "toString", function () {
279
281
  return "[object Generator]";
280
- }), e.keys = function (t) {
281
- var e = Object(t),
282
- r = [];
283
- for (var n in e) r.push(n);
284
- return r.reverse(), function next() {
285
- for (; r.length;) {
286
- var t = r.pop();
287
- if (t in e) return next.value = t, next.done = !1, next;
282
+ }), exports.keys = function (val) {
283
+ var object = Object(val),
284
+ keys = [];
285
+ for (var key in object) keys.push(key);
286
+ return keys.reverse(), function next() {
287
+ for (; keys.length;) {
288
+ var key = keys.pop();
289
+ if (key in object) return next.value = key, next.done = !1, next;
288
290
  }
289
291
  return next.done = !0, next;
290
292
  };
291
- }, e.values = values, Context.prototype = {
293
+ }, exports.values = values, Context.prototype = {
292
294
  constructor: Context,
293
- reset: function (e) {
294
- 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);
295
+ reset: function (skipTempReset) {
296
+ 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);
295
297
  },
296
298
  stop: function () {
297
299
  this.done = !0;
298
- var t = this.tryEntries[0].completion;
299
- if ("throw" === t.type) throw t.arg;
300
+ var rootRecord = this.tryEntries[0].completion;
301
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
300
302
  return this.rval;
301
303
  },
302
- dispatchException: function (e) {
303
- if (this.done) throw e;
304
- var r = this;
305
- function handle(n, o) {
306
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
304
+ dispatchException: function (exception) {
305
+ if (this.done) throw exception;
306
+ var context = this;
307
+ function handle(loc, caught) {
308
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
307
309
  }
308
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
309
- var i = this.tryEntries[o],
310
- a = i.completion;
311
- if ("root" === i.tryLoc) return handle("end");
312
- if (i.tryLoc <= this.prev) {
313
- var c = n.call(i, "catchLoc"),
314
- u = n.call(i, "finallyLoc");
315
- if (c && u) {
316
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
317
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
318
- } else if (c) {
319
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
310
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
311
+ var entry = this.tryEntries[i],
312
+ record = entry.completion;
313
+ if ("root" === entry.tryLoc) return handle("end");
314
+ if (entry.tryLoc <= this.prev) {
315
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
316
+ hasFinally = hasOwn.call(entry, "finallyLoc");
317
+ if (hasCatch && hasFinally) {
318
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
319
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
320
+ } else if (hasCatch) {
321
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
320
322
  } else {
321
- if (!u) throw new Error("try statement without catch or finally");
322
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
323
+ if (!hasFinally) throw new Error("try statement without catch or finally");
324
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
323
325
  }
324
326
  }
325
327
  }
326
328
  },
327
- abrupt: function (t, e) {
328
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
329
- var o = this.tryEntries[r];
330
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
331
- var i = o;
329
+ abrupt: function (type, arg) {
330
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
331
+ var entry = this.tryEntries[i];
332
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
333
+ var finallyEntry = entry;
332
334
  break;
333
335
  }
334
336
  }
335
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
336
- var a = i ? i.completion : {};
337
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
337
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
338
+ var record = finallyEntry ? finallyEntry.completion : {};
339
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
338
340
  },
339
- complete: function (t, e) {
340
- if ("throw" === t.type) throw t.arg;
341
- 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;
341
+ complete: function (record, afterLoc) {
342
+ if ("throw" === record.type) throw record.arg;
343
+ 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;
342
344
  },
343
- finish: function (t) {
344
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
345
- var r = this.tryEntries[e];
346
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
345
+ finish: function (finallyLoc) {
346
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
347
+ var entry = this.tryEntries[i];
348
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
347
349
  }
348
350
  },
349
- catch: function (t) {
350
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
351
- var r = this.tryEntries[e];
352
- if (r.tryLoc === t) {
353
- var n = r.completion;
354
- if ("throw" === n.type) {
355
- var o = n.arg;
356
- resetTryEntry(r);
351
+ catch: function (tryLoc) {
352
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
353
+ var entry = this.tryEntries[i];
354
+ if (entry.tryLoc === tryLoc) {
355
+ var record = entry.completion;
356
+ if ("throw" === record.type) {
357
+ var thrown = record.arg;
358
+ resetTryEntry(entry);
357
359
  }
358
- return o;
360
+ return thrown;
359
361
  }
360
362
  }
361
363
  throw new Error("illegal catch attempt");
362
364
  },
363
- delegateYield: function (e, r, n) {
365
+ delegateYield: function (iterable, resultName, nextLoc) {
364
366
  return this.delegate = {
365
- iterator: values(e),
366
- resultName: r,
367
- nextLoc: n
368
- }, "next" === this.method && (this.arg = t), y;
369
- }
370
- }, e;
371
- }
372
- function _toPrimitive(t, r) {
373
- if ("object" != typeof t || !t) return t;
374
- var e = t[Symbol.toPrimitive];
375
- if (void 0 !== e) {
376
- var i = e.call(t, r || "default");
377
- if ("object" != typeof i) return i;
378
- throw new TypeError("@@toPrimitive must return a primitive value.");
379
- }
380
- return ("string" === r ? String : Number)(t);
381
- }
382
- function _toPropertyKey(t) {
383
- var i = _toPrimitive(t, "string");
384
- return "symbol" == typeof i ? i : String(i);
367
+ iterator: values(iterable),
368
+ resultName: resultName,
369
+ nextLoc: nextLoc
370
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
371
+ }
372
+ }, exports;
385
373
  }
386
- function _typeof(o) {
374
+ function _typeof(obj) {
387
375
  "@babel/helpers - typeof";
388
376
 
389
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
390
- return typeof o;
391
- } : function (o) {
392
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
393
- }, _typeof(o);
377
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
378
+ return typeof obj;
379
+ } : function (obj) {
380
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
381
+ }, _typeof(obj);
394
382
  }
395
383
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
396
384
  try {
@@ -497,6 +485,20 @@ function _nonIterableSpread() {
497
485
  function _nonIterableRest() {
498
486
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
499
487
  }
488
+ function _toPrimitive(input, hint) {
489
+ if (typeof input !== "object" || input === null) return input;
490
+ var prim = input[Symbol.toPrimitive];
491
+ if (prim !== undefined) {
492
+ var res = prim.call(input, hint || "default");
493
+ if (typeof res !== "object") return res;
494
+ throw new TypeError("@@toPrimitive must return a primitive value.");
495
+ }
496
+ return (hint === "string" ? String : Number)(input);
497
+ }
498
+ function _toPropertyKey(arg) {
499
+ var key = _toPrimitive(arg, "string");
500
+ return typeof key === "symbol" ? key : String(key);
501
+ }
500
502
 
501
503
  function ApaasCascader(props) {
502
504
  return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
@@ -10455,7 +10457,7 @@ var jstGoods = function jstGoods(props) {
10455
10457
  var wdtSendOptions = kmkfUtils.WdtSendData.getInstance().wdtSendData || [];
10456
10458
  React.useEffect(function () {
10457
10459
  //没有值塞个默认值
10458
- if (!(value === null || value === void 0 ? void 0 : value.length)) {
10460
+ if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
10459
10461
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
10460
10462
  }
10461
10463
  }, [value, type]);
@@ -10483,6 +10485,9 @@ var jstGoods = function jstGoods(props) {
10483
10485
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10484
10486
  changeOrderInfo[type] = val;
10485
10487
  changeOrderInfo['sendId'] = option.value;
10488
+ if (platformType === 'wdt' && type === 'sendName') {
10489
+ changeOrderInfo['sendSnapshotName'] = option.label;
10490
+ }
10486
10491
  var newList = _toConsumableArray(value);
10487
10492
  newList[changeIndex] = changeOrderInfo;
10488
10493
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
@@ -10518,7 +10523,7 @@ var jstGoods = function jstGoods(props) {
10518
10523
  return setChangeIndex(index);
10519
10524
  }
10520
10525
  }, "\u5305\u88F9".concat(index + 1)));
10521
- }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10526
+ }))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10522
10527
  disabled: disabled,
10523
10528
  placeholder: "\u7269\u6D41\u516C\u53F8",
10524
10529
  onChange: function onChange(val) {
@@ -11675,9 +11680,34 @@ var GoodItem$1 = function GoodItem(props) {
11675
11680
  React.useEffect(function () {
11676
11681
  setSelectedRowKeys([]);
11677
11682
  }, [tableSelect, selectType]);
11678
- var updateHandle = function updateHandle(val, index, type) {
11683
+ var updateHandle = function updateHandle(val, index, columnType) {
11679
11684
  if (value === null || value === void 0 ? void 0 : value.length) {
11680
- value[index][type] = val;
11685
+ value[index][columnType] = val;
11686
+ if (type === 'WDT_RETURN_GOODS') {
11687
+ if (['sharePrice', 'num'].includes(columnType)) {
11688
+ var totalMoney = null;
11689
+ if (columnType === 'num') {
11690
+ totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].sharePrice));
11691
+ } else {
11692
+ totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
11693
+ }
11694
+ if (totalMoney !== null) {
11695
+ value[index]['returnPrice'] = totalMoney.toString();
11696
+ }
11697
+ }
11698
+ } else if (type === 'WDT_EXCHANGE_GOODS') {
11699
+ if (['price', 'num'].includes(columnType)) {
11700
+ var _totalMoney = null;
11701
+ if (columnType === 'num') {
11702
+ _totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].price));
11703
+ } else {
11704
+ _totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
11705
+ }
11706
+ if (_totalMoney !== null) {
11707
+ value[index]['exchangePrice'] = _totalMoney.toString();
11708
+ }
11709
+ }
11710
+ }
11681
11711
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
11682
11712
  }
11683
11713
  };
@@ -11783,6 +11813,260 @@ var GoodItem$1 = function GoodItem(props) {
11783
11813
  }
11784
11814
  }];
11785
11815
  break;
11816
+ case 'WDT_RETURN_GOODS':
11817
+ {
11818
+ columns = [{
11819
+ dataIndex: 'goodId',
11820
+ title: "SPUID",
11821
+ align: 'center',
11822
+ ellipsis: true,
11823
+ width: 70
11824
+ }, {
11825
+ dataIndex: 'goodNo',
11826
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11827
+ align: 'center',
11828
+ ellipsis: true,
11829
+ width: 180
11830
+ }, {
11831
+ dataIndex: 'goodName',
11832
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11833
+ align: 'center',
11834
+ ellipsis: true,
11835
+ width: 250
11836
+ }, {
11837
+ dataIndex: 'specId',
11838
+ title: "".concat(text, "SKUID"),
11839
+ align: 'center',
11840
+ ellipsis: true,
11841
+ width: 100
11842
+ }, {
11843
+ dataIndex: 'specNo',
11844
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11845
+ align: 'center',
11846
+ ellipsis: true,
11847
+ width: 180
11848
+ }, {
11849
+ dataIndex: 'specName',
11850
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11851
+ align: 'center',
11852
+ ellipsis: true,
11853
+ width: 250
11854
+ }, {
11855
+ dataIndex: 'num',
11856
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
11857
+ align: 'center',
11858
+ ellipsis: true,
11859
+ width: 100,
11860
+ render: function render(val, record, index) {
11861
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11862
+ style: {
11863
+ width: 70
11864
+ },
11865
+ value: val,
11866
+ min: 1,
11867
+ precision: 0,
11868
+ onChange: function onChange(num) {
11869
+ return updateHandle(num, index, 'num');
11870
+ }
11871
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11872
+ }
11873
+ }, {
11874
+ dataIndex: 'sharePrice',
11875
+ title: "\u5206\u644A\u4EF7",
11876
+ align: 'center',
11877
+ ellipsis: true,
11878
+ width: 80,
11879
+ render: function render(val, record, index) {
11880
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11881
+ style: {
11882
+ width: 70
11883
+ },
11884
+ value: val,
11885
+ min: 0,
11886
+ onChange: function onChange(value) {
11887
+ return updateHandle(value, index, 'sharePrice');
11888
+ }
11889
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11890
+ }
11891
+ }, {
11892
+ dataIndex: 'returnPrice',
11893
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
11894
+ align: 'center',
11895
+ ellipsis: true,
11896
+ width: 100
11897
+ }, {
11898
+ dataIndex: 'giftType',
11899
+ title: "\u8D60\u54C1\u65B9\u5F0F",
11900
+ align: 'center',
11901
+ ellipsis: true,
11902
+ width: 100,
11903
+ render: function render(val) {
11904
+ var giftTypeMap = {
11905
+ 0: '非赠品',
11906
+ 1: '自动赠送',
11907
+ 2: '手工赠送',
11908
+ 3: '回购自动送赠品',
11909
+ 4: '前N有礼送赠品',
11910
+ 6: '天猫优仓赠品',
11911
+ 7: '淘宝CRM会员送赠'
11912
+ };
11913
+ return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
11914
+ }
11915
+ }, {
11916
+ dataIndex: 'type',
11917
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
11918
+ align: 'center',
11919
+ ellipsis: true,
11920
+ width: 100,
11921
+ render: function render(val, record, index) {
11922
+ var options = [{
11923
+ label: '单品',
11924
+ value: '1'
11925
+ }, {
11926
+ label: '组合装',
11927
+ value: '2'
11928
+ }];
11929
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11930
+ style: {
11931
+ width: 70
11932
+ },
11933
+ options: options,
11934
+ value: val,
11935
+ onChange: function onChange(value) {
11936
+ return updateHandle(value, index, 'type');
11937
+ }
11938
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11939
+ }
11940
+ }];
11941
+ }
11942
+ break;
11943
+ case 'WDT_EXCHANGE_GOODS':
11944
+ {
11945
+ columns = [{
11946
+ dataIndex: 'goodId',
11947
+ title: "SPUID",
11948
+ align: 'center',
11949
+ ellipsis: true,
11950
+ width: 70
11951
+ }, {
11952
+ dataIndex: 'goodNo',
11953
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11954
+ align: 'center',
11955
+ ellipsis: true,
11956
+ width: 180
11957
+ }, {
11958
+ dataIndex: 'goodName',
11959
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11960
+ align: 'center',
11961
+ ellipsis: true,
11962
+ width: 250
11963
+ }, {
11964
+ dataIndex: 'specId',
11965
+ title: "".concat(text, "SKUID"),
11966
+ align: 'center',
11967
+ ellipsis: true,
11968
+ width: 100
11969
+ }, {
11970
+ dataIndex: 'specNo',
11971
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11972
+ align: 'center',
11973
+ ellipsis: true,
11974
+ width: 180
11975
+ }, {
11976
+ dataIndex: 'specName',
11977
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11978
+ align: 'center',
11979
+ ellipsis: true,
11980
+ width: 250
11981
+ }, {
11982
+ dataIndex: 'num',
11983
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
11984
+ align: 'center',
11985
+ ellipsis: true,
11986
+ width: 100,
11987
+ render: function render(val, record, index) {
11988
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11989
+ style: {
11990
+ width: 70
11991
+ },
11992
+ value: val,
11993
+ min: 1,
11994
+ precision: 0,
11995
+ onChange: function onChange(num) {
11996
+ return updateHandle(num, index, 'num');
11997
+ }
11998
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11999
+ }
12000
+ }, {
12001
+ dataIndex: 'price',
12002
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
12003
+ align: 'center',
12004
+ ellipsis: true,
12005
+ width: 100,
12006
+ render: function render(val, record, index) {
12007
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
12008
+ style: {
12009
+ width: 70
12010
+ },
12011
+ value: val,
12012
+ min: 0,
12013
+ onChange: function onChange(value) {
12014
+ return updateHandle(value, index, 'price');
12015
+ }
12016
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12017
+ }
12018
+ }, {
12019
+ dataIndex: 'exchangePrice',
12020
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
12021
+ align: 'center',
12022
+ ellipsis: true,
12023
+ width: 100
12024
+ }, {
12025
+ dataIndex: 'giftType',
12026
+ title: "\u8D60\u54C1\u65B9\u5F0F",
12027
+ align: 'center',
12028
+ ellipsis: true,
12029
+ width: 100,
12030
+ render: function render(val) {
12031
+ var giftTypeMap = {
12032
+ 0: '非赠品',
12033
+ 1: '自动赠送',
12034
+ 2: '手工赠送',
12035
+ 3: '回购自动送赠品',
12036
+ 4: '前N有礼送赠品',
12037
+ 6: '天猫优仓赠品',
12038
+ 7: '淘宝CRM会员送赠'
12039
+ };
12040
+ return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
12041
+ }
12042
+ }, {
12043
+ dataIndex: 'type',
12044
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
12045
+ align: 'center',
12046
+ ellipsis: true,
12047
+ width: 100,
12048
+ render: function render(val, record, index) {
12049
+ var options = [{
12050
+ label: '单品',
12051
+ value: '1'
12052
+ }, {
12053
+ label: '组合装',
12054
+ value: '2'
12055
+ }];
12056
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
12057
+ style: {
12058
+ width: 70
12059
+ },
12060
+ options: options,
12061
+ value: val,
12062
+ onChange: function onChange(value) {
12063
+ return updateHandle(value, index, 'type');
12064
+ }
12065
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12066
+ }
12067
+ }];
12068
+ }
12069
+ break;
11786
12070
  default:
11787
12071
  columns = [{
11788
12072
  dataIndex: 'mark',
@@ -11924,7 +12208,7 @@ var GoodItem$1 = function GoodItem(props) {
11924
12208
  }, [showHeader, value, disabled]);
11925
12209
  var onSubmit = function onSubmit(list) {
11926
12210
  var newList = [];
11927
- if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
12211
+ if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
11928
12212
  newList = list.map(function (item) {
11929
12213
  item.uuid = kmkfUtils.uuid();
11930
12214
  item.canDelete = true;
@@ -11932,6 +12216,10 @@ var GoodItem$1 = function GoodItem(props) {
11932
12216
  item.orderPrice = 0;
11933
12217
  item.sharePrice = 0;
11934
12218
  item.canUpdateNumber = canUpdateNumber;
12219
+ if (type === 'WDT_EXCHANGE_GOODS') {
12220
+ item.price = item.retailPrice;
12221
+ item.type = '1';
12222
+ }
11935
12223
  return item;
11936
12224
  });
11937
12225
  } else {
@@ -12002,7 +12290,7 @@ var GoodItem$1 = function GoodItem(props) {
12002
12290
  locale: {
12003
12291
  emptyText: '暂无数据'
12004
12292
  }
12005
- })), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
12293
+ })), ['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
12006
12294
  ref: refModal,
12007
12295
  onSubmit: onSubmit,
12008
12296
  width: width,
@@ -12763,7 +13051,7 @@ var index$1 = (function (props) {
12763
13051
  }();
12764
13052
  var getWdtOrderList = /*#__PURE__*/function () {
12765
13053
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderNo) {
12766
- var _yield$request3, success, data;
13054
+ var _yield$request3, success, data, trades;
12767
13055
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
12768
13056
  while (1) switch (_context3.prev = _context3.next) {
12769
13057
  case 0:
@@ -12779,15 +13067,25 @@ var index$1 = (function (props) {
12779
13067
  success = _yield$request3.success;
12780
13068
  data = _yield$request3.data;
12781
13069
  if (success) {
13070
+ trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
13071
+ return (item.srcTid || '').split(',').includes(orderNo);
13072
+ }).map(function (item) {
13073
+ if (Array.isArray(item.goodDetails)) {
13074
+ item.goodDetails = item.goodDetails.filter(function (good) {
13075
+ return good.srcTid === orderNo;
13076
+ });
13077
+ }
13078
+ return item;
13079
+ });
12782
13080
  _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
12783
- orders: ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
13081
+ orders: trades.map(function (item) {
12784
13082
  return _objectSpread2(_objectSpread2({}, item), {}, {
12785
13083
  billNo: item.tradeNo,
12786
13084
  billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
12787
13085
  billTag: item.tagName
12788
13086
  });
12789
13087
  }),
12790
- showOrderInfo: data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
13088
+ showOrderInfo: trades.map(function (item) {
12791
13089
  return {
12792
13090
  billNo: item.tradeNo,
12793
13091
  billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
@@ -12877,8 +13175,10 @@ var componentMap$1 = {
12877
13175
  reissueType: 'wdtReissueType',
12878
13176
  returnType: 'wdtReturnType',
12879
13177
  returnSelectListReturn: 'wdtReturnSelectListReturn',
13178
+ returnSelectList: 'wdtReturnSelectList',
12880
13179
  deleteGood: 'wdtDeleteGood',
12881
- returnDeleteGood: 'wdtReturnDeleteGood'
13180
+ returnDeleteGood: 'wdtReturnDeleteGood',
13181
+ exchangeDeleteGood: 'wdtExchangeDeleteGood'
12882
13182
  }
12883
13183
  }
12884
13184
  };
@@ -12945,7 +13245,7 @@ var CommonGoods = function CommonGoods(props) {
12945
13245
  setTableSelect(['2', '4'].includes(data.val));
12946
13246
  if (['1', '3'].includes(data.val)) {
12947
13247
  var _valueRef$current5, _valueRef$current6;
12948
- pubsub__default['default'].publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
13248
+ pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnSelectListReturn, {
12949
13249
  list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5[componentMap$1[compType].key]) || []),
12950
13250
  shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
12951
13251
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
@@ -12963,15 +13263,15 @@ var CommonGoods = function CommonGoods(props) {
12963
13263
  };
12964
13264
  }, [disabled]);
12965
13265
  var _onSelect = function onSelect(list) {
12966
- var _withInfo$current, _withInfo$current2, _valueRef$current7;
13266
+ var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$current7;
12967
13267
  if (disabled) return;
12968
13268
  var newList = lodash.cloneDeep(list);
12969
- var typeMap = _defineProperty({
13269
+ var typeMap = (_typeMap = {
12970
13270
  // type: componentMap[compType].eventNameMap.selectList,
12971
13271
  // returnType: componentMap[compType].eventNameMap.returnSelectList,
12972
13272
  // reissueType: componentMap[compType].eventNameMap.reissueSelectList,
12973
13273
  type: componentMap$1[compType].eventNameMap.selectList
12974
- }, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
13274
+ }, _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList), _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReturnType"), componentMap$1[compType].eventNameMap.returnSelectList), _typeMap);
12975
13275
  var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
12976
13276
  // console.log('onSelect', type, withInfo.current, newList);
12977
13277
  pubsub__default['default'].publish(type, {
@@ -12989,6 +13289,7 @@ var CommonGoods = function CommonGoods(props) {
12989
13289
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
12990
13290
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
12991
13291
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
13292
+ pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
12992
13293
  };
12993
13294
  var changeHandle = function changeHandle(list) {
12994
13295
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
@@ -13013,6 +13314,263 @@ var CommonGoods = function CommonGoods(props) {
13013
13314
  }));
13014
13315
  };
13015
13316
 
13317
+ var componentMap$2 = {
13318
+ 'WDT_RETURN_GOODS': {
13319
+ type: 'wdt',
13320
+ valueKey: 'wdtReturnGoods',
13321
+ returnTypeKey: 'wdtReturnType',
13322
+ name: '旺店通',
13323
+ eventNameMap: {
13324
+ changeShopCode: 'wdtChangeShopCode',
13325
+ returnType: 'wdtReturnType',
13326
+ returnSelectListReturn: 'wdtReturnSelectListReturn',
13327
+ returnDeleteGood: 'wdtReturnDeleteGood',
13328
+ returnSelectList: 'wdtReturnSelectList',
13329
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13330
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13331
+ }
13332
+ }
13333
+ };
13334
+ var CommonReturnGoods = function CommonReturnGoods(props) {
13335
+ var value = props.value,
13336
+ onChange = props.onChange,
13337
+ _props$reasonList = props.reasonList,
13338
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
13339
+ disabled = props.disabled,
13340
+ compType = props.type;
13341
+ var valueRef = React.useRef({});
13342
+ React.useEffect(function () {
13343
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
13344
+ var _valueRef$current, _valueRef$current2;
13345
+ pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
13346
+ list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[componentMap$2[compType].valueKey]) || []),
13347
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
13348
+ });
13349
+ });
13350
+ return function () {
13351
+ pubsub__default['default'].unsubscribe(subscription);
13352
+ };
13353
+ }, []);
13354
+ React.useEffect(function () {
13355
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
13356
+ if (disabled) return;
13357
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13358
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13359
+ });
13360
+ if (compType === 'WDT_RETURN_GOODS') {
13361
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13362
+ if (typeof item.type === 'undefined') {
13363
+ item.type = '1';
13364
+ }
13365
+ if (typeof item.returnPrice === 'undefined') {
13366
+ item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13367
+ }
13368
+ if (item.srcOid) {
13369
+ item.oid = item.srcOid;
13370
+ }
13371
+ return item;
13372
+ });
13373
+ } else {
13374
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13375
+ }
13376
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13377
+ });
13378
+ return function () {
13379
+ pubsub__default['default'].unsubscribe(subscription);
13380
+ };
13381
+ }, []);
13382
+ React.useEffect(function () {
13383
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
13384
+ if (disabled) return;
13385
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13386
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13387
+ });
13388
+ if (compType === 'WDT_RETURN_GOODS') {
13389
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13390
+ if (typeof item.type === 'undefined') {
13391
+ item.type = '1';
13392
+ }
13393
+ if (typeof item.returnPrice === 'undefined') {
13394
+ item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13395
+ }
13396
+ if (item.srcOid) {
13397
+ item.oid = item.srcOid;
13398
+ }
13399
+ return item;
13400
+ });
13401
+ } else {
13402
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13403
+ }
13404
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13405
+ });
13406
+ return function () {
13407
+ pubsub__default['default'].unsubscribe(subscription);
13408
+ };
13409
+ }, []);
13410
+ React.useEffect(function () {
13411
+ valueRef.current = value;
13412
+ pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
13413
+ if (disabled) return;
13414
+ if (value) {
13415
+ var newValue = _objectSpread2({}, value);
13416
+ newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
13417
+ return item.sku !== data;
13418
+ });
13419
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13420
+ }
13421
+ });
13422
+ pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
13423
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13424
+ shopCode: data.shopCode
13425
+ }));
13426
+ });
13427
+ }, [value, disabled]);
13428
+ var changeTypeHandle = function changeTypeHandle(val) {
13429
+ var newValue = _objectSpread2({}, value);
13430
+ newValue[componentMap$2[compType].returnTypeKey] = val;
13431
+ newValue[componentMap$2[compType].valueKey] = [];
13432
+ if (['2'].includes(val[0])) {
13433
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13434
+ valueRef.current = newValue;
13435
+ }
13436
+ pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.returnType, {
13437
+ val: val[0],
13438
+ goodValue: newValue
13439
+ });
13440
+ };
13441
+ var changeGoodHandle = function changeGoodHandle(val) {
13442
+ var newValue = _objectSpread2({}, value);
13443
+ newValue[componentMap$2[compType].valueKey] = val;
13444
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13445
+ };
13446
+ //显示选择商品按钮 原单换不显示选择商品
13447
+ // const showChangeBtn = useMemo(() => {
13448
+ // return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
13449
+ // }, [value?.[componentMap[compType].returnTypeKey]]);
13450
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
13451
+ style: {
13452
+ marginBottom: '8px'
13453
+ },
13454
+ disabled: disabled,
13455
+ allowClear: false,
13456
+ options: reasonList,
13457
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
13458
+ onChange: function onChange(val) {
13459
+ return changeTypeHandle(val);
13460
+ }
13461
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13462
+ key: componentMap$2[compType].type
13463
+ }, props), {}, {
13464
+ disabled: disabled,
13465
+ canUpdateNumber: true,
13466
+ showChangeBtn: false,
13467
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13468
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
13469
+ onChange: function onChange(val) {
13470
+ return changeGoodHandle(val);
13471
+ }
13472
+ })));
13473
+ };
13474
+
13475
+ var componentMap$3 = {
13476
+ 'WDT_EXCHANGE_GOODS': {
13477
+ type: 'wdt',
13478
+ valueKey: 'wdtExchangeGoods',
13479
+ returnTypeKey: 'wdtExchangeType',
13480
+ name: '旺店通',
13481
+ eventNameMap: {
13482
+ changeShopCode: 'wdtChangeShopCode',
13483
+ exchangeDeleteGood: 'wdtExchangeDeleteGood',
13484
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13485
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13486
+ }
13487
+ }
13488
+ };
13489
+ var CommonExchangeGoods = function CommonExchangeGoods(props) {
13490
+ var value = props.value,
13491
+ onChange = props.onChange,
13492
+ disabled = props.disabled,
13493
+ compType = props.type;
13494
+ var valueRef = React.useRef({});
13495
+ React.useEffect(function () {
13496
+ var subscription = pubsub__default['default'].subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
13497
+ if (disabled) return;
13498
+ var newValue = {
13499
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13500
+ };
13501
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13502
+ newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13503
+ if (typeof item.type === 'undefined') {
13504
+ item.type = '1';
13505
+ }
13506
+ item.price = item.sharePrice;
13507
+ if (typeof item.exchangePrice === 'undefined') {
13508
+ item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
13509
+ }
13510
+ return item;
13511
+ });
13512
+ } else {
13513
+ newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13514
+ }
13515
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13516
+ });
13517
+ return function () {
13518
+ pubsub__default['default'].unsubscribe(subscription);
13519
+ };
13520
+ });
13521
+ React.useEffect(function () {
13522
+ valueRef.current = value;
13523
+ pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
13524
+ if (disabled) return;
13525
+ if (value) {
13526
+ var newValue = _objectSpread2({}, value);
13527
+ newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
13528
+ return item.sku !== data;
13529
+ });
13530
+ onChange(newValue);
13531
+ }
13532
+ });
13533
+ pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
13534
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13535
+ shopCode: data.shopCode
13536
+ }));
13537
+ });
13538
+ }, [value]);
13539
+ var changeGoodHandle = function changeGoodHandle(val) {
13540
+ var newValue = _objectSpread2({}, value);
13541
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13542
+ val = val.map(function (item) {
13543
+ item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
13544
+ return item;
13545
+ });
13546
+ }
13547
+ newValue[componentMap$3[compType].valueKey] = val;
13548
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13549
+ };
13550
+ var copyGoods = function copyGoods() {
13551
+ var copyHandle = function copyHandle() {
13552
+ pubsub__default['default'].publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
13553
+ };
13554
+ return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13555
+ type: "link",
13556
+ onClick: copyHandle
13557
+ }, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
13558
+ };
13559
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13560
+ key: componentMap$3[compType].type
13561
+ }, props), {}, {
13562
+ disabled: disabled,
13563
+ canUpdateNumber: true,
13564
+ showChangeBtn: true,
13565
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13566
+ value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
13567
+ otherOperations: copyGoods(),
13568
+ onChange: function onChange(val) {
13569
+ return changeGoodHandle(val);
13570
+ }
13571
+ })));
13572
+ };
13573
+
13016
13574
  var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
13017
13575
  var typeMap$1 = {
13018
13576
  WDT_REISSUE_GOODS: {
@@ -13801,7 +14359,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13801
14359
  changeIndex = _useState2[0],
13802
14360
  setChangeIndex = _useState2[1]; //选中的包裹
13803
14361
  React.useEffect(function () {
13804
- if (!(value === null || value === void 0 ? void 0 : value.length)) {
14362
+ if (!(value === null || value === void 0 ? void 0 : value.length) && type === 1) {
13805
14363
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
13806
14364
  }
13807
14365
  }, [value, type]);
@@ -13840,7 +14398,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13840
14398
  return setChangeIndex(index);
13841
14399
  }
13842
14400
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
13843
- }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
14401
+ }))) : null, value.length || type !== 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13844
14402
  disabled: disabled,
13845
14403
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
13846
14404
  onChange: function onChange(e) {
@@ -13855,12 +14413,18 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13855
14413
  },
13856
14414
  value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
13857
14415
  })) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13858
- disabled: true,
14416
+ disabled: disabled,
13859
14417
  placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
14418
+ onChange: function onChange(e) {
14419
+ return changeInputHandle(e.target.value, 'billNo');
14420
+ },
13860
14421
  value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
13861
14422
  })) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13862
- disabled: true,
14423
+ disabled: disabled,
13863
14424
  placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
14425
+ onChange: function onChange(e) {
14426
+ return changeInputHandle(e.target.value, 'billNo');
14427
+ },
13864
14428
  value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
13865
14429
  })) : null) : null);
13866
14430
  };
@@ -13922,7 +14486,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13922
14486
  return setChangeIndex(index);
13923
14487
  }
13924
14488
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
13925
- }))) : null, value.length && type === 1 || type === 2 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
14489
+ }))) : null, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
13926
14490
  showSearch: true,
13927
14491
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
13928
14492
  filterOption: function filterOption(input, option) {
@@ -13938,7 +14502,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13938
14502
  }
13939
14503
  }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
13940
14504
  className: "c-red"
13941
- }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
14505
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
13942
14506
  };
13943
14507
 
13944
14508
  var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
@@ -14054,8 +14618,10 @@ exports.BsSystemOrder = index$1;
14054
14618
  exports.BuyerNick = BuyerNick;
14055
14619
  exports.CalculationInput = CalculationInput;
14056
14620
  exports.ChooseBaby = ChooseBaby;
14621
+ exports.CommonExchangeGoods = CommonExchangeGoods;
14057
14622
  exports.CommonGoods = CommonGoods;
14058
14623
  exports.CommonMultiStatus = CommonSystemOrder$1;
14624
+ exports.CommonReturnGoods = CommonReturnGoods;
14059
14625
  exports.CommonStatus = CommonStatus;
14060
14626
  exports.CommonSystemOrder = CommonSystemOrder;
14061
14627
  exports.ExpressLogistics = ExpressLogistics;