@kmkf-fe-packages/basic-components 2.0.68 → 2.0.70

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
@@ -22,377 +22,363 @@ var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
22
22
  var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
23
23
  var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
24
24
 
25
- function _iterableToArrayLimit(r, l) {
26
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
27
- if (null != t) {
28
- var e,
29
- n,
30
- i,
31
- u,
32
- a = [],
33
- f = !0,
34
- o = !1;
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;
35
35
  try {
36
- if (i = (t = t.call(r)).next, 0 === l) {
37
- if (Object(t) !== t) return;
38
- f = !1;
39
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
40
- } catch (r) {
41
- 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;
42
42
  } finally {
43
43
  try {
44
- 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;
45
45
  } finally {
46
- if (o) throw n;
46
+ if (_d) throw _e;
47
47
  }
48
48
  }
49
- return a;
49
+ return _arr;
50
50
  }
51
51
  }
52
- function ownKeys(e, r) {
53
- var t = Object.keys(e);
52
+ function ownKeys(object, enumerableOnly) {
53
+ var keys = Object.keys(object);
54
54
  if (Object.getOwnPropertySymbols) {
55
- var o = Object.getOwnPropertySymbols(e);
56
- r && (o = o.filter(function (r) {
57
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
58
- })), 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);
59
59
  }
60
- return t;
61
- }
62
- function _objectSpread2(e) {
63
- for (var r = 1; r < arguments.length; r++) {
64
- var t = null != arguments[r] ? arguments[r] : {};
65
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
66
- _defineProperty(e, r, t[r]);
67
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
68
- 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));
69
69
  });
70
70
  }
71
- return e;
71
+ return target;
72
72
  }
73
73
  function _regeneratorRuntime() {
74
74
  _regeneratorRuntime = function () {
75
- return e;
75
+ return exports;
76
76
  };
77
- var t,
78
- e = {},
79
- r = Object.prototype,
80
- n = r.hasOwnProperty,
81
- o = Object.defineProperty || function (t, e, r) {
82
- t[e] = r.value;
77
+ var exports = {},
78
+ Op = Object.prototype,
79
+ hasOwn = Op.hasOwnProperty,
80
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
81
+ obj[key] = desc.value;
83
82
  },
84
- i = "function" == typeof Symbol ? Symbol : {},
85
- a = i.iterator || "@@iterator",
86
- c = i.asyncIterator || "@@asyncIterator",
87
- u = i.toStringTag || "@@toStringTag";
88
- function define(t, e, r) {
89
- return Object.defineProperty(t, e, {
90
- 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,
91
90
  enumerable: !0,
92
91
  configurable: !0,
93
92
  writable: !0
94
- }), t[e];
93
+ }), obj[key];
95
94
  }
96
95
  try {
97
96
  define({}, "");
98
- } catch (t) {
99
- define = function (t, e, r) {
100
- return t[e] = r;
97
+ } catch (err) {
98
+ define = function (obj, key, value) {
99
+ return obj[key] = value;
101
100
  };
102
101
  }
103
- function wrap(t, e, r, n) {
104
- var i = e && e.prototype instanceof Generator ? e : Generator,
105
- a = Object.create(i.prototype),
106
- c = new Context(n || []);
107
- return o(a, "_invoke", {
108
- value: makeInvokeMethod(t, r, c)
109
- }), 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;
110
109
  }
111
- function tryCatch(t, e, r) {
110
+ function tryCatch(fn, obj, arg) {
112
111
  try {
113
112
  return {
114
113
  type: "normal",
115
- arg: t.call(e, r)
114
+ arg: fn.call(obj, arg)
116
115
  };
117
- } catch (t) {
116
+ } catch (err) {
118
117
  return {
119
118
  type: "throw",
120
- arg: t
119
+ arg: err
121
120
  };
122
121
  }
123
122
  }
124
- e.wrap = wrap;
125
- var h = "suspendedStart",
126
- l = "suspendedYield",
127
- f = "executing",
128
- s = "completed",
129
- y = {};
123
+ exports.wrap = wrap;
124
+ var ContinueSentinel = {};
130
125
  function Generator() {}
131
126
  function GeneratorFunction() {}
132
127
  function GeneratorFunctionPrototype() {}
133
- var p = {};
134
- define(p, a, function () {
128
+ var IteratorPrototype = {};
129
+ define(IteratorPrototype, iteratorSymbol, function () {
135
130
  return this;
136
131
  });
137
- var d = Object.getPrototypeOf,
138
- v = d && d(d(values([])));
139
- v && v !== r && n.call(v, a) && (p = v);
140
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
141
- function defineIteratorMethods(t) {
142
- ["next", "throw", "return"].forEach(function (e) {
143
- define(t, e, function (t) {
144
- 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);
145
140
  });
146
141
  });
147
142
  }
148
- function AsyncIterator(t, e) {
149
- function invoke(r, o, i, a) {
150
- var c = tryCatch(t[r], t, o);
151
- if ("throw" !== c.type) {
152
- var u = c.arg,
153
- h = u.value;
154
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
155
- invoke("next", t, i, a);
156
- }, function (t) {
157
- invoke("throw", t, i, a);
158
- }) : e.resolve(h).then(function (t) {
159
- u.value = t, i(u);
160
- }, function (t) {
161
- 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);
162
157
  });
163
158
  }
164
- a(c.arg);
159
+ reject(record.arg);
165
160
  }
166
- var r;
167
- o(this, "_invoke", {
168
- value: function (t, n) {
161
+ var previousPromise;
162
+ defineProperty(this, "_invoke", {
163
+ value: function (method, arg) {
169
164
  function callInvokeWithMethodAndArg() {
170
- return new e(function (e, r) {
171
- invoke(t, n, e, r);
165
+ return new PromiseImpl(function (resolve, reject) {
166
+ invoke(method, arg, resolve, reject);
172
167
  });
173
168
  }
174
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
169
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
175
170
  }
176
171
  });
177
172
  }
178
- function makeInvokeMethod(e, r, n) {
179
- var o = h;
180
- return function (i, a) {
181
- if (o === f) throw new Error("Generator is already running");
182
- if (o === s) {
183
- if ("throw" === i) throw a;
184
- return {
185
- value: t,
186
- done: !0
187
- };
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();
188
180
  }
189
- for (n.method = i, n.arg = a;;) {
190
- var c = n.delegate;
191
- if (c) {
192
- var u = maybeInvokeDelegate(c, n);
193
- if (u) {
194
- if (u === y) continue;
195
- 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;
196
188
  }
197
189
  }
198
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
199
- if (o === h) throw o = s, n.arg;
200
- n.dispatchException(n.arg);
201
- } else "return" === n.method && n.abrupt("return", n.arg);
202
- o = f;
203
- var p = tryCatch(e, r, n);
204
- if ("normal" === p.type) {
205
- 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;
206
198
  return {
207
- value: p.arg,
208
- done: n.done
199
+ value: record.arg,
200
+ done: context.done
209
201
  };
210
202
  }
211
- "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);
212
204
  }
213
205
  };
214
206
  }
215
- function maybeInvokeDelegate(e, r) {
216
- var n = r.method,
217
- o = e.iterator[n];
218
- 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;
219
- var i = tryCatch(o, e.iterator, r.arg);
220
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
221
- var a = i.arg;
222
- 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);
223
215
  }
224
- function pushTryEntry(t) {
225
- var e = {
226
- tryLoc: t[0]
216
+ function pushTryEntry(locs) {
217
+ var entry = {
218
+ tryLoc: locs[0]
227
219
  };
228
- 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);
229
221
  }
230
- function resetTryEntry(t) {
231
- var e = t.completion || {};
232
- 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;
233
225
  }
234
- function Context(t) {
226
+ function Context(tryLocsList) {
235
227
  this.tryEntries = [{
236
228
  tryLoc: "root"
237
- }], t.forEach(pushTryEntry, this), this.reset(!0);
229
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
238
230
  }
239
- function values(e) {
240
- if (e || "" === e) {
241
- var r = e[a];
242
- if (r) return r.call(e);
243
- if ("function" == typeof e.next) return e;
244
- if (!isNaN(e.length)) {
245
- var o = -1,
246
- i = function next() {
247
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
248
- 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;
249
241
  };
250
- return i.next = i;
242
+ return next.next = next;
251
243
  }
252
244
  }
253
- throw new TypeError(typeof e + " is not iterable");
245
+ return {
246
+ next: doneResult
247
+ };
248
+ }
249
+ function doneResult() {
250
+ return {
251
+ value: undefined,
252
+ done: !0
253
+ };
254
254
  }
255
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
255
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
256
256
  value: GeneratorFunctionPrototype,
257
257
  configurable: !0
258
- }), o(GeneratorFunctionPrototype, "constructor", {
258
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
259
259
  value: GeneratorFunction,
260
260
  configurable: !0
261
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
262
- var e = "function" == typeof t && t.constructor;
263
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
264
- }, e.mark = function (t) {
265
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
266
- }, 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) {
267
267
  return {
268
- __await: t
268
+ __await: arg
269
269
  };
270
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
270
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
271
271
  return this;
272
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
273
- void 0 === i && (i = Promise);
274
- var a = new AsyncIterator(wrap(t, r, n, o), i);
275
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
276
- 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();
277
277
  });
278
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
278
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
279
279
  return this;
280
- }), define(g, "toString", function () {
280
+ }), define(Gp, "toString", function () {
281
281
  return "[object Generator]";
282
- }), e.keys = function (t) {
283
- var e = Object(t),
284
- r = [];
285
- for (var n in e) r.push(n);
286
- return r.reverse(), function next() {
287
- for (; r.length;) {
288
- var t = r.pop();
289
- 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;
290
290
  }
291
291
  return next.done = !0, next;
292
292
  };
293
- }, e.values = values, Context.prototype = {
293
+ }, exports.values = values, Context.prototype = {
294
294
  constructor: Context,
295
- reset: function (e) {
296
- 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);
297
297
  },
298
298
  stop: function () {
299
299
  this.done = !0;
300
- var t = this.tryEntries[0].completion;
301
- if ("throw" === t.type) throw t.arg;
300
+ var rootRecord = this.tryEntries[0].completion;
301
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
302
302
  return this.rval;
303
303
  },
304
- dispatchException: function (e) {
305
- if (this.done) throw e;
306
- var r = this;
307
- function handle(n, o) {
308
- 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;
309
309
  }
310
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
311
- var i = this.tryEntries[o],
312
- a = i.completion;
313
- if ("root" === i.tryLoc) return handle("end");
314
- if (i.tryLoc <= this.prev) {
315
- var c = n.call(i, "catchLoc"),
316
- u = n.call(i, "finallyLoc");
317
- if (c && u) {
318
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
319
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
320
- } else if (c) {
321
- 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);
322
322
  } else {
323
- if (!u) throw new Error("try statement without catch or finally");
324
- 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);
325
325
  }
326
326
  }
327
327
  }
328
328
  },
329
- abrupt: function (t, e) {
330
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
331
- var o = this.tryEntries[r];
332
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
333
- 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;
334
334
  break;
335
335
  }
336
336
  }
337
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
338
- var a = i ? i.completion : {};
339
- 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);
340
340
  },
341
- complete: function (t, e) {
342
- if ("throw" === t.type) throw t.arg;
343
- 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;
344
344
  },
345
- finish: function (t) {
346
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
347
- var r = this.tryEntries[e];
348
- 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;
349
349
  }
350
350
  },
351
- catch: function (t) {
352
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
353
- var r = this.tryEntries[e];
354
- if (r.tryLoc === t) {
355
- var n = r.completion;
356
- if ("throw" === n.type) {
357
- var o = n.arg;
358
- 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);
359
359
  }
360
- return o;
360
+ return thrown;
361
361
  }
362
362
  }
363
363
  throw new Error("illegal catch attempt");
364
364
  },
365
- delegateYield: function (e, r, n) {
365
+ delegateYield: function (iterable, resultName, nextLoc) {
366
366
  return this.delegate = {
367
- iterator: values(e),
368
- resultName: r,
369
- nextLoc: n
370
- }, "next" === this.method && (this.arg = t), y;
371
- }
372
- }, e;
373
- }
374
- function _toPrimitive(t, r) {
375
- if ("object" != typeof t || !t) return t;
376
- var e = t[Symbol.toPrimitive];
377
- if (void 0 !== e) {
378
- var i = e.call(t, r || "default");
379
- if ("object" != typeof i) return i;
380
- throw new TypeError("@@toPrimitive must return a primitive value.");
381
- }
382
- return ("string" === r ? String : Number)(t);
383
- }
384
- function _toPropertyKey(t) {
385
- var i = _toPrimitive(t, "string");
386
- 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;
387
373
  }
388
- function _typeof(o) {
374
+ function _typeof(obj) {
389
375
  "@babel/helpers - typeof";
390
376
 
391
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
392
- return typeof o;
393
- } : function (o) {
394
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
395
- }, _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);
396
382
  }
397
383
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
398
384
  try {
@@ -550,6 +536,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
550
536
  }
551
537
  };
552
538
  }
539
+ function _toPrimitive(input, hint) {
540
+ if (typeof input !== "object" || input === null) return input;
541
+ var prim = input[Symbol.toPrimitive];
542
+ if (prim !== undefined) {
543
+ var res = prim.call(input, hint || "default");
544
+ if (typeof res !== "object") return res;
545
+ throw new TypeError("@@toPrimitive must return a primitive value.");
546
+ }
547
+ return (hint === "string" ? String : Number)(input);
548
+ }
549
+ function _toPropertyKey(arg) {
550
+ var key = _toPrimitive(arg, "string");
551
+ return typeof key === "symbol" ? key : String(key);
552
+ }
553
553
 
554
554
  function ApaasCascader(props) {
555
555
  return /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2({
@@ -8143,17 +8143,16 @@ var SubForm = function SubForm(props) {
8143
8143
  return [{
8144
8144
  dataIndex: 'index',
8145
8145
  title: '序号',
8146
+ fixed: 'left',
8147
+ width: 20,
8146
8148
  render: function render(val, record, index) {
8147
- return /*#__PURE__*/React__default['default'].createElement("div", {
8148
- style: {
8149
- width: 25
8150
- }
8151
- }, index + 1);
8149
+ return index + 1;
8152
8150
  }
8153
8151
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
8154
8152
  return {
8155
8153
  dataIndex: t.key,
8156
- title: t.name
8154
+ title: t.name,
8155
+ width: 90
8157
8156
  };
8158
8157
  })));
8159
8158
  }, [newTableHeader]);
@@ -8341,7 +8340,7 @@ var SubForm = function SubForm(props) {
8341
8340
  onScrollCapture: onScrollCapture,
8342
8341
  style: {
8343
8342
  height: 320,
8344
- maxWidth: platform !== 'pc' ? '325px' : '100%',
8343
+ maxWidth: platform !== 'pc' ? '325px' : '700px',
8345
8344
  overflowY: 'scroll',
8346
8345
  overflowX: 'auto'
8347
8346
  }
@@ -8352,7 +8351,7 @@ var SubForm = function SubForm(props) {
8352
8351
  size: "small",
8353
8352
  pagination: false,
8354
8353
  scroll: {
8355
- x: '100%'
8354
+ x: 'max-content'
8356
8355
  },
8357
8356
  locale: {
8358
8357
  emptyText: '暂无数据'
@@ -8725,7 +8724,9 @@ var GoodsModal = function GoodsModal(props) {
8725
8724
  changeSku = props.changeSku,
8726
8725
  width = props.width,
8727
8726
  _props$numIidType = props.numIidType,
8728
- numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
8727
+ numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType,
8728
+ form = props.form,
8729
+ isPriorityDisplayOfOrderNo = props.isPriorityDisplayOfOrderNo;
8729
8730
  var _useState = React.useState([]),
8730
8731
  _useState2 = _slicedToArray(_useState, 2),
8731
8732
  selectList = _useState2[0],
@@ -8738,10 +8739,14 @@ var GoodsModal = function GoodsModal(props) {
8738
8739
  _useState6 = _slicedToArray(_useState5, 2),
8739
8740
  goodList = _useState6[0],
8740
8741
  setGoodList = _useState6[1];
8741
- var _useState7 = React.useState(false),
8742
+ var _useState7 = React.useState([]),
8742
8743
  _useState8 = _slicedToArray(_useState7, 2),
8743
- loading = _useState8[0],
8744
- setLoading = _useState8[1];
8744
+ orderNoItems = _useState8[0],
8745
+ setOrderNoItems = _useState8[1];
8746
+ var _useState9 = React.useState(false),
8747
+ _useState10 = _slicedToArray(_useState9, 2),
8748
+ loading = _useState10[0],
8749
+ setLoading = _useState10[1];
8745
8750
  var transformIdType = function transformIdType(id) {
8746
8751
  if (!['string', 'number'].includes(_typeof(id))) return id;
8747
8752
  return numIidType === 'string' ? id + '' : +id;
@@ -8761,7 +8766,7 @@ var GoodsModal = function GoodsModal(props) {
8761
8766
  var handleSetGoodList = function handleSetGoodList(list) {
8762
8767
  return setGoodList(list.map(transformType));
8763
8768
  };
8764
- var _useState9 = React.useState({
8769
+ var _useState11 = React.useState({
8765
8770
  apiName: 'queryItems',
8766
8771
  desc: true,
8767
8772
  numIids: '',
@@ -8773,30 +8778,30 @@ var GoodsModal = function GoodsModal(props) {
8773
8778
  cids: '',
8774
8779
  title: ''
8775
8780
  }),
8776
- _useState10 = _slicedToArray(_useState9, 2),
8777
- searchParams = _useState10[0],
8778
- setSearch = _useState10[1];
8779
- var _useState11 = React.useState(0),
8780
8781
  _useState12 = _slicedToArray(_useState11, 2),
8781
- total = _useState12[0],
8782
- setTotal = _useState12[1];
8783
- var _useState13 = React.useState(''),
8782
+ searchParams = _useState12[0],
8783
+ setSearch = _useState12[1];
8784
+ var _useState13 = React.useState(0),
8784
8785
  _useState14 = _slicedToArray(_useState13, 2),
8785
- platform = _useState14[0],
8786
- setPlatform = _useState14[1]; //平台 taobao=淘宝 fxg=抖音 pdd=拼多多 sph=微信视屏号
8787
- var _useState15 = React.useState({}),
8786
+ total = _useState14[0],
8787
+ setTotal = _useState14[1];
8788
+ var _useState15 = React.useState(''),
8788
8789
  _useState16 = _slicedToArray(_useState15, 2),
8789
- shopInfo = _useState16[0],
8790
- setShopInfo = _useState16[1]; //店铺信息
8791
- var _useState17 = React.useState(true),
8790
+ platform = _useState16[0],
8791
+ setPlatform = _useState16[1]; //平台 taobao=淘宝 fxg=抖音 pdd=拼多多 sph=微信视屏号
8792
+ var _useState17 = React.useState({}),
8792
8793
  _useState18 = _slicedToArray(_useState17, 2),
8793
- canSearch = _useState18[0],
8794
- setCanSearch = _useState18[1];
8795
- var _useState19 = React.useState([null]),
8794
+ shopInfo = _useState18[0],
8795
+ setShopInfo = _useState18[1]; //店铺信息
8796
+ var _useState19 = React.useState(true),
8796
8797
  _useState20 = _slicedToArray(_useState19, 2),
8797
- nextKeyList = _useState20[0],
8798
- setNextKeyList = _useState20[1];
8799
- var _useState21 = React.useState([{
8798
+ canSearch = _useState20[0],
8799
+ setCanSearch = _useState20[1];
8800
+ var _useState21 = React.useState([null]),
8801
+ _useState22 = _slicedToArray(_useState21, 2),
8802
+ nextKeyList = _useState22[0],
8803
+ setNextKeyList = _useState22[1];
8804
+ var _useState23 = React.useState([{
8800
8805
  tab: '出售中',
8801
8806
  key: 'onSale'
8802
8807
  }, {
@@ -8806,10 +8811,10 @@ var GoodsModal = function GoodsModal(props) {
8806
8811
  tab: '已选择',
8807
8812
  key: 'select'
8808
8813
  }]),
8809
- _useState22 = _slicedToArray(_useState21, 2),
8810
- tabs = _useState22[0],
8811
- setTabs = _useState22[1];
8812
- var _useState23 = React.useState([{
8814
+ _useState24 = _slicedToArray(_useState23, 2),
8815
+ tabs = _useState24[0],
8816
+ setTabs = _useState24[1];
8817
+ var _useState25 = React.useState([{
8813
8818
  name: '上架时间',
8814
8819
  value: 'list_time'
8815
8820
  }, {
@@ -8819,13 +8824,13 @@ var GoodsModal = function GoodsModal(props) {
8819
8824
  name: '按价格',
8820
8825
  value: 'price'
8821
8826
  }]),
8822
- _useState24 = _slicedToArray(_useState23, 1),
8823
- goodSort = _useState24[0];
8827
+ _useState26 = _slicedToArray(_useState25, 1),
8828
+ goodSort = _useState26[0];
8824
8829
  //宝贝分类
8825
- var _useState25 = React.useState([]),
8826
- _useState26 = _slicedToArray(_useState25, 2),
8827
- shell = _useState26[0],
8828
- setShell = _useState26[1];
8830
+ var _useState27 = React.useState([]),
8831
+ _useState28 = _slicedToArray(_useState27, 2),
8832
+ shell = _useState28[0],
8833
+ setShell = _useState28[1];
8829
8834
  var clickOrder = function clickOrder(sort) {
8830
8835
  if (sort.value === searchParams.orderBy) {
8831
8836
  setSearch(_objectSpread2(_objectSpread2({}, searchParams), {}, {
@@ -9098,8 +9103,112 @@ var GoodsModal = function GoodsModal(props) {
9098
9103
  }
9099
9104
  }, [platform]);
9100
9105
  React.useEffect(function () {
9101
- platform && canSearch && getItem(searchParams, platform);
9106
+ if (platform && canSearch) {
9107
+ if (searchParams.type === 'orderProduct') {
9108
+ getOrderProductItem(searchParams);
9109
+ } else {
9110
+ getItem(searchParams, platform);
9111
+ }
9112
+ }
9102
9113
  }, [searchParams, platform]);
9114
+ React.useEffect(function () {
9115
+ if (visible && platform !== 'fxg') {
9116
+ var val = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {};
9117
+ var orderNo = val['m3ap1EvEyd'];
9118
+ if (orderNo) {
9119
+ setTabs(function (prev) {
9120
+ return lodash.uniqBy([{
9121
+ tab: '订单商品',
9122
+ key: 'orderProduct'
9123
+ }].concat(_toConsumableArray(prev)), 'key');
9124
+ });
9125
+ if (isPriorityDisplayOfOrderNo) {
9126
+ setSearch(function (prev) {
9127
+ return _objectSpread2(_objectSpread2({}, prev), {}, {
9128
+ type: 'orderProduct'
9129
+ });
9130
+ });
9131
+ }
9132
+ }
9133
+ }
9134
+ if (!visible) {
9135
+ setOrderNoItems([]);
9136
+ }
9137
+ }, [visible]);
9138
+ var getOrderProductItem = /*#__PURE__*/function () {
9139
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
9140
+ var val, orderNo, shopId, res, items, totalCount, pageNo, pageSize, _pageNo, _pageSize, title, _items;
9141
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9142
+ while (1) switch (_context2.prev = _context2.next) {
9143
+ case 0:
9144
+ val = (form === null || form === void 0 ? void 0 : form.getFieldsValue()) || {};
9145
+ orderNo = val.m3ap1EvEyd, shopId = val.shopId;
9146
+ if (orderNo) {
9147
+ _context2.next = 4;
9148
+ break;
9149
+ }
9150
+ return _context2.abrupt("return", handleSetGoodList([]));
9151
+ case 4:
9152
+ if (orderNoItems.length) {
9153
+ _context2.next = 20;
9154
+ break;
9155
+ }
9156
+ _context2.prev = 5;
9157
+ setLoading(true);
9158
+ _context2.next = 9;
9159
+ return kmkfUtils.servers.orderDetail({
9160
+ shopId: shopId,
9161
+ orderNo: orderNo
9162
+ });
9163
+ case 9:
9164
+ res = _context2.sent;
9165
+ if (res.success) {
9166
+ _context2.next = 14;
9167
+ break;
9168
+ }
9169
+ handleSetGoodList([]);
9170
+ antd.message.warn(res.message);
9171
+ return _context2.abrupt("return");
9172
+ case 14:
9173
+ if (res.data && res.data.itemList && res.data.itemList.length) {
9174
+ items = res.data.itemList;
9175
+ totalCount = items.length;
9176
+ items.forEach(function (item) {
9177
+ item.platform = platform;
9178
+ });
9179
+ setOrderNoItems(items);
9180
+ pageNo = params.pageNo, pageSize = params.pageSize;
9181
+ handleSetGoodList(_toConsumableArray(items.slice((pageNo - 1) * pageSize, pageNo * pageSize)));
9182
+ setTotal(totalCount);
9183
+ }
9184
+ case 15:
9185
+ _context2.prev = 15;
9186
+ setLoading(false);
9187
+ return _context2.finish(15);
9188
+ case 18:
9189
+ _context2.next = 26;
9190
+ break;
9191
+ case 20:
9192
+ _pageNo = params.pageNo, _pageSize = params.pageSize;
9193
+ title = params.title;
9194
+ if (platform !== 'taobao') {
9195
+ title = params.numIids;
9196
+ }
9197
+ _items = title ? orderNoItems.filter(function (item) {
9198
+ return item.title.includes(title.trim());
9199
+ }) : orderNoItems;
9200
+ handleSetGoodList(_toConsumableArray(_items.slice((_pageNo - 1) * _pageSize, _pageNo * _pageSize)));
9201
+ setTotal(_items.length);
9202
+ case 26:
9203
+ case "end":
9204
+ return _context2.stop();
9205
+ }
9206
+ }, _callee2, null, [[5,, 15, 18]]);
9207
+ }));
9208
+ return function getOrderProductItem(_x2) {
9209
+ return _ref4.apply(this, arguments);
9210
+ };
9211
+ }();
9103
9212
  return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
9104
9213
  title: '选择宝贝',
9105
9214
  okText: '确认',
@@ -9133,7 +9242,7 @@ var GoodsModal = function GoodsModal(props) {
9133
9242
  style: {
9134
9243
  display: searchParams.type === 'select' ? 'none' : ''
9135
9244
  }
9136
- }, platform === 'taobao' && /*#__PURE__*/React__default['default'].createElement(antd.Radio.Group, {
9245
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, platform === 'taobao' && searchParams.type !== 'orderProduct' && /*#__PURE__*/React__default['default'].createElement(antd.Radio.Group, {
9137
9246
  value: searchParams.orderBy,
9138
9247
  onChange: function onChange(e) {
9139
9248
  setSearch(_objectSpread2(_objectSpread2({}, searchParams), {}, {
@@ -9149,7 +9258,7 @@ var GoodsModal = function GoodsModal(props) {
9149
9258
  },
9150
9259
  key: sort.value
9151
9260
  }, sort.name, sort.value === searchParams.orderBy ? searchParams.desc ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u21BE") : /*#__PURE__*/React__default['default'].createElement("span", null, "\u21C2") : /*#__PURE__*/React__default['default'].createElement("span", null, "\u21C5"));
9152
- })), /*#__PURE__*/React__default['default'].createElement("div", null, platform === 'taobao' && /*#__PURE__*/React__default['default'].createElement(antd.Select, {
9261
+ }))), /*#__PURE__*/React__default['default'].createElement("div", null, platform === 'taobao' && searchParams.type !== 'orderProduct' && /*#__PURE__*/React__default['default'].createElement(antd.Select, {
9153
9262
  className: "classify",
9154
9263
  value: searchParams.cids,
9155
9264
  onChange: function onChange(value) {
@@ -9164,7 +9273,7 @@ var GoodsModal = function GoodsModal(props) {
9164
9273
  key: item.value
9165
9274
  }, item.label);
9166
9275
  })), /*#__PURE__*/React__default['default'].createElement(Search, {
9167
- placeholder: platform === 'taobao' ? '宝贝链接,标题' : '商品ID',
9276
+ placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
9168
9277
  // enterButton="搜索"
9169
9278
  className: "search",
9170
9279
  value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
@@ -9787,7 +9896,9 @@ var GoodItem = function GoodItem(props) {
9787
9896
  userNick = props.userNick,
9788
9897
  disabled = props.disabled,
9789
9898
  changeSku = props.changeSku,
9790
- width = props.width;
9899
+ width = props.width,
9900
+ form = props.form,
9901
+ isPriorityDisplayOfOrderNo = props.isPriorityDisplayOfOrderNo;
9791
9902
  var shopId = value.shopId,
9792
9903
  imgList = value.imgList;
9793
9904
  var _useState = React.useState(false),
@@ -9878,7 +9989,7 @@ var GoodItem = function GoodItem(props) {
9878
9989
  var onSubmit = /*#__PURE__*/function () {
9879
9990
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(list) {
9880
9991
  var _list$;
9881
- var newList, newImgList;
9992
+ var newList, newImgList, _list$2;
9882
9993
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9883
9994
  while (1) switch (_context2.prev = _context2.next) {
9884
9995
  case 0:
@@ -9900,7 +10011,11 @@ var GoodItem = function GoodItem(props) {
9900
10011
  // if (type === 1) {
9901
10012
  // params.outerId = item.outerId; //编码
9902
10013
  // }
9903
- if (changeSku) {
10014
+ //返填商品属性 && 为订单商品
10015
+ if (changeSku && item.skuInfoDTO) {
10016
+ params.outerSkuId = item.skuInfoDTO.outerSkuId;
10017
+ params.propertiesName = item.skuInfoDTO.propertiesName;
10018
+ } else if (changeSku) {
9904
10019
  params.propertiesName = '';
9905
10020
  }
9906
10021
  // if (type === 4) {
@@ -9919,7 +10034,9 @@ var GoodItem = function GoodItem(props) {
9919
10034
  imgList: newImgList
9920
10035
  });
9921
10036
  setVisible(false);
9922
- checkSkus(list === null || list === void 0 ? void 0 : (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.numIid, newImgList.length - 1);
10037
+ if (!(list === null || list === void 0 ? void 0 : (_list$ = list[0]) === null || _list$ === void 0 ? void 0 : _list$.skuInfoDTO)) {
10038
+ checkSkus(list === null || list === void 0 ? void 0 : (_list$2 = list[0]) === null || _list$2 === void 0 ? void 0 : _list$2.numIid, newImgList.length - 1);
10039
+ }
9923
10040
  case 5:
9924
10041
  case "end":
9925
10042
  return _context2.stop();
@@ -10176,6 +10293,8 @@ var GoodItem = function GoodItem(props) {
10176
10293
  shopId: shopId,
10177
10294
  maxLength: maxLength,
10178
10295
  changeSku: changeSku,
10296
+ form: form,
10297
+ isPriorityDisplayOfOrderNo: isPriorityDisplayOfOrderNo,
10179
10298
  onCancel: function onCancel() {
10180
10299
  setVisible(false);
10181
10300
  }
@@ -16075,6 +16194,15 @@ var getColumns$5 = function getColumns() {
16075
16194
  };
16076
16195
  };
16077
16196
 
16197
+ function toNum$2(value) {
16198
+ if (typeof value === 'string') {
16199
+ return value ? +value : void 0;
16200
+ }
16201
+ if (typeof value === 'number') {
16202
+ return value;
16203
+ }
16204
+ return void 0;
16205
+ }
16078
16206
  var getColumns$6 = function getColumns(_ref) {
16079
16207
  var _ref$text = _ref.text,
16080
16208
  disabled = _ref.disabled,
@@ -16100,10 +16228,6 @@ var getColumns$6 = function getColumns(_ref) {
16100
16228
  dataIndex: 'sysOuterId',
16101
16229
  title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
16102
16230
  width: 150
16103
- }, {
16104
- dataIndex: 'outerId',
16105
- title: "\u5546\u5BB6\u7F16\u7801",
16106
- width: 150
16107
16231
  }, {
16108
16232
  dataIndex: 'skuSysId',
16109
16233
  title: "\u7CFB\u7EDF\u89C4\u683CID",
@@ -16176,6 +16300,129 @@ var getColumns$6 = function getColumns(_ref) {
16176
16300
  align: 'center',
16177
16301
  ellipsis: true
16178
16302
  });
16303
+ }),
16304
+ KM_REISSUE_GOODS: [{
16305
+ dataIndex: 'skuPropertiesName',
16306
+ title: "\u89C4\u683C\u540D\u79F0",
16307
+ width: 250
16308
+ }, {
16309
+ dataIndex: 'sysTitle',
16310
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
16311
+ width: 150
16312
+ }, {
16313
+ dataIndex: 'shortTitle',
16314
+ title: "\u5546\u54C1\u7B80\u79F0",
16315
+ width: 150
16316
+ }, {
16317
+ dataIndex: 'title',
16318
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
16319
+ width: 150
16320
+ }, {
16321
+ dataIndex: 'sysOuterId',
16322
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
16323
+ width: 150
16324
+ }, {
16325
+ dataIndex: 'itemSysId',
16326
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
16327
+ width: 150
16328
+ }, {
16329
+ dataIndex: 'skuSysId',
16330
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
16331
+ width: 150
16332
+ }, {
16333
+ dataIndex: 'skuId',
16334
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
16335
+ width: 170
16336
+ }, {
16337
+ dataIndex: 'realNum',
16338
+ title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
16339
+ width: 100,
16340
+ validator: function validator(_rule, value) {
16341
+ var title = '';
16342
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
16343
+ var realNum = toNum$2(goods === null || goods === void 0 ? void 0 : goods.realNum);
16344
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
16345
+ if (res) {
16346
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
16347
+ }
16348
+ return res;
16349
+ })) {
16350
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
16351
+ }
16352
+ },
16353
+ render: function render(val, record, index) {
16354
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
16355
+ style: {
16356
+ width: 70
16357
+ },
16358
+ value: val,
16359
+ min: 1,
16360
+ precision: 0,
16361
+ onChange: function onChange(num) {
16362
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
16363
+ }
16364
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
16365
+ }
16366
+ }, {
16367
+ dataIndex: 'desiredNum',
16368
+ title: "\u5E94\u8865\u53D1\u6570\u91CF",
16369
+ width: 100,
16370
+ render: function render(val, record, index) {
16371
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
16372
+ style: {
16373
+ width: 70
16374
+ },
16375
+ value: val,
16376
+ min: 1,
16377
+ precision: 0,
16378
+ onChange: function onChange(num) {
16379
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
16380
+ }
16381
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
16382
+ }
16383
+ }, {
16384
+ dataIndex: 'price',
16385
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
16386
+ width: 150,
16387
+ render: function render(val) {
16388
+ return val || val === 0 ? Number(val).toFixed(2) : '';
16389
+ }
16390
+ }, {
16391
+ dataIndex: 'payment',
16392
+ title: "\u5B9E\u4ED8\u91D1\u989D",
16393
+ width: 150,
16394
+ render: function render(val, record, index) {
16395
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
16396
+ style: {
16397
+ width: 130
16398
+ },
16399
+ value: val,
16400
+ min: 0,
16401
+ precision: 2,
16402
+ onChange: function onChange(num) {
16403
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
16404
+ }
16405
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
16406
+ }
16407
+ }, {
16408
+ dataIndex: 'type',
16409
+ title: "\u5546\u54C1\u7C7B\u578B",
16410
+ width: 150
16411
+ }, {
16412
+ dataIndex: 'sysPicPath',
16413
+ title: "\u5546\u54C1\u56FE\u7247",
16414
+ width: 100,
16415
+ render: function render(val) {
16416
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
16417
+ width: 60,
16418
+ src: val
16419
+ });
16420
+ }
16421
+ }].map(function (item) {
16422
+ return _objectSpread2(_objectSpread2({}, item), {}, {
16423
+ align: 'center',
16424
+ ellipsis: true
16425
+ });
16179
16426
  })
16180
16427
  };
16181
16428
  };
@@ -16489,7 +16736,7 @@ var isErpType = {
16489
16736
  return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
16490
16737
  },
16491
16738
  isKm: function isKm(type) {
16492
- return ['KM_GOODS'].includes(type);
16739
+ return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
16493
16740
  }
16494
16741
  };
16495
16742
  var processGoods = function processGoods(_ref) {
@@ -16640,10 +16887,20 @@ var processJstGoods = function processJstGoods(_ref5) {
16640
16887
  });
16641
16888
  };
16642
16889
  var processKmGoods = function processKmGoods(_ref6) {
16643
- var list = _ref6.list;
16890
+ var list = _ref6.list,
16891
+ type = _ref6.type;
16892
+ var initParamsMap = {
16893
+ KM_GOODS: {
16894
+ num: 1
16895
+ },
16896
+ KM_REISSUE_GOODS: {
16897
+ realNum: 1,
16898
+ desiredNum: 1
16899
+ }
16900
+ };
16644
16901
  return list.map(function (item) {
16645
16902
  return _objectSpread2(_objectSpread2({}, item), {}, {
16646
- sysSkuPropertiesName: item.specName,
16903
+ skuPropertiesName: item.specName,
16647
16904
  sysTitle: item.goodName,
16648
16905
  title: null,
16649
16906
  shortTitle: item.goodShortName,
@@ -16657,9 +16914,8 @@ var processKmGoods = function processKmGoods(_ref6) {
16657
16914
  type: null,
16658
16915
  uuid: kmkfUtils.uuid(),
16659
16916
  canDelete: true,
16660
- canEdit: true,
16661
- num: 1
16662
- });
16917
+ canEdit: true
16918
+ }, initParamsMap[type] || {});
16663
16919
  });
16664
16920
  };
16665
16921
  var processDefaultGoods = function processDefaultGoods(_ref7) {
@@ -16706,6 +16962,7 @@ var GoodsModalMap = {
16706
16962
  JST_RETURN_GOODS: JstGoodsModal,
16707
16963
  JST_EXCHANGE_GOODS: JstGoodsModal,
16708
16964
  KM_GOODS: KmGoodsModal,
16965
+ KM_REISSUE_GOODS: KmGoodsModal,
16709
16966
  OTHER_GOODS: GoodsModal$2
16710
16967
  };
16711
16968
  var SelectTradeGoods = function SelectTradeGoods(_ref) {
@@ -16768,7 +17025,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
16768
17025
  };
16769
17026
  var getButtonText = function getButtonText() {
16770
17027
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
16771
- if (['KM_GOODS'].includes(type)) {
17028
+ if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
16772
17029
  return '选择快麦ERP商品';
16773
17030
  }
16774
17031
  if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
@@ -16915,6 +17172,7 @@ var GoodItem$1 = function GoodItem(props) {
16915
17172
  case 'GY_REISSUE_GOODS':
16916
17173
  case 'GY_RETURN_GOODS':
16917
17174
  case 'KM_GOODS':
17175
+ case 'KM_REISSUE_GOODS':
16918
17176
  {
16919
17177
  columns = getColumnsMap$1({
16920
17178
  text: text,
@@ -19254,7 +19512,9 @@ var typeMap$2 = {
19254
19512
  orderTypeKey: 'orderType',
19255
19513
  oIdKey: 'oId',
19256
19514
  outerOiIdKey: '',
19257
- goodDetailsKey: 'items'
19515
+ goodDetailsKey: 'items',
19516
+ mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
19517
+ uniqueKey: 'uuid'
19258
19518
  },
19259
19519
  JST_RETURN_GOODS: {
19260
19520
  compType: '退货',
@@ -19270,6 +19530,8 @@ var typeMap$2 = {
19270
19530
  oIdKey: 'oId',
19271
19531
  outerOiIdKey: '',
19272
19532
  goodDetailsKey: 'items',
19533
+ mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
19534
+ uniqueKey: 'uuid',
19273
19535
  eventNameMap: {
19274
19536
  // pubsub 事件
19275
19537
  exchangeCopyGood: 'jstExchangeCopyGood',
@@ -19277,10 +19539,25 @@ var typeMap$2 = {
19277
19539
  returnGoodsSysorder: 'jstReturnGoodsSysorder',
19278
19540
  returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
19279
19541
  }
19542
+ },
19543
+ KM_REISSUE_GOODS: {
19544
+ compType: '补发',
19545
+ key: 'kmReissueGoods',
19546
+ typeName: 'kmReissueType',
19547
+ systemOrder: 'kmSystemOrder',
19548
+ systemOrderNo: 'kmSystemOrderNo',
19549
+ getOrderList: kmUtils.getOrderListSingleton,
19550
+ updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
19551
+ alwaysShowChooseErpGoodsBtn: true,
19552
+ orderTypeKey: 'orderType',
19553
+ oIdKey: 'billNo',
19554
+ outerOiIdKey: '',
19555
+ goodDetailsKey: 'subOrders',
19556
+ uniqueKey: 'id'
19280
19557
  }
19281
19558
  };
19282
19559
  var PublicReissue = function PublicReissue(props) {
19283
- var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44;
19560
+ var _typeMap$type32, _typeMap$type37, _typeMap$type38, _typeMap$type39, _typeMap$type40, _value$typeMap$type$s6, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48;
19284
19561
  var value = props.value,
19285
19562
  onChange = props.onChange,
19286
19563
  _props$reasonList = props.reasonList,
@@ -19394,7 +19671,7 @@ var PublicReissue = function PublicReissue(props) {
19394
19671
  }))));
19395
19672
  };
19396
19673
  var getGoodDetails = function getGoodDetails(_ref4) {
19397
- var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19;
19674
+ var _typeMap$type17, _typeMap$type18, _order$typeMap$type$g, _typeMap$type19, _typeMap$type20;
19398
19675
  var mode = _ref4.mode,
19399
19676
  sysOrderNo = _ref4.sysOrderNo;
19400
19677
  var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
@@ -19402,37 +19679,47 @@ var PublicReissue = function PublicReissue(props) {
19402
19679
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
19403
19680
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
19404
19681
  });
19405
- var goodDetails = kmkfUtils.jstMergeIdenticalGoods((order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], true) : []);
19682
+ var orderRest = undefined;
19683
+ if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
19684
+ orderRest = true;
19685
+ } else if (type === 'KM_REISSUE_GOODS') {
19686
+ orderRest = {
19687
+ orderBackGoodsLevel: props.orderBackGoodsLevel,
19688
+ canEdit: true
19689
+ };
19690
+ }
19691
+ var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], orderRest)) : (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest) : [];
19406
19692
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
19407
- return mode ? goodDetails.filter(function (goodItem) {
19693
+ var list = mode ? goodDetails.filter(function (goodItem) {
19408
19694
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
19409
19695
  }) : goodDetails;
19696
+ return list;
19410
19697
  };
19411
19698
  var changeGoodHandle = function changeGoodHandle(val) {
19412
- var _typeMap$type20;
19699
+ var _typeMap$type21;
19413
19700
  var newValue = _objectSpread2({}, value);
19414
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key)] = val || [];
19701
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key)] = val || [];
19415
19702
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
19416
19703
  };
19417
19704
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
19418
- var _typeMap$type21, _typeMap$type22, _value$typeMap$type$t2, _typeMap$type27, _value$typeMap$type$t3, _typeMap$type29;
19705
+ var _typeMap$type22, _typeMap$type23, _value$typeMap$type$t2, _typeMap$type28, _value$typeMap$type$t3, _typeMap$type30;
19419
19706
  var newValue = _objectSpread2({}, value);
19420
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo)] = val;
19421
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderBillType) {
19422
- var _value$typeMap$type$s5, _typeMap$type23, _typeMap$type25, _typeMap$type26;
19423
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orders) || [];
19707
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
19708
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderBillType) {
19709
+ var _value$typeMap$type$s5, _typeMap$type24, _typeMap$type26, _typeMap$type27;
19710
+ var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orders) || [];
19424
19711
  var targetOrder = val && orders.find(function (oItem) {
19425
- var _typeMap$type24;
19426
- return oItem[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.oIdKey] === val;
19712
+ var _typeMap$type25;
19713
+ return oItem[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.oIdKey] === val;
19427
19714
  });
19428
- newValue[(_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.orderTypeKey];
19429
- }
19430
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
19431
- var _typeMap$type28;
19432
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)] = [];
19433
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
19434
- var _typeMap$type30;
19435
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.key)] = getGoodDetails({
19715
+ newValue[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.orderTypeKey];
19716
+ }
19717
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
19718
+ var _typeMap$type29;
19719
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)] = [];
19720
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
19721
+ var _typeMap$type31;
19722
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = getGoodDetails({
19436
19723
  mode: isStrict,
19437
19724
  sysOrderNo: val
19438
19725
  });
@@ -19440,25 +19727,26 @@ var PublicReissue = function PublicReissue(props) {
19440
19727
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
19441
19728
  };
19442
19729
  //显示选择商品按钮
19443
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo]);
19730
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo]);
19444
19731
  var selectedGoodsChange = React.useCallback(function (skuList) {
19445
- var _typeMap$type32, _typeMap$type33, _uniqBy;
19732
+ var _typeMap$type33, _typeMap$type34, _uniqBy, _typeMap$type35;
19446
19733
  var newValue = _objectSpread2({}, value);
19447
19734
  // 原订单商品
19448
19735
  var originTradeGoodList = getGoodDetails({
19449
19736
  mode: isStrict
19450
19737
  }) || [];
19451
19738
  // 当前选中的所有商品【包含了原订单+商品库】
19452
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)]) || [];
19453
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
19454
- return skuList.includes(item.uuid);
19739
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)]) || [];
19740
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
19741
+ var _typeMap$type36;
19742
+ return skuList.includes(item[typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.uniqueKey]);
19455
19743
  });
19456
19744
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
19457
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)], isStrict]);
19745
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)], isStrict]);
19458
19746
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
19459
19747
  gutter: 8,
19460
19748
  wrap: true,
19461
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key) || "".concat(Date.now())
19749
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key) || "".concat(Date.now())
19462
19750
  }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
19463
19751
  className: "gutter-row",
19464
19752
  xs: {
@@ -19474,12 +19762,12 @@ var PublicReissue = function PublicReissue(props) {
19474
19762
  },
19475
19763
  disabled: disabled,
19476
19764
  allowClear: false,
19477
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo)],
19765
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.systemOrderNo)],
19478
19766
  onChange: function onChange(val) {
19479
19767
  return changeSystemOrderHandle(val);
19480
19768
  },
19481
- placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.compType) || '', "\u7CFB\u7EDF\u5355")
19482
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
19769
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.compType) || '', "\u7CFB\u7EDF\u5355")
19770
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
19483
19771
  return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
19484
19772
  key: item[typeMap$2[type].oIdKey],
19485
19773
  value: item[typeMap$2[type].oIdKey],
@@ -19501,11 +19789,11 @@ var PublicReissue = function PublicReissue(props) {
19501
19789
  disabled: isSettingConfig ? !isSettingConfig : disabled,
19502
19790
  allowClear: false,
19503
19791
  options: reasonList,
19504
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.typeName)],
19792
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.typeName)],
19505
19793
  onChange: function onChange(val) {
19506
19794
  return changeTypeHandle(val);
19507
19795
  }
19508
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
19796
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
19509
19797
  className: "gutter-row",
19510
19798
  xs: {
19511
19799
  span: 11
@@ -19514,7 +19802,7 @@ var PublicReissue = function PublicReissue(props) {
19514
19802
  span: 6
19515
19803
  }
19516
19804
  }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
19517
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.systemOrderBillType)],
19805
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderBillType)],
19518
19806
  disabled: disabled,
19519
19807
  readOnly: true
19520
19808
  }))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -19524,10 +19812,10 @@ var PublicReissue = function PublicReissue(props) {
19524
19812
  disabled: disabled,
19525
19813
  canUpdateNumber: showChangeBtn,
19526
19814
  showChangeBtn: showChangeBtn,
19527
- alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.alwaysShowChooseErpGoodsBtn,
19528
- showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.showErpGoodsBtn,
19815
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.alwaysShowChooseErpGoodsBtn,
19816
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.showErpGoodsBtn,
19529
19817
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
19530
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)],
19818
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.key)],
19531
19819
  onChange: function onChange(val) {
19532
19820
  return changeGoodHandle(val);
19533
19821
  },
@@ -19538,6 +19826,7 @@ var PublicReissue = function PublicReissue(props) {
19538
19826
  originDataSource: getGoodDetails({
19539
19827
  mode: isStrict
19540
19828
  }),
19829
+ uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.uniqueKey) || 'uuid',
19541
19830
  selectedGoodsChange: selectedGoodsChange
19542
19831
  }
19543
19832
  })));
@@ -20610,7 +20899,7 @@ var typeMap$4 = {
20610
20899
  }
20611
20900
  };
20612
20901
  var GyReissue = function GyReissue(props) {
20613
- var _typeMap$type27, _typeMap$type28, _typeMap$type29, _systemOrder$orders, _typeMap$type30, _value$typeMap$type$s5, _typeMap$type31, _typeMap$type32, _typeMap$type33;
20902
+ var _typeMap$type29, _typeMap$type30, _typeMap$type31, _systemOrder$orders, _typeMap$type32, _value$typeMap$type$s7, _typeMap$type33, _typeMap$type34, _typeMap$type35;
20614
20903
  var value = props.value,
20615
20904
  onChange = props.onChange,
20616
20905
  _props$reasonList = props.reasonList,
@@ -20622,6 +20911,7 @@ var GyReissue = function GyReissue(props) {
20622
20911
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
20623
20912
  // order?.platformCode?.includes(';'),
20624
20913
  // );
20914
+ var getVipCodeFlag = React.useRef(false);
20625
20915
  var getOrderFlag = React.useRef(false);
20626
20916
  var valueRef = React.useRef(null);
20627
20917
  var _useState = React.useState(false),
@@ -20629,23 +20919,27 @@ var GyReissue = function GyReissue(props) {
20629
20919
  isStrict = _useState2[0],
20630
20920
  setIsStrict = _useState2[1];
20631
20921
  React.useEffect(function () {
20632
- var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2;
20922
+ var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2, _typeMap$type4, _value$typeMap$type$s5, _typeMap$type5;
20633
20923
  valueRef.current = value;
20634
20924
  if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$4[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$4[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo)) {
20635
20925
  var _value$typeMap$type$s4, _typeMap$type3;
20636
20926
  getOrderFlag.current = true;
20637
20927
  getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$4[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.orderNo);
20928
+ } else if (!getVipCodeFlag.current && (value === null || value === void 0 ? void 0 : value[(_typeMap$type4 = typeMap$4[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrderNo]) && !(value === null || value === void 0 ? void 0 : value.vipCode) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orderNo)) {
20929
+ var _value$typeMap$type$s6, _typeMap$type6;
20930
+ getVipCodeFlag.current = true;
20931
+ getVipCode(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orderNo);
20638
20932
  }
20639
20933
  return;
20640
20934
  }, [value]);
20641
20935
  var getOrderList = /*#__PURE__*/function () {
20642
20936
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
20643
- var _typeMap$type4;
20937
+ var _typeMap$type7;
20644
20938
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20645
20939
  while (1) switch (_context.prev = _context.next) {
20646
20940
  case 0:
20647
- (_typeMap$type4 = typeMap$4[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
20648
- var _typeMap$type5, _ref3, _typeMap$type6, _typeMap$type7, _ref4, _typeMap$type8;
20941
+ (_typeMap$type7 = typeMap$4[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.getOrderList(orderNo).then(function (data) {
20942
+ var _typeMap$type8, _ref3, _typeMap$type9, _orders$, _orders$2, _objectSpread2$1;
20649
20943
  var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
20650
20944
  var showOrderInfo = orders.map(function (_ref2) {
20651
20945
  var billNo = _ref2.billNo,
@@ -20667,17 +20961,15 @@ var GyReissue = function GyReissue(props) {
20667
20961
  shopCode: shopCode
20668
20962
  });
20669
20963
  });
20964
+ var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, (_typeMap$type8 = typeMap$4[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type9 = typeMap$4[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrder]) || {}), {}, {
20965
+ showOrderInfo: showOrderInfo,
20966
+ orders: orders
20967
+ })), _defineProperty(_objectSpread2$1, "shopCode", (valueRef.current || {}).shopCode || (orders === null || orders === void 0 ? void 0 : (_orders$ = orders[0]) === null || _orders$ === void 0 ? void 0 : _orders$.shopCode)), _defineProperty(_objectSpread2$1, "vipCode", (valueRef.current || {}).vipCode || (orders === null || orders === void 0 ? void 0 : (_orders$2 = orders[0]) === null || _orders$2 === void 0 ? void 0 : _orders$2.vipCode)), _objectSpread2$1));
20670
20968
  kmkfUtils.pushGyLog('getOrderList', {
20671
20969
  before: valueRef.current,
20672
- after: _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) || {}), {}, {
20673
- showOrderInfo: showOrderInfo,
20674
- orders: orders
20675
- })))
20970
+ after: newValue
20676
20971
  });
20677
- onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type7 = typeMap$4[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref4 = valueRef.current || {}) === null || _ref4 === void 0 ? void 0 : _ref4[(_typeMap$type8 = typeMap$4[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrder]) || {}), {}, {
20678
- showOrderInfo: showOrderInfo,
20679
- orders: orders
20680
- }))));
20972
+ onChange(newValue);
20681
20973
  });
20682
20974
  case 1:
20683
20975
  case "end":
@@ -20689,42 +20981,71 @@ var GyReissue = function GyReissue(props) {
20689
20981
  return _ref.apply(this, arguments);
20690
20982
  };
20691
20983
  }();
20984
+ var getVipCode = /*#__PURE__*/function () {
20985
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
20986
+ var _typeMap$type10;
20987
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20988
+ while (1) switch (_context2.prev = _context2.next) {
20989
+ case 0:
20990
+ return _context2.abrupt("return", (_typeMap$type10 = typeMap$4[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.getOrderList(orderNo).then(function (data) {
20991
+ var _orders$3, _orders$4;
20992
+ var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
20993
+ var newValue = _objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
20994
+ shopCode: (valueRef.current || {}).shopCode || (orders === null || orders === void 0 ? void 0 : (_orders$3 = orders[0]) === null || _orders$3 === void 0 ? void 0 : _orders$3.shopCode),
20995
+ vipCode: (valueRef.current || {}).vipCode || (orders === null || orders === void 0 ? void 0 : (_orders$4 = orders[0]) === null || _orders$4 === void 0 ? void 0 : _orders$4.vipCode)
20996
+ });
20997
+ kmkfUtils.pushGyLog('getVipCode', {
20998
+ before: valueRef.current,
20999
+ after: newValue
21000
+ });
21001
+ onChange(newValue);
21002
+ }));
21003
+ case 1:
21004
+ case "end":
21005
+ return _context2.stop();
21006
+ }
21007
+ }, _callee2);
21008
+ }));
21009
+ return function getVipCode(_x2) {
21010
+ return _ref4.apply(this, arguments);
21011
+ };
21012
+ }();
20692
21013
  var changeTypeHandle = function changeTypeHandle(val) {
20693
- var _ref5, _ref5$typeMap$type$ty, _typeMap$type9, _typeMap$type10;
21014
+ var _ref5, _ref5$typeMap$type$ty, _typeMap$type11, _typeMap$type12;
20694
21015
  kmkfUtils.pushGyLog('beforeChangeType', valueRef.current || {});
20695
21016
  var typeName = val === null || val === void 0 ? void 0 : val[0];
20696
- if (typeName === ((_ref5 = valueRef.current || {}) === null || _ref5 === void 0 ? void 0 : (_ref5$typeMap$type$ty = _ref5[(_typeMap$type9 = typeMap$4[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.typeName]) === null || _ref5$typeMap$type$ty === void 0 ? void 0 : _ref5$typeMap$type$ty[0])) return;
21017
+ if (typeName === ((_ref5 = valueRef.current || {}) === null || _ref5 === void 0 ? void 0 : (_ref5$typeMap$type$ty = _ref5[(_typeMap$type11 = typeMap$4[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.typeName]) === null || _ref5$typeMap$type$ty === void 0 ? void 0 : _ref5$typeMap$type$ty[0])) return;
20697
21018
  // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
20698
21019
  var newValue = _objectSpread2({}, valueRef.current || {});
20699
- newValue[(_typeMap$type10 = typeMap$4[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.typeName] = val;
21020
+ newValue[(_typeMap$type12 = typeMap$4[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.typeName] = val;
20700
21021
  if (typeName === '1') {
20701
- var _typeMap$type11;
20702
- newValue[(_typeMap$type11 = typeMap$4[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.key] = getGoodDetails({
21022
+ var _typeMap$type13;
21023
+ newValue[(_typeMap$type13 = typeMap$4[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.key] = getGoodDetails({
20703
21024
  mode: isStrict
20704
21025
  });
20705
21026
  } else if (typeName === '2') {
20706
- var _typeMap$type12;
21027
+ var _typeMap$type14;
20707
21028
  // 切换到非原单,清空列表
20708
- newValue[(_typeMap$type12 = typeMap$4[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.key] = [];
21029
+ newValue[(_typeMap$type14 = typeMap$4[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = [];
20709
21030
  }
20710
21031
  kmkfUtils.pushGyLog('afterChangeType', newValue);
20711
21032
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
20712
21033
  };
20713
21034
  var handleModeChange = function handleModeChange(mode) {
20714
- var _ref6, _ref6$typeMap$type$ty, _typeMap$type13, _typeMap$type14;
20715
- var isOriginalOrder = ((_ref6 = valueRef.current || {}) === null || _ref6 === void 0 ? void 0 : (_ref6$typeMap$type$ty = _ref6[(_typeMap$type13 = typeMap$4[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.typeName]) === null || _ref6$typeMap$type$ty === void 0 ? void 0 : _ref6$typeMap$type$ty[0]) === '1';
21035
+ var _ref6, _ref6$typeMap$type$ty, _typeMap$type15, _typeMap$type16;
21036
+ var isOriginalOrder = ((_ref6 = valueRef.current || {}) === null || _ref6 === void 0 ? void 0 : (_ref6$typeMap$type$ty = _ref6[(_typeMap$type15 = typeMap$4[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName]) === null || _ref6$typeMap$type$ty === void 0 ? void 0 : _ref6$typeMap$type$ty[0]) === '1';
20716
21037
  setIsStrict(mode);
20717
21038
  if (!isOriginalOrder) return;
20718
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type14 = typeMap$4[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key, getGoodDetails({
21039
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, _defineProperty({}, (_typeMap$type16 = typeMap$4[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key, getGoodDetails({
20719
21040
  mode: mode
20720
21041
  }))));
20721
21042
  };
20722
21043
  var getGoodDetails = function getGoodDetails(_ref7) {
20723
- var _ref8, _typeMap$type15, _ref9, _typeMap$type16, _order$details;
21044
+ var _ref8, _typeMap$type17, _ref9, _typeMap$type18, _order$details;
20724
21045
  var mode = _ref7.mode,
20725
21046
  sysOrderNo = _ref7.sysOrderNo;
20726
- var systemOrder = (_ref8 = valueRef.current || {}) === null || _ref8 === void 0 ? void 0 : _ref8[(_typeMap$type15 = typeMap$4[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.systemOrder];
20727
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : (_ref9 = valueRef.current || {}) === null || _ref9 === void 0 ? void 0 : _ref9[(_typeMap$type16 = typeMap$4[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.systemOrderNo];
21047
+ var systemOrder = (_ref8 = valueRef.current || {}) === null || _ref8 === void 0 ? void 0 : _ref8[(_typeMap$type17 = typeMap$4[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.systemOrder];
21048
+ var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : (_ref9 = valueRef.current || {}) === null || _ref9 === void 0 ? void 0 : _ref9[(_typeMap$type18 = typeMap$4[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrderNo];
20728
21049
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
20729
21050
  return order.code === systemOrderNo;
20730
21051
  });
@@ -20735,29 +21056,29 @@ var GyReissue = function GyReissue(props) {
20735
21056
  }) : goodDetails;
20736
21057
  };
20737
21058
  var changeGoodHandle = function changeGoodHandle(val) {
20738
- var _typeMap$type17;
21059
+ var _typeMap$type19;
20739
21060
  kmkfUtils.pushGyLog('beforeChangeGood', valueRef.current || {});
20740
21061
  var newValue = _objectSpread2({}, valueRef.current || {});
20741
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type17 = typeMap$4[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key)] = (val || []).map(function (item) {
20742
- var _typeMap$type18, _typeMap$type19;
20743
- item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type18 = typeMap$4[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.formatDefaultField.money)] = 0;
20744
- item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type19 = typeMap$4[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.formatDefaultField.share)] = 0;
21062
+ newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type19 = typeMap$4[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key)] = (val || []).map(function (item) {
21063
+ var _typeMap$type20, _typeMap$type21;
21064
+ item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.formatDefaultField.money)] = 0;
21065
+ item["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type21 = typeMap$4[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.formatDefaultField.share)] = 0;
20745
21066
  return item;
20746
21067
  });
20747
21068
  kmkfUtils.pushGyLog('afterChangeGood', newValue);
20748
21069
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
20749
21070
  };
20750
21071
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
20751
- var _typeMap$type20, _ref10, _ref10$typeMap$type$t, _typeMap$type21, _ref11, _ref11$typeMap$type$t, _typeMap$type23;
21072
+ var _typeMap$type22, _ref10, _ref10$typeMap$type$t, _typeMap$type23, _ref11, _ref11$typeMap$type$t, _typeMap$type25;
20752
21073
  kmkfUtils.pushGyLog('beforeChangeSystemOrder', valueRef.current || {});
20753
21074
  var newValue = _objectSpread2({}, valueRef.current || {});
20754
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type20 = typeMap$4[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo)] = val;
20755
- if (['2'].includes((_ref10 = valueRef.current || {}) === null || _ref10 === void 0 ? void 0 : (_ref10$typeMap$type$t = _ref10[(_typeMap$type21 = typeMap$4[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.typeName]) === null || _ref10$typeMap$type$t === void 0 ? void 0 : _ref10$typeMap$type$t[0])) {
20756
- var _typeMap$type22;
20757
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type22 = typeMap$4[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)] = [];
20758
- } else if (['1'].includes((_ref11 = valueRef.current || {}) === null || _ref11 === void 0 ? void 0 : (_ref11$typeMap$type$t = _ref11[(_typeMap$type23 = typeMap$4[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _ref11$typeMap$type$t === void 0 ? void 0 : _ref11$typeMap$type$t[0])) {
21075
+ newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type22 = typeMap$4[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo)] = val;
21076
+ if (['2'].includes((_ref10 = valueRef.current || {}) === null || _ref10 === void 0 ? void 0 : (_ref10$typeMap$type$t = _ref10[(_typeMap$type23 = typeMap$4[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.typeName]) === null || _ref10$typeMap$type$t === void 0 ? void 0 : _ref10$typeMap$type$t[0])) {
20759
21077
  var _typeMap$type24;
20760
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type24 = typeMap$4[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = getGoodDetails({
21078
+ newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type24 = typeMap$4[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = [];
21079
+ } else if (['1'].includes((_ref11 = valueRef.current || {}) === null || _ref11 === void 0 ? void 0 : (_ref11$typeMap$type$t = _ref11[(_typeMap$type25 = typeMap$4[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.typeName]) === null || _ref11$typeMap$type$t === void 0 ? void 0 : _ref11$typeMap$type$t[0])) {
21080
+ var _typeMap$type26;
21081
+ newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)] = getGoodDetails({
20761
21082
  mode: isStrict,
20762
21083
  sysOrderNo: val
20763
21084
  });
@@ -20766,7 +21087,7 @@ var GyReissue = function GyReissue(props) {
20766
21087
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
20767
21088
  };
20768
21089
  var selectedGoodsChange = React.useCallback(function (skuList) {
20769
- var _ref12, _typeMap$type25, _typeMap$type26, _uniqBy;
21090
+ var _ref12, _typeMap$type27, _typeMap$type28, _uniqBy;
20770
21091
  kmkfUtils.pushGyLog('beforeSelectedGoodsChange', valueRef.current || {});
20771
21092
  var newValue = _objectSpread2({}, valueRef.current || {});
20772
21093
  // 原订单商品
@@ -20774,17 +21095,17 @@ var GyReissue = function GyReissue(props) {
20774
21095
  mode: isStrict
20775
21096
  }) || [];
20776
21097
  // 当前选中的所有商品【包含了原订单+商品库】
20777
- var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type25 = typeMap$4[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]) || [];
20778
- newValue["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type26 = typeMap$4[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
21098
+ var currentSelectGoodList = ((_ref12 = valueRef.current || {}) === null || _ref12 === void 0 ? void 0 : _ref12["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)]) || [];
21099
+ newValue["".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)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
20779
21100
  return skuList.includes(item.uuid);
20780
21101
  });
20781
21102
  // console.log('商品发生变化', newValue[`${typeMap?.[type]?.key}`]);
20782
21103
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
20783
21104
  kmkfUtils.pushGyLog('afterSelectedGoodsChange', newValue);
20784
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type27 = typeMap$4[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)], isStrict]);
21105
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.key)], isStrict]);
20785
21106
  //系统单选择后展示选择商品按钮,系统单未选择的时候不展示
20786
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder];
20787
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo]);
21107
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder];
21108
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo]);
20788
21109
  var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
20789
21110
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
20790
21111
  gutter: 8,
@@ -20804,12 +21125,12 @@ var GyReissue = function GyReissue(props) {
20804
21125
  },
20805
21126
  disabled: disabled,
20806
21127
  allowClear: false,
20807
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo)],
21128
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo)],
20808
21129
  onChange: function onChange(val) {
20809
21130
  return changeSystemOrderHandle(val);
20810
21131
  },
20811
21132
  placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
20812
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type31 = typeMap$4[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
21133
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type33 = typeMap$4[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.showOrderInfo) || []).map(function (item) {
20813
21134
  return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
20814
21135
  key: item.billNo,
20815
21136
  value: item.billNo,
@@ -20831,7 +21152,7 @@ var GyReissue = function GyReissue(props) {
20831
21152
  disabled: isSettingConfig ? !isSettingConfig : disabled,
20832
21153
  allowClear: false,
20833
21154
  options: reasonList,
20834
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName)],
21155
+ 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.typeName)],
20835
21156
  onChange: function onChange(val) {
20836
21157
  return changeTypeHandle(val);
20837
21158
  }
@@ -20845,7 +21166,7 @@ var GyReissue = function GyReissue(props) {
20845
21166
  showErpGoodsBtn: showErpGoodsBtn,
20846
21167
  alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
20847
21168
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
20848
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type33 = typeMap$4[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)],
21169
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type35 = typeMap$4[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)],
20849
21170
  onChange: function onChange(val) {
20850
21171
  return changeGoodHandle(val);
20851
21172
  },
@@ -20953,7 +21274,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
20953
21274
  while (1) switch (_context.prev = _context.next) {
20954
21275
  case 0:
20955
21276
  (_typeMap$type4 = typeMap$5[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.getOrderList(orderNo).then(function (data) {
20956
- var _valueRef$current, _typeMap$type5, _typeMap$type$systemO, _ref3, _valueRef$current2, _typeMap$type6;
21277
+ var _valueRef$current, _typeMap$type5, _typeMap$type$systemO, _ref3, _valueRef$current2, _typeMap$type6, _orders$, _objectSpread2$1;
20957
21278
  var orders = (data === null || data === void 0 ? void 0 : data.trades) || [];
20958
21279
  var showOrderInfo = orders.map(function (_ref2) {
20959
21280
  var billNo = _ref2.billNo,
@@ -20975,10 +21296,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
20975
21296
  shopCode: shopCode
20976
21297
  });
20977
21298
  });
20978
- onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current = valueRef.current) !== null && _valueRef$current !== void 0 ? _valueRef$current : {}), {}, _defineProperty({}, (_typeMap$type5 = typeMap$5[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, (_typeMap$type$systemO = (_ref3 = (_valueRef$current2 = valueRef.current) !== null && _valueRef$current2 !== void 0 ? _valueRef$current2 : {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$5[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) !== null && _typeMap$type$systemO !== void 0 ? _typeMap$type$systemO : {}), {}, {
21299
+ onChange(_objectSpread2(_objectSpread2({}, (_valueRef$current = valueRef.current) !== null && _valueRef$current !== void 0 ? _valueRef$current : {}), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, (_typeMap$type5 = typeMap$5[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, (_typeMap$type$systemO = (_ref3 = (_valueRef$current2 = valueRef.current) !== null && _valueRef$current2 !== void 0 ? _valueRef$current2 : {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type6 = typeMap$5[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) !== null && _typeMap$type$systemO !== void 0 ? _typeMap$type$systemO : {}), {}, {
20979
21300
  showOrderInfo: showOrderInfo,
20980
21301
  orders: orders
20981
- }))));
21302
+ })), _defineProperty(_objectSpread2$1, "shopCode", (valueRef.current || {}).shopCode || (orders === null || orders === void 0 ? void 0 : (_orders$ = orders[0]) === null || _orders$ === void 0 ? void 0 : _orders$.shopCode)), _objectSpread2$1)));
20982
21303
  });
20983
21304
  case 1:
20984
21305
  case "end":