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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -14,377 +14,363 @@ import { internals, useTablePipeline, features, BaseTable } from 'ali-react-tabl
14
14
  import zh_CN from 'antd/lib/locale-provider/zh_CN';
15
15
  import BigNumber from 'bignumber.js';
16
16
 
17
- function _iterableToArrayLimit(r, l) {
18
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
19
- if (null != t) {
20
- var e,
21
- n,
22
- i,
23
- u,
24
- a = [],
25
- f = !0,
26
- o = !1;
17
+ function _iterableToArrayLimit(arr, i) {
18
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
19
+ if (null != _i) {
20
+ var _s,
21
+ _e,
22
+ _x,
23
+ _r,
24
+ _arr = [],
25
+ _n = !0,
26
+ _d = !1;
27
27
  try {
28
- if (i = (t = t.call(r)).next, 0 === l) {
29
- if (Object(t) !== t) return;
30
- f = !1;
31
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
32
- } catch (r) {
33
- o = !0, n = r;
28
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
29
+ if (Object(_i) !== _i) return;
30
+ _n = !1;
31
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
32
+ } catch (err) {
33
+ _d = !0, _e = err;
34
34
  } finally {
35
35
  try {
36
- if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
36
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
37
37
  } finally {
38
- if (o) throw n;
38
+ if (_d) throw _e;
39
39
  }
40
40
  }
41
- return a;
41
+ return _arr;
42
42
  }
43
43
  }
44
- function ownKeys(e, r) {
45
- var t = Object.keys(e);
44
+ function ownKeys(object, enumerableOnly) {
45
+ var keys = Object.keys(object);
46
46
  if (Object.getOwnPropertySymbols) {
47
- var o = Object.getOwnPropertySymbols(e);
48
- r && (o = o.filter(function (r) {
49
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
50
- })), t.push.apply(t, o);
47
+ var symbols = Object.getOwnPropertySymbols(object);
48
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
49
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
50
+ })), keys.push.apply(keys, symbols);
51
51
  }
52
- return t;
53
- }
54
- function _objectSpread2(e) {
55
- for (var r = 1; r < arguments.length; r++) {
56
- var t = null != arguments[r] ? arguments[r] : {};
57
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
58
- _defineProperty(e, r, t[r]);
59
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
60
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
52
+ return keys;
53
+ }
54
+ function _objectSpread2(target) {
55
+ for (var i = 1; i < arguments.length; i++) {
56
+ var source = null != arguments[i] ? arguments[i] : {};
57
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
58
+ _defineProperty(target, key, source[key]);
59
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
60
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
61
61
  });
62
62
  }
63
- return e;
63
+ return target;
64
64
  }
65
65
  function _regeneratorRuntime() {
66
66
  _regeneratorRuntime = function () {
67
- return e;
68
- };
69
- var t,
70
- e = {},
71
- r = Object.prototype,
72
- n = r.hasOwnProperty,
73
- o = Object.defineProperty || function (t, e, r) {
74
- t[e] = r.value;
67
+ return exports;
68
+ };
69
+ var exports = {},
70
+ Op = Object.prototype,
71
+ hasOwn = Op.hasOwnProperty,
72
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
73
+ obj[key] = desc.value;
75
74
  },
76
- i = "function" == typeof Symbol ? Symbol : {},
77
- a = i.iterator || "@@iterator",
78
- c = i.asyncIterator || "@@asyncIterator",
79
- u = i.toStringTag || "@@toStringTag";
80
- function define(t, e, r) {
81
- return Object.defineProperty(t, e, {
82
- value: r,
75
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
76
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
77
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
78
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
79
+ function define(obj, key, value) {
80
+ return Object.defineProperty(obj, key, {
81
+ value: value,
83
82
  enumerable: !0,
84
83
  configurable: !0,
85
84
  writable: !0
86
- }), t[e];
85
+ }), obj[key];
87
86
  }
88
87
  try {
89
88
  define({}, "");
90
- } catch (t) {
91
- define = function (t, e, r) {
92
- return t[e] = r;
89
+ } catch (err) {
90
+ define = function (obj, key, value) {
91
+ return obj[key] = value;
93
92
  };
94
93
  }
95
- function wrap(t, e, r, n) {
96
- var i = e && e.prototype instanceof Generator ? e : Generator,
97
- a = Object.create(i.prototype),
98
- c = new Context(n || []);
99
- return o(a, "_invoke", {
100
- value: makeInvokeMethod(t, r, c)
101
- }), a;
94
+ function wrap(innerFn, outerFn, self, tryLocsList) {
95
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
96
+ generator = Object.create(protoGenerator.prototype),
97
+ context = new Context(tryLocsList || []);
98
+ return defineProperty(generator, "_invoke", {
99
+ value: makeInvokeMethod(innerFn, self, context)
100
+ }), generator;
102
101
  }
103
- function tryCatch(t, e, r) {
102
+ function tryCatch(fn, obj, arg) {
104
103
  try {
105
104
  return {
106
105
  type: "normal",
107
- arg: t.call(e, r)
106
+ arg: fn.call(obj, arg)
108
107
  };
109
- } catch (t) {
108
+ } catch (err) {
110
109
  return {
111
110
  type: "throw",
112
- arg: t
111
+ arg: err
113
112
  };
114
113
  }
115
114
  }
116
- e.wrap = wrap;
117
- var h = "suspendedStart",
118
- l = "suspendedYield",
119
- f = "executing",
120
- s = "completed",
121
- y = {};
115
+ exports.wrap = wrap;
116
+ var ContinueSentinel = {};
122
117
  function Generator() {}
123
118
  function GeneratorFunction() {}
124
119
  function GeneratorFunctionPrototype() {}
125
- var p = {};
126
- define(p, a, function () {
120
+ var IteratorPrototype = {};
121
+ define(IteratorPrototype, iteratorSymbol, function () {
127
122
  return this;
128
123
  });
129
- var d = Object.getPrototypeOf,
130
- v = d && d(d(values([])));
131
- v && v !== r && n.call(v, a) && (p = v);
132
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
133
- function defineIteratorMethods(t) {
134
- ["next", "throw", "return"].forEach(function (e) {
135
- define(t, e, function (t) {
136
- return this._invoke(e, t);
124
+ var getProto = Object.getPrototypeOf,
125
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
126
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
127
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
128
+ function defineIteratorMethods(prototype) {
129
+ ["next", "throw", "return"].forEach(function (method) {
130
+ define(prototype, method, function (arg) {
131
+ return this._invoke(method, arg);
137
132
  });
138
133
  });
139
134
  }
140
- function AsyncIterator(t, e) {
141
- function invoke(r, o, i, a) {
142
- var c = tryCatch(t[r], t, o);
143
- if ("throw" !== c.type) {
144
- var u = c.arg,
145
- h = u.value;
146
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
147
- invoke("next", t, i, a);
148
- }, function (t) {
149
- invoke("throw", t, i, a);
150
- }) : e.resolve(h).then(function (t) {
151
- u.value = t, i(u);
152
- }, function (t) {
153
- return invoke("throw", t, i, a);
135
+ function AsyncIterator(generator, PromiseImpl) {
136
+ function invoke(method, arg, resolve, reject) {
137
+ var record = tryCatch(generator[method], generator, arg);
138
+ if ("throw" !== record.type) {
139
+ var result = record.arg,
140
+ value = result.value;
141
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
142
+ invoke("next", value, resolve, reject);
143
+ }, function (err) {
144
+ invoke("throw", err, resolve, reject);
145
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
146
+ result.value = unwrapped, resolve(result);
147
+ }, function (error) {
148
+ return invoke("throw", error, resolve, reject);
154
149
  });
155
150
  }
156
- a(c.arg);
151
+ reject(record.arg);
157
152
  }
158
- var r;
159
- o(this, "_invoke", {
160
- value: function (t, n) {
153
+ var previousPromise;
154
+ defineProperty(this, "_invoke", {
155
+ value: function (method, arg) {
161
156
  function callInvokeWithMethodAndArg() {
162
- return new e(function (e, r) {
163
- invoke(t, n, e, r);
157
+ return new PromiseImpl(function (resolve, reject) {
158
+ invoke(method, arg, resolve, reject);
164
159
  });
165
160
  }
166
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
161
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
167
162
  }
168
163
  });
169
164
  }
170
- function makeInvokeMethod(e, r, n) {
171
- var o = h;
172
- return function (i, a) {
173
- if (o === f) throw new Error("Generator is already running");
174
- if (o === s) {
175
- if ("throw" === i) throw a;
176
- return {
177
- value: t,
178
- done: !0
179
- };
180
- }
181
- for (n.method = i, n.arg = a;;) {
182
- var c = n.delegate;
183
- if (c) {
184
- var u = maybeInvokeDelegate(c, n);
185
- if (u) {
186
- if (u === y) continue;
187
- return u;
165
+ function makeInvokeMethod(innerFn, self, context) {
166
+ var state = "suspendedStart";
167
+ return function (method, arg) {
168
+ if ("executing" === state) throw new Error("Generator is already running");
169
+ if ("completed" === state) {
170
+ if ("throw" === method) throw arg;
171
+ return doneResult();
172
+ }
173
+ for (context.method = method, context.arg = arg;;) {
174
+ var delegate = context.delegate;
175
+ if (delegate) {
176
+ var delegateResult = maybeInvokeDelegate(delegate, context);
177
+ if (delegateResult) {
178
+ if (delegateResult === ContinueSentinel) continue;
179
+ return delegateResult;
188
180
  }
189
181
  }
190
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
191
- if (o === h) throw o = s, n.arg;
192
- n.dispatchException(n.arg);
193
- } else "return" === n.method && n.abrupt("return", n.arg);
194
- o = f;
195
- var p = tryCatch(e, r, n);
196
- if ("normal" === p.type) {
197
- if (o = n.done ? s : l, p.arg === y) continue;
182
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
183
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
184
+ context.dispatchException(context.arg);
185
+ } else "return" === context.method && context.abrupt("return", context.arg);
186
+ state = "executing";
187
+ var record = tryCatch(innerFn, self, context);
188
+ if ("normal" === record.type) {
189
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
198
190
  return {
199
- value: p.arg,
200
- done: n.done
191
+ value: record.arg,
192
+ done: context.done
201
193
  };
202
194
  }
203
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
195
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
204
196
  }
205
197
  };
206
198
  }
207
- function maybeInvokeDelegate(e, r) {
208
- var n = r.method,
209
- o = e.iterator[n];
210
- 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;
211
- var i = tryCatch(o, e.iterator, r.arg);
212
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
213
- var a = i.arg;
214
- 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);
199
+ function maybeInvokeDelegate(delegate, context) {
200
+ var methodName = context.method,
201
+ method = delegate.iterator[methodName];
202
+ 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;
203
+ var record = tryCatch(method, delegate.iterator, context.arg);
204
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
205
+ var info = record.arg;
206
+ 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);
215
207
  }
216
- function pushTryEntry(t) {
217
- var e = {
218
- tryLoc: t[0]
208
+ function pushTryEntry(locs) {
209
+ var entry = {
210
+ tryLoc: locs[0]
219
211
  };
220
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
212
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
221
213
  }
222
- function resetTryEntry(t) {
223
- var e = t.completion || {};
224
- e.type = "normal", delete e.arg, t.completion = e;
214
+ function resetTryEntry(entry) {
215
+ var record = entry.completion || {};
216
+ record.type = "normal", delete record.arg, entry.completion = record;
225
217
  }
226
- function Context(t) {
218
+ function Context(tryLocsList) {
227
219
  this.tryEntries = [{
228
220
  tryLoc: "root"
229
- }], t.forEach(pushTryEntry, this), this.reset(!0);
221
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
230
222
  }
231
- function values(e) {
232
- if (e || "" === e) {
233
- var r = e[a];
234
- if (r) return r.call(e);
235
- if ("function" == typeof e.next) return e;
236
- if (!isNaN(e.length)) {
237
- var o = -1,
238
- i = function next() {
239
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
240
- return next.value = t, next.done = !0, next;
223
+ function values(iterable) {
224
+ if (iterable) {
225
+ var iteratorMethod = iterable[iteratorSymbol];
226
+ if (iteratorMethod) return iteratorMethod.call(iterable);
227
+ if ("function" == typeof iterable.next) return iterable;
228
+ if (!isNaN(iterable.length)) {
229
+ var i = -1,
230
+ next = function next() {
231
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
232
+ return next.value = undefined, next.done = !0, next;
241
233
  };
242
- return i.next = i;
234
+ return next.next = next;
243
235
  }
244
236
  }
245
- throw new TypeError(typeof e + " is not iterable");
237
+ return {
238
+ next: doneResult
239
+ };
246
240
  }
247
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
241
+ function doneResult() {
242
+ return {
243
+ value: undefined,
244
+ done: !0
245
+ };
246
+ }
247
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
248
248
  value: GeneratorFunctionPrototype,
249
249
  configurable: !0
250
- }), o(GeneratorFunctionPrototype, "constructor", {
250
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
251
251
  value: GeneratorFunction,
252
252
  configurable: !0
253
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
254
- var e = "function" == typeof t && t.constructor;
255
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
256
- }, e.mark = function (t) {
257
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
258
- }, e.awrap = function (t) {
253
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
254
+ var ctor = "function" == typeof genFun && genFun.constructor;
255
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
256
+ }, exports.mark = function (genFun) {
257
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
258
+ }, exports.awrap = function (arg) {
259
259
  return {
260
- __await: t
260
+ __await: arg
261
261
  };
262
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
262
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
263
263
  return this;
264
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
265
- void 0 === i && (i = Promise);
266
- var a = new AsyncIterator(wrap(t, r, n, o), i);
267
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
268
- return t.done ? t.value : a.next();
264
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
265
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
266
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
267
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
268
+ return result.done ? result.value : iter.next();
269
269
  });
270
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
270
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
271
271
  return this;
272
- }), define(g, "toString", function () {
272
+ }), define(Gp, "toString", function () {
273
273
  return "[object Generator]";
274
- }), e.keys = function (t) {
275
- var e = Object(t),
276
- r = [];
277
- for (var n in e) r.push(n);
278
- return r.reverse(), function next() {
279
- for (; r.length;) {
280
- var t = r.pop();
281
- if (t in e) return next.value = t, next.done = !1, next;
274
+ }), exports.keys = function (val) {
275
+ var object = Object(val),
276
+ keys = [];
277
+ for (var key in object) keys.push(key);
278
+ return keys.reverse(), function next() {
279
+ for (; keys.length;) {
280
+ var key = keys.pop();
281
+ if (key in object) return next.value = key, next.done = !1, next;
282
282
  }
283
283
  return next.done = !0, next;
284
284
  };
285
- }, e.values = values, Context.prototype = {
285
+ }, exports.values = values, Context.prototype = {
286
286
  constructor: Context,
287
- reset: function (e) {
288
- 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);
287
+ reset: function (skipTempReset) {
288
+ 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);
289
289
  },
290
290
  stop: function () {
291
291
  this.done = !0;
292
- var t = this.tryEntries[0].completion;
293
- if ("throw" === t.type) throw t.arg;
292
+ var rootRecord = this.tryEntries[0].completion;
293
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
294
294
  return this.rval;
295
295
  },
296
- dispatchException: function (e) {
297
- if (this.done) throw e;
298
- var r = this;
299
- function handle(n, o) {
300
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
301
- }
302
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
303
- var i = this.tryEntries[o],
304
- a = i.completion;
305
- if ("root" === i.tryLoc) return handle("end");
306
- if (i.tryLoc <= this.prev) {
307
- var c = n.call(i, "catchLoc"),
308
- u = n.call(i, "finallyLoc");
309
- if (c && u) {
310
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
311
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
312
- } else if (c) {
313
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
296
+ dispatchException: function (exception) {
297
+ if (this.done) throw exception;
298
+ var context = this;
299
+ function handle(loc, caught) {
300
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
301
+ }
302
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
303
+ var entry = this.tryEntries[i],
304
+ record = entry.completion;
305
+ if ("root" === entry.tryLoc) return handle("end");
306
+ if (entry.tryLoc <= this.prev) {
307
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
308
+ hasFinally = hasOwn.call(entry, "finallyLoc");
309
+ if (hasCatch && hasFinally) {
310
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
311
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
312
+ } else if (hasCatch) {
313
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
314
314
  } else {
315
- if (!u) throw new Error("try statement without catch or finally");
316
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
315
+ if (!hasFinally) throw new Error("try statement without catch or finally");
316
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
317
317
  }
318
318
  }
319
319
  }
320
320
  },
321
- abrupt: function (t, e) {
322
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
323
- var o = this.tryEntries[r];
324
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
325
- var i = o;
321
+ abrupt: function (type, arg) {
322
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
323
+ var entry = this.tryEntries[i];
324
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
325
+ var finallyEntry = entry;
326
326
  break;
327
327
  }
328
328
  }
329
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
330
- var a = i ? i.completion : {};
331
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
329
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
330
+ var record = finallyEntry ? finallyEntry.completion : {};
331
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
332
332
  },
333
- complete: function (t, e) {
334
- if ("throw" === t.type) throw t.arg;
335
- 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;
333
+ complete: function (record, afterLoc) {
334
+ if ("throw" === record.type) throw record.arg;
335
+ 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;
336
336
  },
337
- finish: function (t) {
338
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
339
- var r = this.tryEntries[e];
340
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
337
+ finish: function (finallyLoc) {
338
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
339
+ var entry = this.tryEntries[i];
340
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
341
341
  }
342
342
  },
343
- catch: function (t) {
344
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
345
- var r = this.tryEntries[e];
346
- if (r.tryLoc === t) {
347
- var n = r.completion;
348
- if ("throw" === n.type) {
349
- var o = n.arg;
350
- resetTryEntry(r);
343
+ catch: function (tryLoc) {
344
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
345
+ var entry = this.tryEntries[i];
346
+ if (entry.tryLoc === tryLoc) {
347
+ var record = entry.completion;
348
+ if ("throw" === record.type) {
349
+ var thrown = record.arg;
350
+ resetTryEntry(entry);
351
351
  }
352
- return o;
352
+ return thrown;
353
353
  }
354
354
  }
355
355
  throw new Error("illegal catch attempt");
356
356
  },
357
- delegateYield: function (e, r, n) {
357
+ delegateYield: function (iterable, resultName, nextLoc) {
358
358
  return this.delegate = {
359
- iterator: values(e),
360
- resultName: r,
361
- nextLoc: n
362
- }, "next" === this.method && (this.arg = t), y;
363
- }
364
- }, e;
365
- }
366
- function _toPrimitive(t, r) {
367
- if ("object" != typeof t || !t) return t;
368
- var e = t[Symbol.toPrimitive];
369
- if (void 0 !== e) {
370
- var i = e.call(t, r || "default");
371
- if ("object" != typeof i) return i;
372
- throw new TypeError("@@toPrimitive must return a primitive value.");
373
- }
374
- return ("string" === r ? String : Number)(t);
375
- }
376
- function _toPropertyKey(t) {
377
- var i = _toPrimitive(t, "string");
378
- return "symbol" == typeof i ? i : String(i);
359
+ iterator: values(iterable),
360
+ resultName: resultName,
361
+ nextLoc: nextLoc
362
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
363
+ }
364
+ }, exports;
379
365
  }
380
- function _typeof(o) {
366
+ function _typeof(obj) {
381
367
  "@babel/helpers - typeof";
382
368
 
383
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
384
- return typeof o;
385
- } : function (o) {
386
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
387
- }, _typeof(o);
369
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
370
+ return typeof obj;
371
+ } : function (obj) {
372
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
373
+ }, _typeof(obj);
388
374
  }
389
375
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
390
376
  try {
@@ -542,6 +528,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
542
528
  }
543
529
  };
544
530
  }
531
+ function _toPrimitive(input, hint) {
532
+ if (typeof input !== "object" || input === null) return input;
533
+ var prim = input[Symbol.toPrimitive];
534
+ if (prim !== undefined) {
535
+ var res = prim.call(input, hint || "default");
536
+ if (typeof res !== "object") return res;
537
+ throw new TypeError("@@toPrimitive must return a primitive value.");
538
+ }
539
+ return (hint === "string" ? String : Number)(input);
540
+ }
541
+ function _toPropertyKey(arg) {
542
+ var key = _toPrimitive(arg, "string");
543
+ return typeof key === "symbol" ? key : String(key);
544
+ }
545
545
 
546
546
  function ApaasCascader(props) {
547
547
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -9559,7 +9559,7 @@ var renderMap = {
9559
9559
  return /*#__PURE__*/React.createElement(FileRender, {
9560
9560
  id: "fileRender",
9561
9561
  fileList: value,
9562
- canDownload: !['ks', 'fxg'].includes(platform || '')
9562
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform || '')
9563
9563
  });
9564
9564
  },
9565
9565
  CHECKBOX: function CHECKBOX(value) {
@@ -9662,7 +9662,7 @@ var EditFileRender = function EditFileRender(_ref7) {
9662
9662
  })), /*#__PURE__*/React.createElement(FileRender, {
9663
9663
  id: "fileEdit",
9664
9664
  fileList: val,
9665
- canDownload: !['ks', 'fxg'].includes(platform)
9665
+ canDownload: !['ks', 'fxg', 'xiaozhi'].includes(platform)
9666
9666
  }));
9667
9667
  };
9668
9668
  var EditRenderMap = {
@@ -9902,8 +9902,8 @@ var SubForm = function SubForm(props) {
9902
9902
  tableHeader = props.tableHeader,
9903
9903
  disabled = props.disabled,
9904
9904
  platform = props.platform,
9905
- maxCount = props.maxCount,
9906
- manual = props.manual;
9905
+ manual = props.manual,
9906
+ maxCount = props.maxCount;
9907
9907
  var ref = useRef(null);
9908
9908
  var isRequest = useRef(false);
9909
9909
  var _useState = useState(false),
@@ -13340,7 +13340,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13340
13340
  if (disabled) {
13341
13341
  return;
13342
13342
  }
13343
- if (['KYE', 'SF'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13343
+ if (newCompany === 'SF' && !(newCompany && trajectoryCode && trajectoryPhone)) {
13344
13344
  return;
13345
13345
  } else if (!(newCompany && trajectoryCode)) {
13346
13346
  return;
@@ -13476,7 +13476,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13476
13476
  value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
13477
13477
  });
13478
13478
  };
13479
- return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), ['KYE', 'SF'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone() : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
13479
+ return /*#__PURE__*/React.createElement("div", null, LogisticsCompany(), LogisticsCode(), (value === null || value === void 0 ? void 0 : value.trajectoryCompany) === 'SF' ? LogisticsPhone() : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React.createElement(LogisticsSnapshot, null) : null);
13480
13480
  };
13481
13481
 
13482
13482
  var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
@@ -13732,7 +13732,7 @@ var jstGoods = function jstGoods(props) {
13732
13732
  changeIndex = _useState2[0],
13733
13733
  setChangeIndex = _useState2[1]; //选中的包裹
13734
13734
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
13735
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
13735
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
13736
13736
  var expressDateInstance = ExpressData.getInstance(platformType);
13737
13737
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
13738
13738
  useEffect(function () {
@@ -14885,139 +14885,13 @@ var kmColumns = [{
14885
14885
  width: 150
14886
14886
  }];
14887
14887
 
14888
- var getYesOrNo$1 = function getYesOrNo(val) {
14889
- if (!isBoolean(val)) return null;
14890
- return val ? '是' : '否';
14891
- };
14892
- var jyColumns = [{
14893
- dataIndex: 'productName',
14894
- title: '商品名称',
14895
- width: 250,
14896
- ellipsis: true
14897
- }, {
14898
- dataIndex: 'productCode',
14899
- title: '商品编码',
14900
- width: 150,
14901
- ellipsis: true
14902
- }, {
14903
- dataIndex: 'productId',
14904
- title: '商品ID',
14905
- width: 150,
14906
- ellipsis: true
14907
- }, {
14908
- dataIndex: 'imageUrl',
14909
- title: '商品图片',
14910
- width: 100,
14911
- render: function render(picUrl) {
14912
- return /*#__PURE__*/React.createElement("img", {
14913
- style: {
14914
- width: '40px',
14915
- height: '40px',
14916
- objectFit: 'contain'
14917
- },
14918
- src: picUrl
14919
- });
14920
- }
14921
- }, {
14922
- dataIndex: 'productShortName',
14923
- title: "\u5546\u54C1\u7B80\u79F0",
14924
- ellipsis: true,
14925
- width: 150
14926
- }, {
14927
- dataIndex: 'productGroupName',
14928
- title: "\u5546\u54C1\u7EC4",
14929
- ellipsis: true,
14930
- width: 150
14931
- }, {
14932
- dataIndex: 'brandName',
14933
- title: '品牌名称',
14934
- width: 200,
14935
- ellipsis: true
14936
- }, {
14937
- dataIndex: 'skuName',
14938
- title: '规格名称',
14939
- width: 250,
14940
- ellipsis: true
14941
- }, {
14942
- dataIndex: 'skuCode',
14943
- title: '规格编码',
14944
- width: 150,
14945
- ellipsis: true
14946
- }, {
14947
- dataIndex: 'skuId',
14948
- title: '规格ID',
14949
- width: 250,
14950
- ellipsis: true
14951
- }, {
14952
- dataIndex: 'barcode',
14953
- title: '规格条码',
14954
- width: 150,
14955
- ellipsis: true
14956
- }, {
14957
- dataIndex: 'skuImage',
14958
- title: '规格图片',
14959
- width: 100,
14960
- render: function render(picUrl) {
14961
- return /*#__PURE__*/React.createElement("img", {
14962
- style: {
14963
- width: '40px',
14964
- height: '40px',
14965
- objectFit: 'contain'
14966
- },
14967
- src: picUrl
14968
- });
14969
- }
14970
- }, {
14971
- dataIndex: 'color',
14972
- title: "\u989C\u8272",
14973
- ellipsis: true,
14974
- width: 100
14975
- }, {
14976
- dataIndex: 'size',
14977
- title: "\u5C3A\u7801",
14978
- ellipsis: true,
14979
- width: 100
14980
- }, {
14981
- dataIndex: 'markedPrice',
14982
- title: "\u5E02\u573A\u4EF7",
14983
- ellipsis: true,
14984
- width: 100
14985
- }, {
14986
- dataIndex: 'sellingPrice',
14987
- title: "\u96F6\u552E\u4EF7",
14988
- ellipsis: true,
14989
- width: 100
14990
- }, {
14991
- dataIndex: 'costPrice',
14992
- title: "\u6210\u672C\u4EF7",
14993
- ellipsis: true,
14994
- width: 100
14995
- }, {
14996
- dataIndex: 'gift',
14997
- title: "\u662F\u5426\u8D60\u54C1",
14998
- ellipsis: true,
14999
- width: 150,
15000
- render: function render(val) {
15001
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15002
- }
15003
- }, {
15004
- dataIndex: 'combination',
15005
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
15006
- ellipsis: true,
15007
- width: 150,
15008
- render: function render(val) {
15009
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
15010
- }
15011
- }];
15012
-
15013
14888
  var getColumnsMap = function getColumnsMap() {
15014
14889
  return cloneDeep({
15015
14890
  gy: gyColumns,
15016
14891
  jst: jstColumns,
15017
14892
  wdt: wdtColumns,
15018
14893
  bse3: bse3Columns,
15019
- km: kmColumns,
15020
- jy: jyColumns
14894
+ km: kmColumns
15021
14895
  });
15022
14896
  };
15023
14897
  var getColumnsBaseInfo = function getColumnsBaseInfo() {
@@ -15759,7 +15633,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
15759
15633
  var current = _ref.current,
15760
15634
  pageSize = _ref.pageSize;
15761
15635
  var data = {
15762
- goodShortName: formData.goodShortName || null,
15763
15636
  goodNo: formData.goodNo || null,
15764
15637
  goodName: formData.goodName || null,
15765
15638
  skuCode: formData.skuCode || null,
@@ -16757,7 +16630,8 @@ var Rate = function Rate(_ref) {
16757
16630
  var value = _ref.value,
16758
16631
  _onChange = _ref.onChange,
16759
16632
  placeholder = _ref.placeholder,
16760
- prefix = _ref.prefix;
16633
+ prefix = _ref.prefix,
16634
+ onSubmit = _ref.onSubmit;
16761
16635
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(InputNumber, {
16762
16636
  prefix: prefix,
16763
16637
  style: {
@@ -16767,7 +16641,8 @@ var Rate = function Rate(_ref) {
16767
16641
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
16768
16642
  onChange: function onChange(val) {
16769
16643
  _onChange([val ? Number(val) : val, value === null || value === void 0 ? void 0 : value[1]]);
16770
- }
16644
+ },
16645
+ onBlur: onSubmit
16771
16646
  }), /*#__PURE__*/React.createElement("span", {
16772
16647
  style: {
16773
16648
  padding: '0px 8px'
@@ -16781,7 +16656,8 @@ var Rate = function Rate(_ref) {
16781
16656
  placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
16782
16657
  onChange: function onChange(val) {
16783
16658
  _onChange([value === null || value === void 0 ? void 0 : value[0], val ? Number(val) : val]);
16784
- }
16659
+ },
16660
+ onBlur: onSubmit
16785
16661
  }));
16786
16662
  };
16787
16663
 
@@ -16865,6 +16741,7 @@ var _SelectInput = function SelectInput(props) {
16865
16741
  newValue.keywords = '';
16866
16742
  }
16867
16743
  onChange(newValue);
16744
+ props.onSubmit();
16868
16745
  };
16869
16746
  var handleInputChange = function handleInputChange(e) {
16870
16747
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
@@ -16887,7 +16764,8 @@ var _SelectInput = function SelectInput(props) {
16887
16764
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16888
16765
  value: value.keywords,
16889
16766
  allowClear: true,
16890
- onChange: handleInputChange
16767
+ onChange: handleInputChange,
16768
+ onBlur: props.onSubmit
16891
16769
  }) : null);
16892
16770
  };
16893
16771
  var _TradeInput = function TradeInput(props) {
@@ -16915,59 +16793,71 @@ var _TradeInput = function TradeInput(props) {
16915
16793
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16916
16794
  allowClear: true,
16917
16795
  value: value.value,
16918
- onChange: handleInputChange
16796
+ onChange: handleInputChange,
16797
+ onBlur: props.onSubmit
16919
16798
  }), isRepeat ) : /*#__PURE__*/React.createElement("div", {
16920
16799
  key: 'tradeInput'
16921
16800
  }, /*#__PURE__*/React.createElement(TrimInput, {
16922
16801
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16923
16802
  allowClear: true,
16924
16803
  value: value.value,
16925
- onChange: handleInputChange
16804
+ onChange: handleInputChange,
16805
+ onBlur: props.onSubmit
16926
16806
  }), isRepeat );
16927
16807
  };
16928
16808
  var componentMap$1 = {
16929
16809
  Input: function Input(props) {
16930
16810
  return "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16931
16811
  title: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name)
16932
- }, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
16812
+ }, /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
16933
16813
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16934
16814
  allowClear: true
16935
- }, props))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2({
16815
+ }, props), {}, {
16816
+ onBlur: props.handleBlur
16817
+ }))) : /*#__PURE__*/React.createElement(TrimInput, _objectSpread2(_objectSpread2({
16936
16818
  placeholder: "\u8BF7\u8F93\u5165".concat(props === null || props === void 0 ? void 0 : props.name),
16937
16819
  allowClear: true
16938
- }, props));
16820
+ }, props), {}, {
16821
+ onBlur: props.handleBlur
16822
+ }));
16939
16823
  },
16940
16824
  MultipleSelect: function MultipleSelect(props) {
16941
16825
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16942
16826
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16943
- }, /*#__PURE__*/React.createElement(Select, _objectSpread2({
16827
+ }, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
16944
16828
  mode: "multiple",
16945
16829
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16946
16830
  optionFilterProp: "label",
16947
16831
  allowClear: true,
16948
16832
  maxTagCount: "responsive"
16949
- }, props))) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
16833
+ }, props), {}, {
16834
+ onChange: props.handleChange
16835
+ }))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
16950
16836
  mode: "multiple",
16951
16837
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16952
16838
  optionFilterProp: "label",
16953
16839
  allowClear: true,
16954
16840
  maxTagCount: "responsive"
16955
- }, props));
16841
+ }, props), {}, {
16842
+ onChange: props.handleChange
16843
+ }));
16956
16844
  },
16957
16845
  Date: function Date(props) {
16958
- return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2({
16846
+ return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
16959
16847
  placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
16960
16848
  allowClear: true,
16961
16849
  showTime: {
16962
16850
  defaultValue: [hooks().startOf('day'), hooks().endOf('day')]
16963
16851
  },
16964
16852
  maxTagCount: "responsive"
16965
- }, props));
16853
+ }, props), {}, {
16854
+ onChange: props.handleChange
16855
+ }));
16966
16856
  },
16967
16857
  Cascader: function Cascader$1(props) {
16968
16858
  return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
16969
16859
  title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
16970
- }, /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
16860
+ }, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
16971
16861
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16972
16862
  allowClear: true,
16973
16863
  showSearch: true,
@@ -16977,7 +16867,9 @@ var componentMap$1 = {
16977
16867
  value: 'actived',
16978
16868
  children: 'children'
16979
16869
  }
16980
- }, props))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
16870
+ }, props), {}, {
16871
+ onChange: props.handleChange
16872
+ }))) : /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({
16981
16873
  placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
16982
16874
  allowClear: true,
16983
16875
  showSearch: true,
@@ -16987,7 +16879,9 @@ var componentMap$1 = {
16987
16879
  value: 'actived',
16988
16880
  children: 'children'
16989
16881
  }
16990
- }, props));
16882
+ }, props), {}, {
16883
+ onChange: props.handleChange
16884
+ }));
16991
16885
  },
16992
16886
  // ShopList: (props: any) => (
16993
16887
  // <ShopList
@@ -17010,9 +16904,11 @@ var componentMap$1 = {
17010
16904
  return /*#__PURE__*/React.createElement(_TradeInput, _objectSpread2({}, props));
17011
16905
  },
17012
16906
  AsyncSelect: function AsyncSelect$1(props) {
17013
- return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2({
16907
+ return /*#__PURE__*/React.createElement(AsyncSelect, _objectSpread2(_objectSpread2({
17014
16908
  placeholder: "\u8BF7\u9009\u62E9".concat((props === null || props === void 0 ? void 0 : props.name) || '')
17015
- }, props));
16909
+ }, props), {}, {
16910
+ onChange: props.handleChange
16911
+ }));
17016
16912
  }
17017
16913
  };
17018
16914
  var FilterSelectOption = function FilterSelectOption(props) {
@@ -17022,8 +16918,26 @@ var FilterSelectOption = function FilterSelectOption(props) {
17022
16918
  componentProps = props.props,
17023
16919
  ShopList = props.ShopList,
17024
16920
  otherProps = _objectWithoutProperties(props, _excluded$g);
16921
+ var handleChange = function handleChange() {
16922
+ var _props$onChange, _props$onSubmit;
16923
+ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
16924
+ params[_key] = arguments[_key];
16925
+ }
16926
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call.apply(_props$onChange, [props].concat(params));
16927
+ (_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props);
16928
+ };
16929
+ var handleBlur = function handleBlur(props) {
16930
+ return function () {
16931
+ var _props$onBlur, _props$onSubmit2;
16932
+ for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
16933
+ params[_key2] = arguments[_key2];
16934
+ }
16935
+ (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call.apply(_props$onBlur, [props].concat(params));
16936
+ (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 ? void 0 : _props$onSubmit2.call(props);
16937
+ };
16938
+ };
17025
16939
  var Comp = filterComponentType === 'ShopList' ? function (props) {
17026
- return /*#__PURE__*/React.createElement(ShopList, _objectSpread2({
16940
+ return /*#__PURE__*/React.createElement(ShopList, _objectSpread2(_objectSpread2({
17027
16941
  placeholder: "\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",
17028
16942
  showSearch: true,
17029
16943
  optionFilterProp: "label",
@@ -17033,7 +16947,9 @@ var FilterSelectOption = function FilterSelectOption(props) {
17033
16947
  style: {
17034
16948
  width: '190px'
17035
16949
  }
17036
- }, props));
16950
+ }, props), {}, {
16951
+ onChange: handleChange
16952
+ }));
17037
16953
  } : componentMap$1[filterComponentType];
17038
16954
  var newComponentProps = cloneDeep(componentProps);
17039
16955
  if (hasAddNullComponent.includes(props.type)) {
@@ -17208,7 +17124,10 @@ var FilterSelectOption = function FilterSelectOption(props) {
17208
17124
  })
17209
17125
  });
17210
17126
  }
17211
- if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2({}, newComponentProps), otherProps));
17127
+ if (Comp) return /*#__PURE__*/React.createElement(Comp, _objectSpread2(_objectSpread2(_objectSpread2({}, newComponentProps), otherProps), {}, {
17128
+ handleChange: handleChange,
17129
+ handleBlur: handleBlur
17130
+ }));
17212
17131
  return null;
17213
17132
  };
17214
17133
 
@@ -17245,7 +17164,8 @@ var SearchHeader = function SearchHeader(_ref) {
17245
17164
  _ref$isShowTime = _ref.isShowTime,
17246
17165
  isShowTime = _ref$isShowTime === void 0 ? true : _ref$isShowTime,
17247
17166
  timeOptions = _ref.timeOptions,
17248
- ShopList = _ref.ShopList;
17167
+ ShopList = _ref.ShopList,
17168
+ onSubmit = _ref.onSubmit;
17249
17169
  // const fixedFieldsOptions = useMemo(() => {
17250
17170
  // return allFields.filter(item => fixedFields?.includes(item.id));
17251
17171
  // }, [fixedFields, allFields]);
@@ -17301,9 +17221,11 @@ var SearchHeader = function SearchHeader(_ref) {
17301
17221
  minWidth: '190px'
17302
17222
  },
17303
17223
  key: item.id
17304
- }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2({
17224
+ }, /*#__PURE__*/React.createElement(FilterSelectOption, _objectSpread2(_objectSpread2({
17305
17225
  ShopList: ShopList
17306
- }, item)));
17226
+ }, item), {}, {
17227
+ onSubmit: onSubmit
17228
+ })));
17307
17229
  }), /*#__PURE__*/React.createElement(Form.Item, null, layout === 'inner' && /*#__PURE__*/React.createElement(React.Fragment, null, children)))), layout === 'block' && /*#__PURE__*/React.createElement(React.Fragment, null, children));
17308
17230
  };
17309
17231
 
@@ -17340,7 +17262,8 @@ var SearchForm$1 = function SearchForm(props) {
17340
17262
  ShopList: props.ShopList,
17341
17263
  fixedFields: filterItems || [],
17342
17264
  allFields: filterItems || [],
17343
- status: status === null || status === void 0 ? void 0 : status.open
17265
+ status: status === null || status === void 0 ? void 0 : status.open,
17266
+ onSubmit: submit
17344
17267
  }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
17345
17268
  type: "primary",
17346
17269
  onClick: submit
@@ -17744,276 +17667,37 @@ var GyGoodsModal$1 = function GyGoodsModal(props, ref) {
17744
17667
  };
17745
17668
  var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
17746
17669
 
17747
- var getTableData$5 = function getTableData(_ref, formData) {
17748
- var current = _ref.current,
17749
- pageSize = _ref.pageSize;
17750
- return extendRequest('/qy/gdfw/product/product/page', {
17751
- method: 'post',
17752
- data: _objectSpread2({
17753
- pageSize: pageSize,
17754
- pageNo: current,
17755
- platform: 'JY_ERP'
17756
- }, formData)
17757
- }).then(function (res) {
17758
- var _res$data = res.data,
17759
- _res$data$productSkuL = _res$data.productSkuList,
17760
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
17761
- _res$data$total = _res$data.total,
17762
- total = _res$data$total === void 0 ? 0 : _res$data$total;
17763
- var newProducts = productSkuList.map(function (item, index) {
17764
- return _objectSpread2({}, item);
17765
- });
17766
- return {
17767
- total: total,
17768
- list: newProducts
17769
- };
17770
- });
17771
- };
17772
- var searchFormData$4 = [{
17773
- label: '规格名称',
17774
- name: 'specName'
17775
- }, {
17776
- label: '规格编码',
17777
- name: 'specCode'
17778
- }, {
17779
- label: '商品名称',
17780
- name: 'goodName'
17781
- }, {
17782
- label: '商品编码',
17783
- name: 'goodNo'
17784
- }];
17785
- var GoodList$5 = function GoodList(props, ref) {
17786
- var _useState = useState([]),
17787
- _useState2 = _slicedToArray(_useState, 2),
17788
- selectList = _useState2[0],
17789
- setSelect = _useState2[1];
17790
- var _useState3 = useState([]),
17791
- _useState4 = _slicedToArray(_useState3, 2),
17792
- selectIds = _useState4[0],
17793
- setSelectIds = _useState4[1];
17794
- var _useGetColumns = useGetColumns('jy'),
17795
- _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
17796
- columns = _useGetColumns2[0],
17797
- showColumnsDataIndexList = _useGetColumns2[1],
17798
- loading = _useGetColumns2[2];
17799
- useImperativeHandle(ref, function () {
17800
- return {
17801
- getSelectGoodList: function getSelectGoodList() {
17802
- return selectList;
17803
- }
17804
- };
17805
- });
17806
- var _Form$useForm = Form.useForm(),
17807
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
17808
- form = _Form$useForm2[0];
17809
- var _useAntdTable = useAntdTable(getTableData$5, {
17810
- defaultPageSize: 10,
17811
- form: form
17812
- }),
17813
- tableProps = _useAntdTable.tableProps,
17814
- search = _useAntdTable.search,
17815
- params = _useAntdTable.params;
17816
- var submit = search.submit,
17817
- reset = search.reset;
17818
- var rowSelection = {
17819
- selectedRowKeys: selectIds,
17820
- fixed: true,
17821
- onSelect: function onSelect(record, selected) {
17822
- if (selected) {
17823
- setSelectIds([].concat(_toConsumableArray(selectIds), [record.goodNo]));
17824
- setSelect([].concat(_toConsumableArray(selectList), [record]));
17825
- } else {
17826
- setSelectIds(selectIds.filter(function (t) {
17827
- return t !== record.goodNo;
17828
- }));
17829
- setSelect(selectList.filter(function (t) {
17830
- return t.goodNo !== record.goodNo;
17831
- }));
17832
- }
17833
- },
17834
- onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
17835
- if (selected) {
17836
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
17837
- return t.goodNo;
17838
- }))));
17839
- setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
17840
- } else {
17841
- setSelectIds(difference(selectIds, changeRows.map(function (t) {
17842
- return t.goodNo;
17843
- })));
17844
- var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
17845
- return arrVal.goodNo !== othVal.goodNo;
17846
- });
17847
- setSelect(list);
17848
- }
17849
- },
17850
- getCheckboxProps: function getCheckboxProps(record) {
17851
- var options = {
17852
- disabled: (props.selectedRows || []).map(function (row) {
17853
- return row.goodNo || row.skuId;
17854
- }).includes(record.goodNo || record.skuId),
17855
- name: record.goodNo
17856
- };
17857
- return options;
17858
- }
17859
- };
17860
- var showTable = function showTable() {
17861
- var handleDelete = function handleDelete(record) {
17862
- setSelectIds(selectIds.filter(function (t) {
17863
- return t !== record.goodNo;
17864
- }));
17865
- setSelect(selectList.filter(function (t) {
17866
- return t.goodNo !== record.goodNo;
17867
- }));
17868
- };
17869
- var showColumns = [{
17870
- dataIndex: '',
17871
- title: "\u64CD\u4F5C",
17872
- ellipsis: true,
17873
- width: 100,
17874
- render: function render(val, record) {
17875
- return /*#__PURE__*/React.createElement(Button, {
17876
- type: "link",
17877
- onClick: function onClick() {
17878
- return handleDelete(record);
17879
- }
17880
- }, "\u5220\u9664");
17881
- }
17882
- }].concat(takeRight(columns, columns.length - 1));
17883
- return selectList.length ? /*#__PURE__*/React.createElement("div", {
17884
- style: {
17885
- width: '100%',
17886
- maxWidth: '387px'
17887
- }
17888
- }, /*#__PURE__*/React.createElement(Table, {
17889
- columns: showColumns,
17890
- rowKey: 'goodNo',
17891
- dataSource: selectList,
17892
- scroll: {
17893
- x: '100%',
17894
- y: 250
17895
- },
17896
- pagination: {
17897
- size: 'small',
17898
- total: selectIds.length,
17899
- pageSize: 10,
17900
- showSizeChanger: false
17901
- }
17902
- })) : null;
17903
- };
17904
- return /*#__PURE__*/React.createElement(Skeleton, {
17905
- active: true,
17906
- loading: loading
17907
- }, /*#__PURE__*/React.createElement(SearchForm, {
17908
- searchFormData: searchFormData$4,
17909
- form: form,
17910
- showColumnsDataIndexList: showColumnsDataIndexList,
17911
- submit: submit,
17912
- reset: reset
17913
- }), /*#__PURE__*/React.createElement("div", {
17914
- style: {
17915
- marginTop: '4px'
17916
- }
17917
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
17918
- rowSelection: rowSelection,
17919
- rowKey: "goodNo",
17920
- columns: columns,
17921
- scroll: {
17922
- x: '100%',
17923
- y: 250
17924
- }
17925
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
17926
- getPopupContainer: function getPopupContainer(triggerNode) {
17927
- return triggerNode.parentElement;
17928
- },
17929
- content: showTable(),
17930
- title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
17931
- }, /*#__PURE__*/React.createElement(Button, {
17932
- danger: true,
17933
- type: "text"
17934
- }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
17935
- };
17936
- var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
17937
-
17938
- var JyGoodsModal = function JyGoodsModal(props, ref) {
17939
- useImperativeHandle(ref, function () {
17940
- return {
17941
- open: function open(shopCode) {
17942
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17943
- setVisible(true);
17944
- setSelectedRows(options.value || []);
17945
- }
17946
- };
17947
- });
17948
- var onSubmit = props.onSubmit,
17949
- width = props.width;
17950
- var _useState = useState(false),
17951
- _useState2 = _slicedToArray(_useState, 2),
17952
- visible = _useState2[0],
17953
- setVisible = _useState2[1];
17954
- var _useState3 = useState([]),
17955
- _useState4 = _slicedToArray(_useState3, 2),
17956
- selectedRows = _useState4[0],
17957
- setSelectedRows = _useState4[1];
17958
- var jyGoodsListRef = useRef(null);
17959
- var _onCancel = function onCancel() {
17960
- setVisible(false);
17961
- };
17962
- var onOk = function onOk() {
17963
- var _jyGoodsListRef$curre;
17964
- var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
17965
- onSubmit(selectedList);
17966
- _onCancel();
17967
- };
17968
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
17969
- title: '选择商品',
17970
- okText: '确认',
17971
- cancelText: '取消',
17972
- visible: visible,
17973
- width: width || 850,
17974
- onCancel: function onCancel() {
17975
- _onCancel();
17976
- },
17977
- onOk: onOk,
17978
- wrapClassName: "goodModal"
17979
- }, /*#__PURE__*/React.createElement(JyGoodsList, {
17980
- ref: jyGoodsListRef,
17981
- selectedRows: selectedRows
17982
- })));
17983
- };
17984
- var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
17985
-
17986
- var getColumns = function getColumns(_ref) {
17987
- var _ref$text = _ref.text,
17988
- disabled = _ref.disabled,
17989
- updateHandle = _ref.updateHandle;
17990
- return {
17991
- //百胜E3补发商品
17992
- BS_E3_REISSUE_GOODS: [{
17993
- dataIndex: 'sku',
17994
- title: "SKU",
17995
- width: 150
17996
- }, {
17997
- dataIndex: 'skuId',
17998
- title: "SKU ID",
17999
- width: 150
18000
- }, {
18001
- dataIndex: 'goodsName',
18002
- title: "\u5546\u54C1\u540D\u79F0",
18003
- width: 150
18004
- }, {
18005
- dataIndex: 'goodsShortName',
18006
- title: "\u5546\u54C1\u7B80\u79F0",
18007
- width: 150
18008
- }, {
18009
- dataIndex: 'picPath',
18010
- title: "\u5546\u54C1\u56FE\u7247",
18011
- width: 150,
18012
- render: function render(val) {
18013
- return /*#__PURE__*/React.createElement(Image, {
18014
- width: 60,
18015
- src: val
18016
- });
17670
+ var getColumns = function getColumns(_ref) {
17671
+ var _ref$text = _ref.text,
17672
+ disabled = _ref.disabled,
17673
+ updateHandle = _ref.updateHandle;
17674
+ return {
17675
+ //百胜E3补发商品
17676
+ BS_E3_REISSUE_GOODS: [{
17677
+ dataIndex: 'sku',
17678
+ title: "SKU",
17679
+ width: 150
17680
+ }, {
17681
+ dataIndex: 'skuId',
17682
+ title: "SKU ID",
17683
+ width: 150
17684
+ }, {
17685
+ dataIndex: 'goodsName',
17686
+ title: "\u5546\u54C1\u540D\u79F0",
17687
+ width: 150
17688
+ }, {
17689
+ dataIndex: 'goodsShortName',
17690
+ title: "\u5546\u54C1\u7B80\u79F0",
17691
+ width: 150
17692
+ }, {
17693
+ dataIndex: 'picPath',
17694
+ title: "\u5546\u54C1\u56FE\u7247",
17695
+ width: 150,
17696
+ render: function render(val) {
17697
+ return /*#__PURE__*/React.createElement(Image, {
17698
+ width: 60,
17699
+ src: val
17700
+ });
18017
17701
  }
18018
17702
  }, {
18019
17703
  dataIndex: 'goodsSn',
@@ -18913,7 +18597,7 @@ var getColumns$2 = function getColumns(_ref) {
18913
18597
  };
18914
18598
  };
18915
18599
 
18916
- var getYesOrNo$2 = function getYesOrNo(val) {
18600
+ var getYesOrNo$1 = function getYesOrNo(val) {
18917
18601
  if (isNull(val)) return null;
18918
18602
  return val ? '是' : '否';
18919
18603
  };
@@ -19051,7 +18735,7 @@ var getColumns$3 = function getColumns(_ref) {
19051
18735
  label: '否',
19052
18736
  value: false
19053
18737
  }]
19054
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
18738
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$1(val));
19055
18739
  },
19056
18740
  width: 100
19057
18741
  }]
@@ -19063,7 +18747,7 @@ var isNumberOrNumberString = function isNumberOrNumberString(value) {
19063
18747
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
19064
18748
  return false;
19065
18749
  };
19066
- var getYesOrNo$3 = function getYesOrNo(val) {
18750
+ var getYesOrNo$2 = function getYesOrNo(val) {
19067
18751
  if (isNull(val)) return null;
19068
18752
  return val ? '是' : '否';
19069
18753
  };
@@ -19173,7 +18857,7 @@ var getColumns$4 = function getColumns(_ref) {
19173
18857
  title: "\u662F\u5426\u53D6\u6D88",
19174
18858
  width: 150,
19175
18859
  render: function render(val) {
19176
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
18860
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
19177
18861
  }
19178
18862
  }, {
19179
18863
  dataIndex: 'isGift',
@@ -19192,7 +18876,7 @@ var getColumns$4 = function getColumns(_ref) {
19192
18876
  label: '否',
19193
18877
  value: 0
19194
18878
  }]
19195
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
18879
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
19196
18880
  }
19197
18881
  }, {
19198
18882
  dataIndex: 'skuNote',
@@ -19312,7 +18996,7 @@ var getColumns$4 = function getColumns(_ref) {
19312
18996
  label: '否',
19313
18997
  value: 0
19314
18998
  }]
19315
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
18999
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
19316
19000
  }
19317
19001
  }].map(function (item) {
19318
19002
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -19436,7 +19120,7 @@ var getColumns$4 = function getColumns(_ref) {
19436
19120
  label: '否',
19437
19121
  value: 0
19438
19122
  }]
19439
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
19123
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
19440
19124
  }
19441
19125
  }].map(function (item) {
19442
19126
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -19558,7 +19242,7 @@ var getColumns$5 = function getColumns() {
19558
19242
  ellipsis: true,
19559
19243
  align: 'center',
19560
19244
  render: function render(val, record, index) {
19561
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
19245
+ return (record.qty || 0) * (+record.salePrice || 0);
19562
19246
  }
19563
19247
  }, {
19564
19248
  dataIndex: 'batchId',
@@ -19834,7 +19518,7 @@ var getColumns$5 = function getColumns() {
19834
19518
  dataIndex: 'saleAmount',
19835
19519
  title: '总金额',
19836
19520
  render: function render(val, record) {
19837
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
19521
+ return (record.qty || 0) * (+record.salePrice || 0);
19838
19522
  }
19839
19523
  }, {
19840
19524
  dataIndex: 'batchId',
@@ -19943,7 +19627,7 @@ var getColumns$5 = function getColumns() {
19943
19627
  dataIndex: 'saleAmount',
19944
19628
  title: '总金额',
19945
19629
  render: function render(val, record) {
19946
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
19630
+ return (record.qty || 0) * (+record.salePrice || 0);
19947
19631
  }
19948
19632
  }, {
19949
19633
  dataIndex: 'isGift',
@@ -20215,537 +19899,7 @@ var getColumns$6 = function getColumns(_ref) {
20215
19899
  };
20216
19900
  };
20217
19901
 
20218
- var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20219
- if (typeof value === 'number') return true;
20220
- if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20221
- return false;
20222
- };
20223
- var getYesOrNo$4 = function getYesOrNo(val) {
20224
- if (isNull(val)) return null;
20225
- return val ? '是' : '否';
20226
- };
20227
19902
  var getColumns$7 = function getColumns(_ref) {
20228
- var _ref$text = _ref.text,
20229
- disabled = _ref.disabled,
20230
- updateHandle = _ref.updateHandle,
20231
- updateDataHandle = _ref.updateDataHandle;
20232
- return {
20233
- //巨益商品信息
20234
- JY_GOODS: [{
20235
- dataIndex: 'goodsName',
20236
- title: "\u8D27\u54C1\u540D\u79F0",
20237
- width: 150
20238
- }, {
20239
- dataIndex: 'goodsCode',
20240
- title: "\u8D27\u54C1\u7F16\u53F7",
20241
- width: 200
20242
- }, {
20243
- dataIndex: 'goodsId',
20244
- title: "\u8D27\u54C1ID",
20245
- width: 150
20246
- }, {
20247
- dataIndex: 'goodsClass',
20248
- title: "\u8D27\u54C1ID",
20249
- width: 150
20250
- }, {
20251
- dataIndex: 'code',
20252
- title: "\u6761\u7801",
20253
- width: 150
20254
- }, {
20255
- dataIndex: 'specName',
20256
- title: "\u89C4\u683C\u540D\u79F0",
20257
- align: 'center',
20258
- ellipsis: true,
20259
- width: 200
20260
- }, {
20261
- dataIndex: 'specCode',
20262
- title: "\u89C4\u683C\u7F16\u53F7",
20263
- align: 'center',
20264
- ellipsis: true,
20265
- width: 150
20266
- }, {
20267
- dataIndex: 'specId',
20268
- title: "\u89C4\u683CID",
20269
- align: 'center',
20270
- ellipsis: true,
20271
- width: 150
20272
- }, {
20273
- dataIndex: 'productName',
20274
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20275
- align: 'center',
20276
- ellipsis: true,
20277
- width: 150
20278
- }, {
20279
- dataIndex: 'productCode',
20280
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20281
- align: 'center',
20282
- ellipsis: true,
20283
- width: 150
20284
- }, {
20285
- dataIndex: 'productCode',
20286
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20287
- align: 'center',
20288
- ellipsis: true,
20289
- width: 150
20290
- }, {
20291
- dataIndex: 'productId',
20292
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
20293
- align: 'center',
20294
- ellipsis: true,
20295
- width: 150
20296
- }, {
20297
- dataIndex: 'skuName',
20298
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20299
- align: 'center',
20300
- ellipsis: true,
20301
- width: 150
20302
- }, {
20303
- dataIndex: 'skuCode',
20304
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20305
- align: 'center',
20306
- ellipsis: true,
20307
- width: 150
20308
- }, {
20309
- dataIndex: 'mallProductName',
20310
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20311
- align: 'center',
20312
- ellipsis: true,
20313
- width: 150
20314
- }, {
20315
- dataIndex: 'mallProductOutCode',
20316
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
20317
- align: 'center',
20318
- ellipsis: true,
20319
- width: 150
20320
- }, {
20321
- dataIndex: 'mallProductId',
20322
- title: "\u5E73\u53F0\u5546\u54C1ID",
20323
- align: 'center',
20324
- ellipsis: true,
20325
- width: 150
20326
- }, {
20327
- dataIndex: 'mallSkuName',
20328
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
20329
- align: 'center',
20330
- ellipsis: true,
20331
- width: 150
20332
- }, {
20333
- dataIndex: 'mallSkuId',
20334
- title: "\u5E73\u53F0\u89C4\u683CID",
20335
- align: 'center',
20336
- ellipsis: true,
20337
- width: 150
20338
- }, {
20339
- dataIndex: 'sellcount',
20340
- title: "\u6570\u91CF",
20341
- width: 100,
20342
- render: function render(val, record, index) {
20343
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20344
- style: {
20345
- width: 70
20346
- },
20347
- value: val,
20348
- min: 1,
20349
- precision: 0,
20350
- onChange: function onChange(num) {
20351
- updateDataHandle({
20352
- qty: num,
20353
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20354
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20355
- }, index);
20356
- }
20357
- }) : /*#__PURE__*/React.createElement("span", null, val);
20358
- }
20359
- }, {
20360
- dataIndex: 'sellPrice',
20361
- title: "\u5355\u4EF7",
20362
- width: 150,
20363
- render: function render(val, record, index) {
20364
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20365
- style: {
20366
- width: 130
20367
- },
20368
- value: val,
20369
- min: 0,
20370
- precision: 2,
20371
- onChange: function onChange(num) {
20372
- updateDataHandle({
20373
- price: num,
20374
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20375
- }, index);
20376
- }
20377
- }) : /*#__PURE__*/React.createElement("span", null, val);
20378
- }
20379
- }, {
20380
- dataIndex: 'mallSellingPrice',
20381
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
20382
- width: 150
20383
- }, {
20384
- dataIndex: 'sellTotal',
20385
- title: "\u91D1\u989D",
20386
- width: 150
20387
- }, {
20388
- dataIndex: 'settlementPrice',
20389
- title: "\u7ED3\u7B97\u4EF7",
20390
- width: 150
20391
- }, {
20392
- dataIndex: 'divideOrderFee',
20393
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
20394
- width: 150
20395
- }, {
20396
- dataIndex: 'bfit',
20397
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
20398
- width: 150,
20399
- render: function render(val, record, index) {
20400
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20401
- value: val,
20402
- onChange: function onChange(value) {
20403
- updateHandle(value, index, 'bfit');
20404
- },
20405
- options: [{
20406
- label: '是',
20407
- value: 1
20408
- }, {
20409
- label: '否',
20410
- value: 0
20411
- }]
20412
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20413
- }
20414
- }, {
20415
- dataIndex: 'combinationName',
20416
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
20417
- width: 150
20418
- }, {
20419
- dataIndex: 'combinationCode',
20420
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20421
- width: 150
20422
- }, {
20423
- dataIndex: 'gift',
20424
- title: "\u662F\u5426\u8D60\u54C1",
20425
- width: 150,
20426
- render: function render(val, record, index) {
20427
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
20428
- value: val,
20429
- onChange: function onChange(value) {
20430
- updateHandle(value, index, 'gift');
20431
- },
20432
- options: [{
20433
- label: '是',
20434
- value: 1
20435
- }, {
20436
- label: '否',
20437
- value: 0
20438
- }]
20439
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20440
- }
20441
- }, {
20442
- dataIndex: 'skuNote',
20443
- title: "\u5546\u54C1\u5907\u6CE8",
20444
- width: 150
20445
- }].map(function (item) {
20446
- return _objectSpread2(_objectSpread2({}, item), {}, {
20447
- align: 'center',
20448
- ellipsis: true
20449
- });
20450
- })
20451
- //巨益补发商品信息
20452
- // JY_REISSUE_GOODS: [
20453
- // {
20454
- // dataIndex: 'goodName',
20455
- // title: `商品名称`,
20456
- // width: 150,
20457
- // },
20458
- // {
20459
- // dataIndex: 'goodShortName',
20460
- // title: `商品简称`,
20461
- // width: 150,
20462
- // },
20463
- // {
20464
- // dataIndex: 'goodNo',
20465
- // title: `商品编码`,
20466
- // width: 200,
20467
- // },
20468
- // {
20469
- // dataIndex: 'specName',
20470
- // title: `SKU名称`,
20471
- // align: 'center',
20472
- // ellipsis: true,
20473
- // width: 250,
20474
- // },
20475
- // {
20476
- // dataIndex: 'specNo',
20477
- // title: `SKU编码`,
20478
- // align: 'center',
20479
- // ellipsis: true,
20480
- // width: 150,
20481
- // },
20482
- // {
20483
- // dataIndex: 'qty',
20484
- // title: `数量`,
20485
- // width: 100,
20486
- // validator: (_rule: any, value: any) => {
20487
- // let goodsName = '';
20488
- // if (
20489
- // (value?.gyReissueGoods || []).some((goods: any) => {
20490
- // const qty = toNum(goods?.qty);
20491
- // const res = typeof qty === 'number' ? qty < 1 : true;
20492
- // if (res) {
20493
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20494
- // }
20495
- // return res;
20496
- // })
20497
- // ) {
20498
- // return Promise.reject(`${goodsName}数量必须大于0`);
20499
- // }
20500
- // },
20501
- // render: (val: any, record: any, index: number) =>
20502
- // !disabled ? (
20503
- // <InputNumber
20504
- // style={{ width: 70 }}
20505
- // value={val}
20506
- // min={1}
20507
- // precision={0}
20508
- // onChange={(num) => {
20509
- // updateDataHandle(
20510
- // {
20511
- // qty: num,
20512
- // amount:
20513
- // num && isNumberOrNumberString(record.price)
20514
- // ? num * record.price
20515
- // : null,
20516
- // originAmount:
20517
- // num && isNumberOrNumberString(record.originPrice)
20518
- // ? num * record.originPrice
20519
- // : null,
20520
- // },
20521
- // index,
20522
- // );
20523
- // }}
20524
- // ></InputNumber>
20525
- // ) : (
20526
- // <span>{val}</span>
20527
- // ),
20528
- // },
20529
- // {
20530
- // dataIndex: 'price',
20531
- // title: `实际单价`,
20532
- // width: 150,
20533
- // render: (val: any, record: any, index: number) =>
20534
- // !disabled ? (
20535
- // <InputNumber
20536
- // style={{ width: 130 }}
20537
- // value={val}
20538
- // min={0}
20539
- // precision={2}
20540
- // onChange={(num) => {
20541
- // updateDataHandle(
20542
- // {
20543
- // price: num,
20544
- // amount:
20545
- // num && isNumberOrNumberString(record.qty)
20546
- // ? num * record.qty
20547
- // : null,
20548
- // },
20549
- // index,
20550
- // );
20551
- // }}
20552
- // ></InputNumber>
20553
- // ) : (
20554
- // <span>{val}</span>
20555
- // ),
20556
- // },
20557
- // {
20558
- // dataIndex: 'amount',
20559
- // title: `实际金额`,
20560
- // width: 150,
20561
- // },
20562
- // {
20563
- // dataIndex: 'originPrice',
20564
- // title: `标准单价`,
20565
- // width: 150,
20566
- // },
20567
- // {
20568
- // dataIndex: 'originAmount',
20569
- // title: `标准金额`,
20570
- // width: 150,
20571
- // },
20572
- // {
20573
- // dataIndex: 'isGift',
20574
- // title: `是否赠品`,
20575
- // width: 150,
20576
- // render: (val: number, record: any, index: number) =>
20577
- // record.canEdit && !disabled ? (
20578
- // <Select
20579
- // value={val}
20580
- // onChange={(value) => {
20581
- // updateHandle(value, index, 'isGift');
20582
- // }}
20583
- // options={[
20584
- // { label: '是', value: 1 },
20585
- // { label: '否', value: 0 },
20586
- // ]}
20587
- // />
20588
- // ) : (
20589
- // <span>{getYesOrNo(val)}</span>
20590
- // ),
20591
- // },
20592
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20593
- // //巨益退货商品信息
20594
- // JY_RETURN_GOODS: [
20595
- // {
20596
- // dataIndex: 'goodName',
20597
- // title: `商品名称`,
20598
- // width: 150,
20599
- // },
20600
- // {
20601
- // dataIndex: 'goodShortName',
20602
- // title: `商品简称`,
20603
- // width: 150,
20604
- // },
20605
- // {
20606
- // dataIndex: 'goodNo',
20607
- // title: `商品编码`,
20608
- // width: 200,
20609
- // },
20610
- // {
20611
- // dataIndex: 'specName',
20612
- // title: `SKU名称`,
20613
- // align: 'center',
20614
- // ellipsis: true,
20615
- // width: 250,
20616
- // },
20617
- // {
20618
- // dataIndex: 'specNo',
20619
- // title: `SKU编码`,
20620
- // align: 'center',
20621
- // ellipsis: true,
20622
- // width: 150,
20623
- // },
20624
- // {
20625
- // dataIndex: 'qty',
20626
- // title: `数量`,
20627
- // width: 100,
20628
- // validator: (_rule: any, value: any) => {
20629
- // let goodsName = '';
20630
- // if (
20631
- // (value?.gyReturnGoods || []).some((goods: any) => {
20632
- // const qty = toNum(goods?.qty);
20633
- // const res = typeof qty === 'number' ? qty < 1 : true;
20634
- // if (res) {
20635
- // goodsName = goods?.goodName ? `[${goods?.goodName}]` : '';
20636
- // }
20637
- // return res;
20638
- // })
20639
- // ) {
20640
- // return Promise.reject(`${goodsName}数量必须大于0`);
20641
- // }
20642
- // },
20643
- // render: (val: any, record: any, index: number) =>
20644
- // !disabled ? (
20645
- // <InputNumber
20646
- // style={{ width: 70 }}
20647
- // value={val}
20648
- // min={1}
20649
- // precision={0}
20650
- // onChange={(num) => {
20651
- // updateDataHandle(
20652
- // {
20653
- // qty: num,
20654
- // amount:
20655
- // num && isNumberOrNumberString(record.price)
20656
- // ? num * record.price
20657
- // : null,
20658
- // originAmount:
20659
- // num && isNumberOrNumberString(record.originPrice)
20660
- // ? num * record.originPrice
20661
- // : null,
20662
- // },
20663
- // index,
20664
- // );
20665
- // }}
20666
- // ></InputNumber>
20667
- // ) : (
20668
- // <span>{val}</span>
20669
- // ),
20670
- // },
20671
- // {
20672
- // dataIndex: 'price',
20673
- // title: `实际单价`,
20674
- // width: 150,
20675
- // render: (val: any, record: any, index: number) =>
20676
- // !disabled ? (
20677
- // <InputNumber
20678
- // style={{ width: 130 }}
20679
- // value={val}
20680
- // min={0}
20681
- // precision={2}
20682
- // onChange={(num) => {
20683
- // updateDataHandle(
20684
- // {
20685
- // price: num,
20686
- // amount:
20687
- // num && isNumberOrNumberString(record.qty)
20688
- // ? num * record.qty
20689
- // : null,
20690
- // },
20691
- // index,
20692
- // );
20693
- // }}
20694
- // ></InputNumber>
20695
- // ) : (
20696
- // <span>{val}</span>
20697
- // ),
20698
- // },
20699
- // {
20700
- // dataIndex: 'amount',
20701
- // title: `实际金额`,
20702
- // width: 150,
20703
- // },
20704
- // {
20705
- // dataIndex: 'originPrice',
20706
- // title: `标准单价`,
20707
- // width: 150,
20708
- // },
20709
- // {
20710
- // dataIndex: 'originAmount',
20711
- // title: `标准金额`,
20712
- // width: 150,
20713
- // },
20714
- // {
20715
- // dataIndex: 'discountFee',
20716
- // title: `让利金额`,
20717
- // width: 150,
20718
- // },
20719
- // {
20720
- // dataIndex: 'amountAfter',
20721
- // title: `让利后金额`,
20722
- // width: 150,
20723
- // },
20724
- // {
20725
- // dataIndex: 'isGift',
20726
- // title: `是否赠品`,
20727
- // width: 150,
20728
- // render: (val: number, record: any, index: number) =>
20729
- // record.canEdit && !disabled ? (
20730
- // <Select
20731
- // value={val}
20732
- // onChange={(value) => {
20733
- // updateHandle(value, index, 'isGift');
20734
- // }}
20735
- // options={[
20736
- // { label: '是', value: 1 },
20737
- // { label: '否', value: 0 },
20738
- // ]}
20739
- // />
20740
- // ) : (
20741
- // <span>{getYesOrNo(val)}</span>
20742
- // ),
20743
- // },
20744
- // ].map((item) => ({ ...item, align: 'center', ellipsis: true })),
20745
- };
20746
- };
20747
-
20748
- var getColumns$8 = function getColumns(_ref) {
20749
19903
  var _ref$text = _ref.text,
20750
19904
  disabled = _ref.disabled,
20751
19905
  updateHandle = _ref.updateHandle,
@@ -20787,7 +19941,7 @@ var getColumns$8 = function getColumns(_ref) {
20787
19941
  };
20788
19942
  };
20789
19943
 
20790
- var getColumns$9 = function getColumns(_ref) {
19944
+ var getColumns$8 = function getColumns(_ref) {
20791
19945
  var _ref$text = _ref.text,
20792
19946
  text = _ref$text === void 0 ? '' : _ref$text,
20793
19947
  disabled = _ref.disabled,
@@ -20900,7 +20054,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20900
20054
  disabled = _ref.disabled,
20901
20055
  updateHandle = _ref.updateHandle,
20902
20056
  updateDataHandle = _ref.updateDataHandle;
20903
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
20057
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
20904
20058
  text: text,
20905
20059
  disabled: disabled,
20906
20060
  updateHandle: updateHandle
@@ -20933,12 +20087,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
20933
20087
  text: text,
20934
20088
  disabled: disabled,
20935
20089
  updateHandle: updateHandle
20936
- })), getColumns$8({
20937
- text: text,
20938
- disabled: disabled,
20939
- updateHandle: updateHandle
20940
20090
  })), {}, {
20941
- default: getColumns$9({
20091
+ default: getColumns$8({
20942
20092
  text: text,
20943
20093
  disabled: disabled,
20944
20094
  updateHandle: updateHandle
@@ -21082,9 +20232,6 @@ var isErpType = {
21082
20232
  },
21083
20233
  isKm: function isKm(type) {
21084
20234
  return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
21085
- },
21086
- isJy: function isJy(type) {
21087
- return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
21088
20235
  }
21089
20236
  };
21090
20237
  var processGoods$1 = function processGoods(_ref) {
@@ -21324,7 +20471,6 @@ var GoodsModalMap = {
21324
20471
  JST_EXCHANGE_GOODS: JstGoodsModal,
21325
20472
  KM_GOODS: KmGoodsModal,
21326
20473
  KM_REISSUE_GOODS: KmGoodsModal,
21327
- JY_GOODS: JyGoodsModal$1,
21328
20474
  OTHER_GOODS: GoodsModal$2
21329
20475
  };
21330
20476
  var systemOrderNoMap = {
@@ -21333,8 +20479,7 @@ var systemOrderNoMap = {
21333
20479
  WDT_GOODS: 'tradeNo',
21334
20480
  BS_E3_GOODS: 'orderSn',
21335
20481
  JST_GOODS: 'oId',
21336
- WLN_GOODS: 'tradeNo',
21337
- JY_GOODS: 'tradeNo'
20482
+ WLN_GOODS: 'tradeNo'
21338
20483
  };
21339
20484
  var SelectTradeGoods = function SelectTradeGoods(_ref) {
21340
20485
  var columns = _ref.columns,
@@ -21466,9 +20611,6 @@ var getButtonText = function getButtonText() {
21466
20611
  if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
21467
20612
  return '选择聚水潭ERP商品';
21468
20613
  }
21469
- if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
21470
- return '选择巨益ERP商品';
21471
- }
21472
20614
  return '选择商品';
21473
20615
  };
21474
20616
  var GoodItem$1 = function GoodItem(props) {
@@ -21521,7 +20663,7 @@ var GoodItem$1 = function GoodItem(props) {
21521
20663
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
21522
20664
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
21523
20665
  // 判断是否为商品信息组件
21524
- var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
20666
+ var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS'].includes(type) || false;
21525
20667
  var refModal = useRef();
21526
20668
  console.debug('表格数据', value);
21527
20669
  var handleDelete = function handleDelete(record, index) {
@@ -21608,7 +20750,6 @@ var GoodItem$1 = function GoodItem(props) {
21608
20750
  case 'GY_RETURN_GOODS':
21609
20751
  case 'KM_GOODS':
21610
20752
  case 'KM_REISSUE_GOODS':
21611
- case 'JY_GOODS':
21612
20753
  case 'SKX_GOODS':
21613
20754
  case 'SKX_RETURN_GOODS':
21614
20755
  {
@@ -22706,7 +21847,7 @@ var bsUtils = {
22706
21847
  };
22707
21848
 
22708
21849
  var singletonMap$6 = new Map();
22709
- var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
21850
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
22710
21851
  if (!singletonMap$6.has(orderNo)) {
22711
21852
  var p = new Promise(function (resolve, reject) {
22712
21853
  var doReject = function doReject(err) {
@@ -22714,44 +21855,6 @@ var getJyOrderListSingleton = function getJyOrderListSingleton(orderNo) {
22714
21855
  singletonMap$6.delete(orderNo);
22715
21856
  reject(err);
22716
21857
  };
22717
- extendRequest('/qy/gdfw/oms/jyOrderDetail', {
22718
- method: 'post',
22719
- data: {
22720
- tid: orderNo
22721
- }
22722
- }).then(function (res) {
22723
- if (res === null || res === void 0 ? void 0 : res.success) {
22724
- var _res$data;
22725
- if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
22726
- res.data.trades = filterJyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo);
22727
- }
22728
- resolve(res.data);
22729
- // 延迟10秒清除,保证订单的时效性
22730
- setTimeout(function () {
22731
- singletonMap$6.delete(orderNo);
22732
- }, 1000 * 10);
22733
- } else {
22734
- doReject(res);
22735
- }
22736
- }).catch(doReject);
22737
- });
22738
- singletonMap$6.set(orderNo, p);
22739
- }
22740
- return singletonMap$6.get(orderNo);
22741
- };
22742
- var jyUtils = {
22743
- getJyOrderListSingleton: getJyOrderListSingleton
22744
- };
22745
-
22746
- var singletonMap$7 = new Map();
22747
- var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
22748
- if (!singletonMap$7.has(orderNo)) {
22749
- var p = new Promise(function (resolve, reject) {
22750
- var doReject = function doReject(err) {
22751
- // 清空掉错误的请求记录
22752
- singletonMap$7.delete(orderNo);
22753
- reject(err);
22754
- };
22755
21858
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
22756
21859
  method: 'post',
22757
21860
  data: {
@@ -22775,23 +21878,22 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
22775
21878
  }
22776
21879
  // 延迟10秒清除,保证订单的时效性
22777
21880
  setTimeout(function () {
22778
- singletonMap$7.delete(orderNo);
21881
+ singletonMap$6.delete(orderNo);
22779
21882
  }, 1000 * 10);
22780
21883
  } else {
22781
21884
  doReject(data);
22782
21885
  }
22783
21886
  }).catch(doReject);
22784
21887
  });
22785
- singletonMap$7.set(orderNo, p);
21888
+ singletonMap$6.set(orderNo, p);
22786
21889
  }
22787
- return singletonMap$7.get(orderNo);
21890
+ return singletonMap$6.get(orderNo);
22788
21891
  };
22789
21892
  var kmUtils = {
22790
21893
  getOrderListSingleton: getOrderListSingleton$2
22791
21894
  };
22792
21895
 
22793
- var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
22794
- _excluded2 = ["shopCode"];
21896
+ var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"];
22795
21897
  var columnsMap = {
22796
21898
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
22797
21899
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -22799,8 +21901,7 @@ var columnsMap = {
22799
21901
  WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
22800
21902
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
22801
21903
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
22802
- JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
22803
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
21904
+ JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns
22804
21905
  };
22805
21906
  var rowKeyMap = {
22806
21907
  BS_SYSTEM_ORDER: 'billNo',
@@ -22809,8 +21910,7 @@ var rowKeyMap = {
22809
21910
  WDT_SYSTEM_ORDER: 'billNo',
22810
21911
  BS_E3_SYSTEM_ORDER: 'orderSn',
22811
21912
  GY_SYSTEM_ORDER: 'billNo',
22812
- JST_SYSTEM_ORDER: 'oId',
22813
- JY_SYSTEM_ORDER: 'tradeNo'
21913
+ JST_SYSTEM_ORDER: 'oId'
22814
21914
  };
22815
21915
  var index$2 = (function (props) {
22816
21916
  var value = props.value,
@@ -22838,8 +21938,6 @@ var index$2 = (function (props) {
22838
21938
  getGyOrderList(value.orderNo);
22839
21939
  } else if (type === 'JST_SYSTEM_ORDER') {
22840
21940
  getJstOrderList(value.orderNo);
22841
- } else if (type === 'JY_SYSTEM_ORDER') {
22842
- getJyOrderList(value.orderNo);
22843
21941
  }
22844
21942
  }
22845
21943
  }, [value, type]);
@@ -23075,37 +22173,6 @@ var index$2 = (function (props) {
23075
22173
  return _ref9.apply(this, arguments);
23076
22174
  };
23077
22175
  }();
23078
- var getJyOrderList = /*#__PURE__*/function () {
23079
- var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(orderNo) {
23080
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
23081
- while (1) switch (_context8.prev = _context8.next) {
23082
- case 0:
23083
- jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
23084
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
23085
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
23086
- });
23087
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
23088
- orders: trades,
23089
- showOrderInfo: trades.map(function (_ref12) {
23090
- var shopCode = _ref12.shopCode,
23091
- rest = _objectWithoutProperties(_ref12, _excluded2);
23092
- return _objectSpread2(_objectSpread2({}, rest), {}, {
23093
- shopCode: shopCode
23094
- });
23095
- })
23096
- }));
23097
- });
23098
- onceRef.current = false;
23099
- case 2:
23100
- case "end":
23101
- return _context8.stop();
23102
- }
23103
- }, _callee8);
23104
- }));
23105
- return function getJyOrderList(_x8) {
23106
- return _ref11.apply(this, arguments);
23107
- };
23108
- }();
23109
22176
  var rowSelection = {
23110
22177
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
23111
22178
  fixed: true,
@@ -23529,16 +22596,16 @@ var orderSubFormConstants = {
23529
22596
  };
23530
22597
 
23531
22598
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
23532
- var singletonMap$8 = new Map();
22599
+ var singletonMap$7 = new Map();
23533
22600
  var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
23534
22601
  var orderNo = parmas.orderNo,
23535
22602
  shopId = parmas.shopId;
23536
22603
  var key = "".concat(orderNo, "-").concat(shopId);
23537
- if (!singletonMap$8.has(key)) {
22604
+ if (!singletonMap$7.has(key)) {
23538
22605
  var p = new Promise(function (resolve, reject) {
23539
22606
  var doReject = function doReject(err) {
23540
22607
  // 清空掉错误的请求记录
23541
- singletonMap$8.delete(key);
22608
+ singletonMap$7.delete(key);
23542
22609
  reject(err);
23543
22610
  };
23544
22611
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -23554,16 +22621,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
23554
22621
  }
23555
22622
  // 延迟10秒清除,保证订单的时效性
23556
22623
  setTimeout(function () {
23557
- singletonMap$8.delete(key);
22624
+ singletonMap$7.delete(key);
23558
22625
  }, 1000 * 10);
23559
22626
  } else {
23560
22627
  doReject(data);
23561
22628
  }
23562
22629
  }).catch(doReject);
23563
22630
  });
23564
- singletonMap$8.set(key, p);
22631
+ singletonMap$7.set(key, p);
23565
22632
  }
23566
- return singletonMap$8.get(key);
22633
+ return singletonMap$7.get(key);
23567
22634
  };
23568
22635
  var renderEditItem = function renderEditItem(_ref) {
23569
22636
  var item = _ref.item,
@@ -23993,9 +23060,6 @@ var isErpType$1 = {
23993
23060
  },
23994
23061
  isWln: function isWln(type) {
23995
23062
  return ['WLN_GOODS'].includes(type);
23996
- },
23997
- isJy: function isJy(type) {
23998
- return ['JY_GOODS'].includes(type);
23999
23063
  }
24000
23064
  };
24001
23065
  var processAllOrders = function processAllOrders(_ref) {
@@ -24253,32 +23317,6 @@ var componentMap$2 = {
24253
23317
  exchangeDeleteGood: 'kmExchangeDeleteGood'
24254
23318
  },
24255
23319
  getOrderList: kmUtils.getOrderListSingleton
24256
- },
24257
- JY_GOODS: {
24258
- type: 'jy',
24259
- key: 'jyGoods',
24260
- name: '巨益',
24261
- orderNo: 'tid',
24262
- goodDetailOrderNo: 'originalDealCode',
24263
- eventNameMap: {
24264
- // pubsub 事件
24265
- type: 'jyType',
24266
- updateGoodsHandle: updateJyGoodsHandle,
24267
- selectListReturn: 'jySelectListReturn',
24268
- selectList: 'jySelectList',
24269
- reissueSelectList: 'jyReissueSelectList',
24270
- reissueSelectListReturn: 'jyReissueSelectListReturn',
24271
- reissueDeleteGood: 'jyReissueDeleteGood',
24272
- changeShopCode: 'jyChangeShopCode',
24273
- reissueType: 'jyReissueType',
24274
- returnType: 'jyReturnType',
24275
- returnSelectListReturn: 'jyReturnSelectListReturn',
24276
- returnSelectList: 'jyReturnSelectList',
24277
- deleteGood: 'jyDeleteGood',
24278
- returnDeleteGood: 'jyReturnDeleteGood',
24279
- exchangeDeleteGood: 'jyExchangeDeleteGood'
24280
- },
24281
- getOrderList: jyUtils.getJyOrderListSingleton
24282
23320
  }
24283
23321
  };
24284
23322
  var CommonGoods = function CommonGoods(props) {
@@ -26195,7 +25233,7 @@ var MsgStatus = function MsgStatus(props) {
26195
25233
  onClick: function onClick() {
26196
25234
  return setChangeIndex(index);
26197
25235
  }
26198
- }, msgTypeCh[key] || key, item.ruleName);
25236
+ }, msgTypeCh[key], item.ruleName);
26199
25237
  }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
26200
25238
  showSearch: true,
26201
25239
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -26480,7 +25518,7 @@ var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
26480
25518
  styleInject(css_248z$f);
26481
25519
 
26482
25520
  var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
26483
- _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
25521
+ _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
26484
25522
  var typeMap$4 = {
26485
25523
  GY_REISSUE_GOODS: {
26486
25524
  key: 'gyReissueGoods',
@@ -26551,7 +25589,7 @@ var GyReissue = function GyReissue(props) {
26551
25589
  deliveryState = _ref2.deliveryState,
26552
25590
  vipCode = _ref2.vipCode,
26553
25591
  shopCode = _ref2.shopCode,
26554
- rest = _objectWithoutProperties(_ref2, _excluded2$1);
25592
+ rest = _objectWithoutProperties(_ref2, _excluded2);
26555
25593
  return _objectSpread2(_objectSpread2({}, rest), {}, {
26556
25594
  billNo: billNo,
26557
25595
  billType: billType,
@@ -26751,7 +25789,7 @@ var GyReissue = function GyReissue(props) {
26751
25789
  span: 12
26752
25790
  },
26753
25791
  sm: {
26754
- span: 4
25792
+ span: 6
26755
25793
  }
26756
25794
  }, /*#__PURE__*/React.createElement(Cascader, {
26757
25795
  style: {
@@ -26791,7 +25829,7 @@ var GyReissue = function GyReissue(props) {
26791
25829
  };
26792
25830
 
26793
25831
  var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
26794
- _excluded2$2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
25832
+ _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
26795
25833
  var typeMap$5 = {
26796
25834
  GY_RETURN_GOODS: {
26797
25835
  key: 'gyReturnGoods',
@@ -26893,7 +25931,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
26893
25931
  deliveryState = _ref2.deliveryState,
26894
25932
  vipCode = _ref2.vipCode,
26895
25933
  shopCode = _ref2.shopCode,
26896
- rest = _objectWithoutProperties(_ref2, _excluded2$2);
25934
+ rest = _objectWithoutProperties(_ref2, _excluded2$1);
26897
25935
  return _objectSpread2(_objectSpread2({}, rest), {}, {
26898
25936
  billNo: billNo,
26899
25937
  billType: billType,
@@ -27049,7 +26087,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
27049
26087
  span: 12
27050
26088
  },
27051
26089
  sm: {
27052
- span: 4
26090
+ span: 6
27053
26091
  }
27054
26092
  }, /*#__PURE__*/React.createElement(Cascader, {
27055
26093
  style: {
@@ -27713,4 +26751,4 @@ var SkxGoods = function SkxGoods(props) {
27713
26751
  }));
27714
26752
  };
27715
26753
 
27716
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
26754
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$6 as getKmColumns, getColumns$7 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };