@kmkf-fe-packages/basic-components 2.0.54-beta.1 → 2.0.54-beta.10

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;
63
+ return e;
64
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;
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,19 +487,56 @@ 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.");
490
+ function _createForOfIteratorHelper(o, allowArrayLike) {
491
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
492
+ if (!it) {
493
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
494
+ if (it) o = it;
495
+ var i = 0;
496
+ var F = function () {};
497
+ return {
498
+ s: F,
499
+ n: function () {
500
+ if (i >= o.length) return {
501
+ done: true
502
+ };
503
+ return {
504
+ done: false,
505
+ value: o[i++]
506
+ };
507
+ },
508
+ e: function (e) {
509
+ throw e;
510
+ },
511
+ f: F
512
+ };
513
+ }
514
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
483
515
  }
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);
516
+ var normalCompletion = true,
517
+ didErr = false,
518
+ err;
519
+ return {
520
+ s: function () {
521
+ it = it.call(o);
522
+ },
523
+ n: function () {
524
+ var step = it.next();
525
+ normalCompletion = step.done;
526
+ return step;
527
+ },
528
+ e: function (e) {
529
+ didErr = true;
530
+ err = e;
531
+ },
532
+ f: function () {
533
+ try {
534
+ if (!normalCompletion && it.return != null) it.return();
535
+ } finally {
536
+ if (didErr) throw err;
537
+ }
538
+ }
539
+ };
489
540
  }
490
541
 
491
542
  function ApaasCascader(props) {
@@ -7950,7 +8001,8 @@ var WidgetMap = {
7950
8001
  var pageSize = 50;
7951
8002
  var SubForm = function SubForm(props) {
7952
8003
  var _selectOptions$;
7953
- var value = props.value,
8004
+ var _props$value = props.value,
8005
+ value = _props$value === void 0 ? [] : _props$value,
7954
8006
  onChange = props.onChange,
7955
8007
  needFilterShopByPermission = props.needFilterShopByPermission,
7956
8008
  _props$subConfig = props.subConfig,
@@ -8252,7 +8304,7 @@ var SubForm = function SubForm(props) {
8252
8304
  }
8253
8305
  });
8254
8306
  }
8255
- onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
8307
+ onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
8256
8308
  uuid: uuid()
8257
8309
  })]));
8258
8310
  };
@@ -11450,7 +11502,7 @@ var typeInitValueMap = {
11450
11502
  }]
11451
11503
  };
11452
11504
  var jstGoods = function jstGoods(props) {
11453
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
11505
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11;
11454
11506
  var _props$value = props.value,
11455
11507
  value = _props$value === void 0 ? [] : _props$value,
11456
11508
  onChange = props.onChange,
@@ -11468,8 +11520,8 @@ var jstGoods = function jstGoods(props) {
11468
11520
  setChangeIndex = _useState2[1]; //选中的包裹
11469
11521
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
11470
11522
  var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
11523
+ var expressDateInstance = ExpressData.getInstance(platformType);
11471
11524
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
11472
- var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
11473
11525
  useEffect(function () {
11474
11526
  //没有值塞个默认值
11475
11527
  if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
@@ -11552,59 +11604,51 @@ var jstGoods = function jstGoods(props) {
11552
11604
  return setChangeIndex(index);
11553
11605
  }
11554
11606
  }, "\u5305\u88F9".concat(index + 1)));
11555
- }))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, _objectSpread2(_objectSpread2({
11556
- type: logisticsType,
11607
+ }))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
11557
11608
  disabled: disabled,
11558
11609
  placeholder: "\u7269\u6D41\u516C\u53F8",
11559
11610
  onChange: function onChange(val) {
11560
- if (logisticsType === 'input') {
11561
- changeInputHandle(null, 'logisticsCompany');
11562
- changeInputHandle(val, 'logisticsCompanyName');
11563
- } else {
11564
- changeInputHandle(val, 'logisticsCompany');
11565
- }
11611
+ changeInputHandle(val, 'logisticsCompany');
11566
11612
  },
11567
- value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[logisticsType === 'input' ? 'logisticsCompanyName' : 'logisticsCompany']
11568
- }, logisticsType === 'input' ? {} : {
11613
+ value: platformType === 'gy' ? expressDateInstance.getExpressNameByCode((_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex['logisticsCompany'], false) || ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompanyName']) : (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'],
11569
11614
  showSearch: true,
11570
11615
  dropdownMatchSelectWidth: false,
11571
11616
  filterOption: function filterOption(input, option) {
11572
11617
  return option.label.includes(input);
11573
- }
11574
- }), {}, {
11618
+ },
11575
11619
  style: {
11576
11620
  minWidth: '100px',
11577
11621
  maxWidth: '180px'
11578
11622
  },
11579
11623
  platformType: platformType
11580
- })) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
11624
+ }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
11581
11625
  disabled: disabled,
11582
11626
  placeholder: "\u7269\u6D41\u5355\u53F7",
11583
11627
  onChange: function onChange(e) {
11584
11628
  return changeInputHandle(e.target.value, 'logisticsCode');
11585
11629
  },
11586
- value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.logisticsCode
11630
+ value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.logisticsCode
11587
11631
  }) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
11588
11632
  disabled: disabled,
11589
11633
  placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
11590
11634
  onChange: function onChange(e) {
11591
11635
  return changeInputHandle(e.target.value, 'supplyId');
11592
11636
  },
11593
- value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.supplyId
11637
+ value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.supplyId
11594
11638
  }), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
11595
11639
  disabled: disabled,
11596
11640
  placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
11597
11641
  onChange: function onChange(e) {
11598
11642
  return changeInputHandle(e.target.value, 'supplyName');
11599
11643
  },
11600
- value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.supplyName
11644
+ value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.supplyName
11601
11645
  })) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
11602
11646
  disabled: disabled,
11603
11647
  placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
11604
11648
  onChange: function onChange(e) {
11605
11649
  return changeInputHandle(e.target.value, 'sendId');
11606
11650
  },
11607
- value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
11651
+ value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendId
11608
11652
  }), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
11609
11653
  style: {
11610
11654
  minWidth: '100px',
@@ -11615,7 +11659,7 @@ var jstGoods = function jstGoods(props) {
11615
11659
  showSearch: true,
11616
11660
  options: sendOptions,
11617
11661
  filterOption: filterOption,
11618
- value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendSnapshotId) || ((_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName) || null,
11662
+ value: ((_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendSnapshotId) || ((_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName) || null,
11619
11663
  onChange: function onChange(value, option) {
11620
11664
  return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
11621
11665
  }
@@ -11625,14 +11669,14 @@ var jstGoods = function jstGoods(props) {
11625
11669
  onChange: function onChange(e) {
11626
11670
  return changeInputHandle(e.target.value, 'sendName');
11627
11671
  },
11628
- value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
11672
+ value: (_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendName
11629
11673
  }))) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
11630
11674
  disabled: disabled,
11631
11675
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
11632
11676
  onChange: function onChange(e) {
11633
11677
  return changeInputHandle(e.target.value, 'deliveryNo');
11634
11678
  },
11635
- value: (_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName
11679
+ value: (_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName
11636
11680
  })) : null) : null);
11637
11681
  };
11638
11682
 
@@ -12547,9 +12591,7 @@ var useGetColumns = (function (type) {
12547
12591
  loading = _useState4[0],
12548
12592
  setLoading = _useState4[1];
12549
12593
  var showColumnsDataIndexList = useMemo(function () {
12550
- return columns.filter(function (item) {
12551
- return Object.hasOwn(item, 'dataIndex');
12552
- }).map(function (item) {
12594
+ return columns.map(function (item) {
12553
12595
  return item.dataIndex;
12554
12596
  });
12555
12597
  }, [columns]);
@@ -15737,6 +15779,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
15737
15779
  });
15738
15780
  };
15739
15781
  var erpColumnsMap = getColumnsMap$1();
15782
+ var erpFormValidator = function erpFormValidator(_rule, value, type) {
15783
+ var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
15784
+ return column.validator;
15785
+ }).filter(Boolean);
15786
+ var res = null;
15787
+ var _iterator = _createForOfIteratorHelper(validatorFnList),
15788
+ _step;
15789
+ try {
15790
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
15791
+ var validatorFn = _step.value;
15792
+ var validatorResult = validatorFn(_rule, value, type);
15793
+ if (validatorResult) {
15794
+ res = validatorResult;
15795
+ break;
15796
+ }
15797
+ }
15798
+ } catch (err) {
15799
+ _iterator.e(err);
15800
+ } finally {
15801
+ _iterator.f();
15802
+ }
15803
+ return res;
15804
+ };
15740
15805
  var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
15741
15806
  var clone_columnsMap = cloneDeep(getColumnsMap$1());
15742
15807
  var newColumns = {};
@@ -15867,6 +15932,7 @@ var GoodsModalMap = {
15867
15932
  BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
15868
15933
  GY_GOODS: GyGoodsModal$2,
15869
15934
  GY_REISSUE_GOODS: GyGoodsModal$2,
15935
+ GY_RETURN_GOODS: GyGoodsModal$2,
15870
15936
  JST_GOODS: JstGoodsModal,
15871
15937
  JST_REISSUE_GOODS: JstGoodsModal,
15872
15938
  JST_RETURN_GOODS: JstGoodsModal,
@@ -15939,7 +16005,7 @@ var getButtonText = function getButtonText() {
15939
16005
  if (['WDT_REISSUE_GOODS'].includes(type)) {
15940
16006
  return '选择旺店通商品';
15941
16007
  }
15942
- if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16008
+ if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
15943
16009
  return '选择管易ERP商品';
15944
16010
  }
15945
16011
  if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
@@ -16242,7 +16308,7 @@ var GoodItem$1 = function GoodItem(props) {
16242
16308
  canUpdateNumber: canUpdateNumber
16243
16309
  });
16244
16310
  });
16245
- } else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
16311
+ } else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
16246
16312
  newList = list.map(function (item) {
16247
16313
  var goodName = item.goodName,
16248
16314
  goodShortName = item.goodShortName,
@@ -19805,7 +19871,7 @@ var typeMap$4 = {
19805
19871
  }
19806
19872
  };
19807
19873
  var GyReissue = function GyReissue(props) {
19808
- var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19874
+ var _typeMap$type28, _typeMap$type29, _typeMap$type30, _systemOrder$orders, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
19809
19875
  var value = props.value,
19810
19876
  onChange = props.onChange,
19811
19877
  _props$reasonList = props.reasonList,
@@ -19977,10 +20043,9 @@ var GyReissue = function GyReissue(props) {
19977
20043
  pushGyLog('afterSelectedGoodsChange', newValue);
19978
20044
  }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
19979
20045
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
19980
- var showChangeBtn = useMemo(function () {
19981
- var _typeMap$type29;
19982
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
19983
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
20046
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder];
20047
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]);
20048
+ var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
19984
20049
  return /*#__PURE__*/React.createElement("div", {
19985
20050
  id: "TEST_GY",
19986
20051
  onClick: function onClick() {
@@ -20040,6 +20105,8 @@ var GyReissue = function GyReissue(props) {
20040
20105
  disabled: disabled,
20041
20106
  canUpdateNumber: showChangeBtn,
20042
20107
  showChangeBtn: showChangeBtn,
20108
+ showErpGoodsBtn: showErpGoodsBtn,
20109
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20043
20110
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
20044
20111
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
20045
20112
  onChange: function onChange(val) {
@@ -20078,7 +20145,7 @@ var typeMap$5 = {
20078
20145
  }
20079
20146
  };
20080
20147
  var GyReturnGoods = function GyReturnGoods(props) {
20081
- var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20148
+ var _typeMap$type10, _typeMap$type27, _systemOrder$orders, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
20082
20149
  var value = props.value,
20083
20150
  onChange = props.onChange,
20084
20151
  _props$reasonList = props.reasonList,
@@ -20271,10 +20338,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
20271
20338
  }))));
20272
20339
  };
20273
20340
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20274
- var showChangeBtn = useMemo(function () {
20275
- var _typeMap$type27;
20276
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
20277
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
20341
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder];
20342
+ var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20343
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]);
20278
20344
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
20279
20345
  gutter: 8,
20280
20346
  wrap: true
@@ -20336,7 +20402,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
20336
20402
  },
20337
20403
  onModeChange: handleModeChange,
20338
20404
  isStrict: isStrict,
20339
- showErpGoodsBtn: false,
20405
+ showErpGoodsBtn: showErpGoodsBtn,
20406
+ alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20340
20407
  tradeGoods: {
20341
20408
  originDataSource: getGoodDetails({
20342
20409
  mode: isStrict
@@ -20346,4 +20413,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
20346
20413
  })));
20347
20414
  };
20348
20415
 
20349
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
20416
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };