@kmkf-fe-packages/basic-components 2.0.53 → 2.0.54-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,372 +1,386 @@
1
1
  import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
2
- import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
2
+ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton } from 'antd';
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled } 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
6
  import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, servers, 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, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
7
- import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
7
+ import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, isEqual, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
8
8
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
9
  import zhCN from 'antd/lib/locale/zh_CN';
10
10
  import pubsub from 'pubsub-js';
11
11
  import BigNumber from 'bignumber.js';
12
12
 
13
- function _iterableToArrayLimit(arr, i) {
14
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
15
- if (null != _i) {
16
- var _s,
17
- _e,
18
- _x,
19
- _r,
20
- _arr = [],
21
- _n = !0,
22
- _d = !1;
13
+ function _iterableToArrayLimit(r, l) {
14
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15
+ if (null != t) {
16
+ var e,
17
+ n,
18
+ i,
19
+ u,
20
+ a = [],
21
+ f = !0,
22
+ o = !1;
23
23
  try {
24
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
25
- if (Object(_i) !== _i) return;
26
- _n = !1;
27
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
28
- } catch (err) {
29
- _d = !0, _e = err;
24
+ if (i = (t = t.call(r)).next, 0 === l) {
25
+ if (Object(t) !== t) return;
26
+ f = !1;
27
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
28
+ } catch (r) {
29
+ o = !0, n = r;
30
30
  } finally {
31
31
  try {
32
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
32
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
33
33
  } finally {
34
- if (_d) throw _e;
34
+ if (o) throw n;
35
35
  }
36
36
  }
37
- return _arr;
37
+ return a;
38
38
  }
39
39
  }
40
- function ownKeys(object, enumerableOnly) {
41
- var keys = Object.keys(object);
40
+ function ownKeys(e, r) {
41
+ var t = Object.keys(e);
42
42
  if (Object.getOwnPropertySymbols) {
43
- var symbols = Object.getOwnPropertySymbols(object);
44
- enumerableOnly && (symbols = symbols.filter(function (sym) {
45
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
46
- })), keys.push.apply(keys, symbols);
43
+ var o = Object.getOwnPropertySymbols(e);
44
+ r && (o = o.filter(function (r) {
45
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
46
+ })), t.push.apply(t, o);
47
47
  }
48
- return keys;
49
- }
50
- function _objectSpread2(target) {
51
- for (var i = 1; i < arguments.length; i++) {
52
- var source = null != arguments[i] ? arguments[i] : {};
53
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
54
- _defineProperty(target, key, source[key]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
56
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
48
+ return t;
49
+ }
50
+ function _objectSpread2(e) {
51
+ for (var r = 1; r < arguments.length; r++) {
52
+ var t = null != arguments[r] ? arguments[r] : {};
53
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
54
+ _defineProperty(e, r, t[r]);
55
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
56
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
57
57
  });
58
58
  }
59
- return target;
59
+ return e;
60
60
  }
61
61
  function _regeneratorRuntime() {
62
62
  _regeneratorRuntime = function () {
63
- return exports;
63
+ return e;
64
64
  };
65
- var exports = {},
66
- Op = Object.prototype,
67
- hasOwn = Op.hasOwnProperty,
68
- defineProperty = Object.defineProperty || function (obj, key, desc) {
69
- obj[key] = desc.value;
65
+ var t,
66
+ e = {},
67
+ r = Object.prototype,
68
+ n = r.hasOwnProperty,
69
+ o = Object.defineProperty || function (t, e, r) {
70
+ t[e] = r.value;
70
71
  },
71
- $Symbol = "function" == typeof Symbol ? Symbol : {},
72
- iteratorSymbol = $Symbol.iterator || "@@iterator",
73
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
74
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
75
- function define(obj, key, value) {
76
- return Object.defineProperty(obj, key, {
77
- value: value,
72
+ i = "function" == typeof Symbol ? Symbol : {},
73
+ a = i.iterator || "@@iterator",
74
+ c = i.asyncIterator || "@@asyncIterator",
75
+ u = i.toStringTag || "@@toStringTag";
76
+ function define(t, e, r) {
77
+ return Object.defineProperty(t, e, {
78
+ value: r,
78
79
  enumerable: !0,
79
80
  configurable: !0,
80
81
  writable: !0
81
- }), obj[key];
82
+ }), t[e];
82
83
  }
83
84
  try {
84
85
  define({}, "");
85
- } catch (err) {
86
- define = function (obj, key, value) {
87
- return obj[key] = value;
86
+ } catch (t) {
87
+ define = function (t, e, r) {
88
+ return t[e] = r;
88
89
  };
89
90
  }
90
- function wrap(innerFn, outerFn, self, tryLocsList) {
91
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
92
- generator = Object.create(protoGenerator.prototype),
93
- context = new Context(tryLocsList || []);
94
- return defineProperty(generator, "_invoke", {
95
- value: makeInvokeMethod(innerFn, self, context)
96
- }), generator;
91
+ function wrap(t, e, r, n) {
92
+ var i = e && e.prototype instanceof Generator ? e : Generator,
93
+ a = Object.create(i.prototype),
94
+ c = new Context(n || []);
95
+ return o(a, "_invoke", {
96
+ value: makeInvokeMethod(t, r, c)
97
+ }), a;
97
98
  }
98
- function tryCatch(fn, obj, arg) {
99
+ function tryCatch(t, e, r) {
99
100
  try {
100
101
  return {
101
102
  type: "normal",
102
- arg: fn.call(obj, arg)
103
+ arg: t.call(e, r)
103
104
  };
104
- } catch (err) {
105
+ } catch (t) {
105
106
  return {
106
107
  type: "throw",
107
- arg: err
108
+ arg: t
108
109
  };
109
110
  }
110
111
  }
111
- exports.wrap = wrap;
112
- var ContinueSentinel = {};
112
+ e.wrap = wrap;
113
+ var h = "suspendedStart",
114
+ l = "suspendedYield",
115
+ f = "executing",
116
+ s = "completed",
117
+ y = {};
113
118
  function Generator() {}
114
119
  function GeneratorFunction() {}
115
120
  function GeneratorFunctionPrototype() {}
116
- var IteratorPrototype = {};
117
- define(IteratorPrototype, iteratorSymbol, function () {
121
+ var p = {};
122
+ define(p, a, function () {
118
123
  return this;
119
124
  });
120
- var getProto = Object.getPrototypeOf,
121
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
122
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
123
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
124
- function defineIteratorMethods(prototype) {
125
- ["next", "throw", "return"].forEach(function (method) {
126
- define(prototype, method, function (arg) {
127
- return this._invoke(method, arg);
125
+ var d = Object.getPrototypeOf,
126
+ v = d && d(d(values([])));
127
+ v && v !== r && n.call(v, a) && (p = v);
128
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
129
+ function defineIteratorMethods(t) {
130
+ ["next", "throw", "return"].forEach(function (e) {
131
+ define(t, e, function (t) {
132
+ return this._invoke(e, t);
128
133
  });
129
134
  });
130
135
  }
131
- function AsyncIterator(generator, PromiseImpl) {
132
- function invoke(method, arg, resolve, reject) {
133
- var record = tryCatch(generator[method], generator, arg);
134
- if ("throw" !== record.type) {
135
- var result = record.arg,
136
- value = result.value;
137
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
138
- invoke("next", value, resolve, reject);
139
- }, function (err) {
140
- invoke("throw", err, resolve, reject);
141
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
142
- result.value = unwrapped, resolve(result);
143
- }, function (error) {
144
- return invoke("throw", error, resolve, reject);
136
+ function AsyncIterator(t, e) {
137
+ function invoke(r, o, i, a) {
138
+ var c = tryCatch(t[r], t, o);
139
+ if ("throw" !== c.type) {
140
+ var u = c.arg,
141
+ h = u.value;
142
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
143
+ invoke("next", t, i, a);
144
+ }, function (t) {
145
+ invoke("throw", t, i, a);
146
+ }) : e.resolve(h).then(function (t) {
147
+ u.value = t, i(u);
148
+ }, function (t) {
149
+ return invoke("throw", t, i, a);
145
150
  });
146
151
  }
147
- reject(record.arg);
152
+ a(c.arg);
148
153
  }
149
- var previousPromise;
150
- defineProperty(this, "_invoke", {
151
- value: function (method, arg) {
154
+ var r;
155
+ o(this, "_invoke", {
156
+ value: function (t, n) {
152
157
  function callInvokeWithMethodAndArg() {
153
- return new PromiseImpl(function (resolve, reject) {
154
- invoke(method, arg, resolve, reject);
158
+ return new e(function (e, r) {
159
+ invoke(t, n, e, r);
155
160
  });
156
161
  }
157
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
162
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
158
163
  }
159
164
  });
160
165
  }
161
- function makeInvokeMethod(innerFn, self, context) {
162
- var state = "suspendedStart";
163
- return function (method, arg) {
164
- if ("executing" === state) throw new Error("Generator is already running");
165
- if ("completed" === state) {
166
- if ("throw" === method) throw arg;
167
- return doneResult();
166
+ function makeInvokeMethod(e, r, n) {
167
+ var o = h;
168
+ return function (i, a) {
169
+ if (o === f) throw new Error("Generator is already running");
170
+ if (o === s) {
171
+ if ("throw" === i) throw a;
172
+ return {
173
+ value: t,
174
+ done: !0
175
+ };
168
176
  }
169
- for (context.method = method, context.arg = arg;;) {
170
- var delegate = context.delegate;
171
- if (delegate) {
172
- var delegateResult = maybeInvokeDelegate(delegate, context);
173
- if (delegateResult) {
174
- if (delegateResult === ContinueSentinel) continue;
175
- return delegateResult;
177
+ for (n.method = i, n.arg = a;;) {
178
+ var c = n.delegate;
179
+ if (c) {
180
+ var u = maybeInvokeDelegate(c, n);
181
+ if (u) {
182
+ if (u === y) continue;
183
+ return u;
176
184
  }
177
185
  }
178
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
179
- if ("suspendedStart" === state) throw state = "completed", context.arg;
180
- context.dispatchException(context.arg);
181
- } else "return" === context.method && context.abrupt("return", context.arg);
182
- state = "executing";
183
- var record = tryCatch(innerFn, self, context);
184
- if ("normal" === record.type) {
185
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
186
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
187
+ if (o === h) throw o = s, n.arg;
188
+ n.dispatchException(n.arg);
189
+ } else "return" === n.method && n.abrupt("return", n.arg);
190
+ o = f;
191
+ var p = tryCatch(e, r, n);
192
+ if ("normal" === p.type) {
193
+ if (o = n.done ? s : l, p.arg === y) continue;
186
194
  return {
187
- value: record.arg,
188
- done: context.done
195
+ value: p.arg,
196
+ done: n.done
189
197
  };
190
198
  }
191
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
199
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
192
200
  }
193
201
  };
194
202
  }
195
- function maybeInvokeDelegate(delegate, context) {
196
- var methodName = context.method,
197
- method = delegate.iterator[methodName];
198
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
199
- var record = tryCatch(method, delegate.iterator, context.arg);
200
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
201
- var info = record.arg;
202
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
203
+ function maybeInvokeDelegate(e, r) {
204
+ var n = r.method,
205
+ o = e.iterator[n];
206
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
207
+ var i = tryCatch(o, e.iterator, r.arg);
208
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
209
+ var a = i.arg;
210
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
203
211
  }
204
- function pushTryEntry(locs) {
205
- var entry = {
206
- tryLoc: locs[0]
212
+ function pushTryEntry(t) {
213
+ var e = {
214
+ tryLoc: t[0]
207
215
  };
208
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
216
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
209
217
  }
210
- function resetTryEntry(entry) {
211
- var record = entry.completion || {};
212
- record.type = "normal", delete record.arg, entry.completion = record;
218
+ function resetTryEntry(t) {
219
+ var e = t.completion || {};
220
+ e.type = "normal", delete e.arg, t.completion = e;
213
221
  }
214
- function Context(tryLocsList) {
222
+ function Context(t) {
215
223
  this.tryEntries = [{
216
224
  tryLoc: "root"
217
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
225
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
218
226
  }
219
- function values(iterable) {
220
- if (iterable) {
221
- var iteratorMethod = iterable[iteratorSymbol];
222
- if (iteratorMethod) return iteratorMethod.call(iterable);
223
- if ("function" == typeof iterable.next) return iterable;
224
- if (!isNaN(iterable.length)) {
225
- var i = -1,
226
- next = function next() {
227
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
228
- return next.value = undefined, next.done = !0, next;
227
+ function values(e) {
228
+ if (e || "" === e) {
229
+ var r = e[a];
230
+ if (r) return r.call(e);
231
+ if ("function" == typeof e.next) return e;
232
+ if (!isNaN(e.length)) {
233
+ var o = -1,
234
+ i = function next() {
235
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
236
+ return next.value = t, next.done = !0, next;
229
237
  };
230
- return next.next = next;
238
+ return i.next = i;
231
239
  }
232
240
  }
233
- return {
234
- next: doneResult
235
- };
236
- }
237
- function doneResult() {
238
- return {
239
- value: undefined,
240
- done: !0
241
- };
241
+ throw new TypeError(typeof e + " is not iterable");
242
242
  }
243
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
243
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
244
244
  value: GeneratorFunctionPrototype,
245
245
  configurable: !0
246
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
246
+ }), o(GeneratorFunctionPrototype, "constructor", {
247
247
  value: GeneratorFunction,
248
248
  configurable: !0
249
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
250
- var ctor = "function" == typeof genFun && genFun.constructor;
251
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
252
- }, exports.mark = function (genFun) {
253
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
254
- }, exports.awrap = function (arg) {
249
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
250
+ var e = "function" == typeof t && t.constructor;
251
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
252
+ }, e.mark = function (t) {
253
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
254
+ }, e.awrap = function (t) {
255
255
  return {
256
- __await: arg
256
+ __await: t
257
257
  };
258
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
258
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
259
259
  return this;
260
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
261
- void 0 === PromiseImpl && (PromiseImpl = Promise);
262
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
263
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
264
- return result.done ? result.value : iter.next();
260
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
261
+ void 0 === i && (i = Promise);
262
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
263
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
264
+ return t.done ? t.value : a.next();
265
265
  });
266
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
266
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
267
267
  return this;
268
- }), define(Gp, "toString", function () {
268
+ }), define(g, "toString", function () {
269
269
  return "[object Generator]";
270
- }), exports.keys = function (val) {
271
- var object = Object(val),
272
- keys = [];
273
- for (var key in object) keys.push(key);
274
- return keys.reverse(), function next() {
275
- for (; keys.length;) {
276
- var key = keys.pop();
277
- if (key in object) return next.value = key, next.done = !1, next;
270
+ }), e.keys = function (t) {
271
+ var e = Object(t),
272
+ r = [];
273
+ for (var n in e) r.push(n);
274
+ return r.reverse(), function next() {
275
+ for (; r.length;) {
276
+ var t = r.pop();
277
+ if (t in e) return next.value = t, next.done = !1, next;
278
278
  }
279
279
  return next.done = !0, next;
280
280
  };
281
- }, exports.values = values, Context.prototype = {
281
+ }, e.values = values, Context.prototype = {
282
282
  constructor: Context,
283
- reset: function (skipTempReset) {
284
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
283
+ reset: function (e) {
284
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
285
285
  },
286
286
  stop: function () {
287
287
  this.done = !0;
288
- var rootRecord = this.tryEntries[0].completion;
289
- if ("throw" === rootRecord.type) throw rootRecord.arg;
288
+ var t = this.tryEntries[0].completion;
289
+ if ("throw" === t.type) throw t.arg;
290
290
  return this.rval;
291
291
  },
292
- dispatchException: function (exception) {
293
- if (this.done) throw exception;
294
- var context = this;
295
- function handle(loc, caught) {
296
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
292
+ dispatchException: function (e) {
293
+ if (this.done) throw e;
294
+ var r = this;
295
+ function handle(n, o) {
296
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
297
297
  }
298
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
- var entry = this.tryEntries[i],
300
- record = entry.completion;
301
- if ("root" === entry.tryLoc) return handle("end");
302
- if (entry.tryLoc <= this.prev) {
303
- var hasCatch = hasOwn.call(entry, "catchLoc"),
304
- hasFinally = hasOwn.call(entry, "finallyLoc");
305
- if (hasCatch && hasFinally) {
306
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
307
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
308
- } else if (hasCatch) {
309
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
298
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
299
+ var i = this.tryEntries[o],
300
+ a = i.completion;
301
+ if ("root" === i.tryLoc) return handle("end");
302
+ if (i.tryLoc <= this.prev) {
303
+ var c = n.call(i, "catchLoc"),
304
+ u = n.call(i, "finallyLoc");
305
+ if (c && u) {
306
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
307
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
308
+ } else if (c) {
309
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
310
310
  } else {
311
- if (!hasFinally) throw new Error("try statement without catch or finally");
312
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
311
+ if (!u) throw new Error("try statement without catch or finally");
312
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
313
313
  }
314
314
  }
315
315
  }
316
316
  },
317
- abrupt: function (type, arg) {
318
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
319
- var entry = this.tryEntries[i];
320
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
321
- var finallyEntry = entry;
317
+ abrupt: function (t, e) {
318
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
319
+ var o = this.tryEntries[r];
320
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
321
+ var i = o;
322
322
  break;
323
323
  }
324
324
  }
325
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
326
- var record = finallyEntry ? finallyEntry.completion : {};
327
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
325
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
326
+ var a = i ? i.completion : {};
327
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
328
328
  },
329
- complete: function (record, afterLoc) {
330
- if ("throw" === record.type) throw record.arg;
331
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
329
+ complete: function (t, e) {
330
+ if ("throw" === t.type) throw t.arg;
331
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
332
332
  },
333
- finish: function (finallyLoc) {
334
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
335
- var entry = this.tryEntries[i];
336
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
333
+ finish: function (t) {
334
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
335
+ var r = this.tryEntries[e];
336
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
337
337
  }
338
338
  },
339
- catch: function (tryLoc) {
340
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
341
- var entry = this.tryEntries[i];
342
- if (entry.tryLoc === tryLoc) {
343
- var record = entry.completion;
344
- if ("throw" === record.type) {
345
- var thrown = record.arg;
346
- resetTryEntry(entry);
339
+ catch: function (t) {
340
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
341
+ var r = this.tryEntries[e];
342
+ if (r.tryLoc === t) {
343
+ var n = r.completion;
344
+ if ("throw" === n.type) {
345
+ var o = n.arg;
346
+ resetTryEntry(r);
347
347
  }
348
- return thrown;
348
+ return o;
349
349
  }
350
350
  }
351
351
  throw new Error("illegal catch attempt");
352
352
  },
353
- delegateYield: function (iterable, resultName, nextLoc) {
353
+ delegateYield: function (e, r, n) {
354
354
  return this.delegate = {
355
- iterator: values(iterable),
356
- resultName: resultName,
357
- nextLoc: nextLoc
358
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
359
- }
360
- }, exports;
355
+ iterator: values(e),
356
+ resultName: r,
357
+ nextLoc: n
358
+ }, "next" === this.method && (this.arg = t), y;
359
+ }
360
+ }, e;
361
+ }
362
+ function _toPrimitive(t, r) {
363
+ if ("object" != typeof t || !t) return t;
364
+ var e = t[Symbol.toPrimitive];
365
+ if (void 0 !== e) {
366
+ var i = e.call(t, r || "default");
367
+ if ("object" != typeof i) return i;
368
+ throw new TypeError("@@toPrimitive must return a primitive value.");
369
+ }
370
+ return ("string" === r ? String : Number)(t);
371
+ }
372
+ function _toPropertyKey(t) {
373
+ var i = _toPrimitive(t, "string");
374
+ return "symbol" == typeof i ? i : String(i);
361
375
  }
362
- function _typeof(obj) {
376
+ function _typeof(o) {
363
377
  "@babel/helpers - typeof";
364
378
 
365
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
366
- return typeof obj;
367
- } : function (obj) {
368
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
369
- }, _typeof(obj);
379
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
380
+ return typeof o;
381
+ } : function (o) {
382
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
383
+ }, _typeof(o);
370
384
  }
371
385
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
372
386
  try {
@@ -473,20 +487,6 @@ function _nonIterableSpread() {
473
487
  function _nonIterableRest() {
474
488
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
475
489
  }
476
- function _toPrimitive(input, hint) {
477
- if (typeof input !== "object" || input === null) return input;
478
- var prim = input[Symbol.toPrimitive];
479
- if (prim !== undefined) {
480
- var res = prim.call(input, hint || "default");
481
- if (typeof res !== "object") return res;
482
- throw new TypeError("@@toPrimitive must return a primitive value.");
483
- }
484
- return (hint === "string" ? String : Number)(input);
485
- }
486
- function _toPropertyKey(arg) {
487
- var key = _toPrimitive(arg, "string");
488
- return typeof key === "symbol" ? key : String(key);
489
- }
490
490
 
491
491
  function ApaasCascader(props) {
492
492
  return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
@@ -12191,53 +12191,145 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
12191
12191
  };
12192
12192
  var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
12193
12193
 
12194
- var getTableData = function getTableData(_ref, formData) {
12195
- var _formData$brandIds;
12196
- var current = _ref.current,
12197
- pageSize = _ref.pageSize;
12198
- var data = {
12199
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12200
- skuCode: formData.skuCode || null,
12201
- skuName: formData.skuName || null,
12202
- goodName: formData.goodName || null,
12203
- goodNo: formData.goodNo || null
12204
- };
12205
- return extendRequest('/qy/gdfw/product/product/page', {
12206
- method: 'post',
12207
- data: _objectSpread2({
12208
- pageSize: pageSize,
12209
- pageNo: current,
12210
- platform: 'WDT_ERP'
12211
- }, data)
12212
- }).then(function (res) {
12213
- var _res$data = res.data,
12214
- _res$data$productSkuL = _res$data.productSkuList,
12215
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12216
- _res$data$total = _res$data.total,
12217
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12218
- var newProducts = productSkuList.map(function (item, index) {
12219
- return _objectSpread2(_objectSpread2({}, item), {}, {
12220
- index: index + 1
12221
- });
12222
- });
12223
- return {
12224
- total: total,
12225
- list: newProducts
12226
- };
12227
- });
12228
- };
12229
- var columns$1 = [{
12230
- dataIndex: 'index',
12231
- title: 'NO',
12232
- render: function render(val, record, index) {
12233
- return /*#__PURE__*/React.createElement("div", {
12194
+ var gyColumns = [{
12195
+ dataIndex: 'specName',
12196
+ title: 'SKU名称',
12197
+ width: 250,
12198
+ ellipsis: true
12199
+ }, {
12200
+ dataIndex: 'specNo',
12201
+ title: 'SKU编码',
12202
+ width: 200,
12203
+ ellipsis: true
12204
+ }, {
12205
+ dataIndex: 'goodName',
12206
+ title: '商品名称',
12207
+ width: 250,
12208
+ ellipsis: true
12209
+ }, {
12210
+ dataIndex: 'goodShortName',
12211
+ title: "\u5546\u54C1\u7B80\u79F0",
12212
+ ellipsis: true,
12213
+ width: 250
12214
+ }, {
12215
+ dataIndex: 'goodNo',
12216
+ title: '商品编码',
12217
+ width: 200,
12218
+ ellipsis: true
12219
+ }, {
12220
+ dataIndex: 'goodPicUrl',
12221
+ title: '商品图片',
12222
+ width: 100,
12223
+ render: function render(picUrl) {
12224
+ return /*#__PURE__*/React.createElement("img", {
12234
12225
  style: {
12235
- width: 25
12236
- }
12237
- }, index + 1);
12238
- },
12226
+ width: '40px',
12227
+ height: '40px',
12228
+ objectFit: 'contain'
12229
+ },
12230
+ src: picUrl
12231
+ });
12232
+ }
12233
+ }, {
12234
+ dataIndex: 'brandName',
12235
+ title: '品牌名称',
12236
+ width: 200,
12237
+ ellipsis: true
12238
+ }, {
12239
+ dataIndex: 'retailPrice',
12240
+ title: "\u6807\u51C6\u552E\u4EF7",
12241
+ ellipsis: true,
12242
+ width: 100
12243
+ }, {
12244
+ dataIndex: 'costPrice',
12245
+ title: "\u6210\u672C\u4EF7",
12246
+ ellipsis: true,
12239
12247
  width: 100
12248
+ }];
12249
+
12250
+ var jstColumns = [{
12251
+ dataIndex: 'goodName',
12252
+ title: '商品名称',
12253
+ width: 250,
12254
+ ellipsis: true
12255
+ }, {
12256
+ dataIndex: 'goodNo',
12257
+ title: '商品编码',
12258
+ width: 200,
12259
+ ellipsis: true
12260
+ }, {
12261
+ dataIndex: 'styleCode',
12262
+ title: '款式编码',
12263
+ width: 200,
12264
+ ellipsis: true
12265
+ }, {
12266
+ dataIndex: 'propertiesValue',
12267
+ title: '规格值',
12268
+ width: 200,
12269
+ ellipsis: true
12270
+ }, {
12271
+ dataIndex: 'goodPicUrl',
12272
+ title: '商品图片',
12273
+ width: 100,
12274
+ render: function render(picUrl) {
12275
+ return /*#__PURE__*/React.createElement("img", {
12276
+ style: {
12277
+ width: '40px',
12278
+ height: '40px',
12279
+ objectFit: 'contain'
12280
+ },
12281
+ src: picUrl
12282
+ });
12283
+ }
12284
+ }, {
12285
+ dataIndex: 'goodShortName',
12286
+ title: "\u5546\u54C1\u7B80\u79F0",
12287
+ ellipsis: true,
12288
+ width: 250
12289
+ }, {
12290
+ dataIndex: 'brandName',
12291
+ title: '品牌名称',
12292
+ width: 200,
12293
+ ellipsis: true
12294
+ }, {
12295
+ dataIndex: 'retailPrice',
12296
+ title: "\u9500\u552E\u4EF7\u683C",
12297
+ ellipsis: true,
12298
+ width: 100,
12299
+ render: function render(price) {
12300
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12301
+ }
12302
+ }, {
12303
+ dataIndex: 'marketPrice',
12304
+ title: "\u5E02\u573A\u4EF7",
12305
+ ellipsis: true,
12306
+ width: 100,
12307
+ render: function render(price) {
12308
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12309
+ }
12310
+ }, {
12311
+ dataIndex: 'costPrice',
12312
+ title: "\u6210\u672C\u4EF7",
12313
+ ellipsis: true,
12314
+ width: 100,
12315
+ render: function render(price) {
12316
+ return price || price === 0 ? Number(price).toFixed(2) : '';
12317
+ }
12240
12318
  }, {
12319
+ dataIndex: 'skuType',
12320
+ title: "\u5546\u54C1\u7C7B\u578B",
12321
+ ellipsis: true,
12322
+ width: 100,
12323
+ render: function render() {
12324
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12325
+ return {
12326
+ combine: '组合装商品',
12327
+ normal: '普通商品'
12328
+ }[type] || type;
12329
+ }
12330
+ }];
12331
+
12332
+ var wdtColumns = [{
12241
12333
  dataIndex: 'specName',
12242
12334
  title: 'SKU名称',
12243
12335
  width: 250,
@@ -12308,144 +12400,272 @@ var columns$1 = [{
12308
12400
  return Number(price).toFixed(2);
12309
12401
  }
12310
12402
  }];
12311
- var GoodList = function GoodList(props, ref) {
12312
- var _useState = useState([]),
12313
- _useState2 = _slicedToArray(_useState, 2),
12314
- selectList = _useState2[0],
12315
- setSelect = _useState2[1];
12316
- var _useState3 = useState([]),
12317
- _useState4 = _slicedToArray(_useState3, 2),
12318
- selectIds = _useState4[0],
12319
- setSelectIds = _useState4[1];
12320
- var _useState5 = useState([]),
12321
- _useState6 = _slicedToArray(_useState5, 2),
12322
- brandList = _useState6[0],
12323
- setBrandList = _useState6[1];
12324
- useImperativeHandle(ref, function () {
12325
- return {
12326
- getSelectGoodList: function getSelectGoodList() {
12327
- return selectList;
12328
- }
12329
- };
12330
- });
12331
- var _Form$useForm = Form.useForm(),
12332
- _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12333
- form = _Form$useForm2[0];
12334
- var _useAntdTable = useAntdTable(getTableData, {
12335
- defaultPageSize: 10,
12336
- form: form
12337
- }),
12338
- tableProps = _useAntdTable.tableProps,
12339
- search = _useAntdTable.search,
12340
- params = _useAntdTable.params;
12341
- var submit = search.submit,
12342
- reset = search.reset;
12343
- var setGoodBrandList = function setGoodBrandList() {
12344
- var list = [];
12345
- var pageNo = 0;
12346
- var pageSize = 100;
12347
- var getMore = function getMore() {
12348
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12349
- method: 'post',
12350
- data: {
12351
- pageSize: pageSize,
12352
- pageNo: pageNo
12353
- }
12354
- }).then(function (res) {
12355
- var _res$data2;
12356
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12357
- var _res$data3, _res$data4;
12358
- list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
12359
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12360
- pageNo += 1;
12361
- getMore();
12362
- } else {
12363
- setBrandList(list);
12364
- }
12365
- } else {
12366
- reject(res);
12367
- }
12368
- }).catch(console.error);
12369
- };
12370
- getMore();
12371
- };
12372
- React.useEffect(function () {
12373
- setGoodBrandList();
12403
+
12404
+ var bse3Columns = [{
12405
+ dataIndex: 'specNo',
12406
+ title: "SKU",
12407
+ ellipsis: true,
12408
+ width: 200
12409
+ }, {
12410
+ dataIndex: 'specId',
12411
+ title: "SKU ID",
12412
+ ellipsis: true,
12413
+ width: 80
12414
+ }, {
12415
+ dataIndex: 'goodName',
12416
+ title: "\u5546\u54C1\u540D\u79F0",
12417
+ ellipsis: true,
12418
+ width: 250
12419
+ }, {
12420
+ dataIndex: 'goodShortName',
12421
+ title: "\u5546\u54C1\u7B80\u79F0",
12422
+ ellipsis: true,
12423
+ width: 250
12424
+ },
12425
+ // {
12426
+ // dataIndex: 'goodPicUrl',
12427
+ // title: `商品图片`,
12428
+ // ellipsis: true,
12429
+ // width: 100,
12430
+ // render: (picUrl: string) => {
12431
+ // return (
12432
+ // <img
12433
+ // style={{
12434
+ // width: '40px',
12435
+ // height: '40px',
12436
+ // objectFit: 'contain',
12437
+ // }}
12438
+ // src={picUrl}
12439
+ // ></img>
12440
+ // );
12441
+ // },
12442
+ // },
12443
+ {
12444
+ dataIndex: 'goodNo',
12445
+ title: "\u8D27\u53F7",
12446
+ ellipsis: true,
12447
+ width: 150
12448
+ }, {
12449
+ dataIndex: 'goodId',
12450
+ title: "\u8D27\u53F7ID",
12451
+ ellipsis: true,
12452
+ width: 100
12453
+ }, {
12454
+ dataIndex: 'colorName',
12455
+ title: "\u989C\u8272\u540D\u79F0",
12456
+ ellipsis: true,
12457
+ width: 100
12458
+ }, {
12459
+ dataIndex: 'colorCode',
12460
+ title: "\u989C\u8272\u4EE3\u7801",
12461
+ ellipsis: true,
12462
+ width: 100
12463
+ }, {
12464
+ dataIndex: 'sizeName',
12465
+ title: "\u5C3A\u7801\u540D\u79F0",
12466
+ ellipsis: true,
12467
+ width: 100
12468
+ }, {
12469
+ dataIndex: 'sizeCode',
12470
+ title: "\u5C3A\u7801\u4EE3\u7801",
12471
+ ellipsis: true,
12472
+ width: 100
12473
+ }, {
12474
+ dataIndex: 'brandName',
12475
+ title: "\u54C1\u724C\u540D\u79F0",
12476
+ ellipsis: true,
12477
+ width: 100
12478
+ }, {
12479
+ dataIndex: 'marketPrice',
12480
+ title: "\u5E02\u573A\u4EF7",
12481
+ ellipsis: true,
12482
+ width: 100
12483
+ }, {
12484
+ dataIndex: 'retailPrice',
12485
+ title: "\u552E\u4EF7",
12486
+ ellipsis: true,
12487
+ width: 100
12488
+ }];
12489
+
12490
+ var getColumnsMap = function getColumnsMap() {
12491
+ return cloneDeep({
12492
+ gy: gyColumns,
12493
+ jst: jstColumns,
12494
+ wdt: wdtColumns,
12495
+ bse3: bse3Columns
12496
+ });
12497
+ };
12498
+ var getColumnsBaseInfo = function getColumnsBaseInfo() {
12499
+ var clone_columnsMap = cloneDeep(getColumnsMap());
12500
+ var newColumns = {};
12501
+ Object.keys(clone_columnsMap).forEach(function (key) {
12502
+ newColumns[key] = clone_columnsMap[key].map(function (col) {
12503
+ return {
12504
+ title: col.title,
12505
+ dataIndex: col.dataIndex
12506
+ };
12507
+ });
12508
+ });
12509
+ return newColumns;
12510
+ };
12511
+ var index$2 = getColumnsBaseInfo();
12512
+
12513
+ var initNo = {
12514
+ dataIndex: 'index',
12515
+ title: 'NO',
12516
+ render: function render(val, record, index) {
12517
+ return /*#__PURE__*/React.createElement("div", {
12518
+ style: {
12519
+ width: 25
12520
+ }
12521
+ }, index + 1);
12522
+ },
12523
+ width: 80
12524
+ };
12525
+ var asyncGetData = function asyncGetData(type) {
12526
+ return extendRequest('/qy/condition/list', {
12527
+ method: 'get',
12528
+ params: {
12529
+ typeKey: "erp_select_modal_".concat(type),
12530
+ configScope: 'company' //按企业查询
12531
+ }
12532
+ }).then(function (res) {
12533
+ if (res && res.data && res.data[0] && res.data[0].queryInfo && res.data[0].queryInfo.length > 0) {
12534
+ return JSON.parse(res.data[0].queryInfo);
12535
+ } else {
12536
+ return getColumnsMap()[type];
12537
+ }
12538
+ });
12539
+ };
12540
+ var useGetColumns = (function (type) {
12541
+ var _useState = useState([]),
12542
+ _useState2 = _slicedToArray(_useState, 2),
12543
+ columns = _useState2[0],
12544
+ setColumns = _useState2[1];
12545
+ var _useState3 = useState(false),
12546
+ _useState4 = _slicedToArray(_useState3, 2),
12547
+ loading = _useState4[0],
12548
+ setLoading = _useState4[1];
12549
+ var showColumnsDataIndexList = useMemo(function () {
12550
+ return columns.filter(function (item) {
12551
+ return Object.hasOwn(item, 'dataIndex');
12552
+ }).map(function (item) {
12553
+ return item.dataIndex;
12554
+ });
12555
+ }, [columns]);
12556
+ useEffect(function () {
12557
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12558
+ var initColumns, requestSortColumns, list, initDataIndexList;
12559
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12560
+ while (1) switch (_context.prev = _context.next) {
12561
+ case 0:
12562
+ initColumns = getColumnsMap()[type];
12563
+ setLoading(true);
12564
+ _context.next = 4;
12565
+ return asyncGetData(type);
12566
+ case 4:
12567
+ requestSortColumns = _context.sent;
12568
+ setLoading(false);
12569
+ list = [initNo];
12570
+ if (requestSortColumns && requestSortColumns.length > 0) {
12571
+ initDataIndexList = initColumns.map(function (item) {
12572
+ return item.dataIndex;
12573
+ });
12574
+ requestSortColumns.forEach(function (item) {
12575
+ var dataIndex = item.dataIndex,
12576
+ show = item.show;
12577
+ if (show !== false && initDataIndexList.includes(dataIndex)) {
12578
+ list.push(initColumns.find(function (item) {
12579
+ return item.dataIndex === dataIndex;
12580
+ }));
12581
+ }
12582
+ });
12583
+ }
12584
+ setColumns(list);
12585
+ case 9:
12586
+ case "end":
12587
+ return _context.stop();
12588
+ }
12589
+ }, _callee);
12590
+ }))();
12374
12591
  }, []);
12375
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
12592
+ return [columns, showColumnsDataIndexList, loading];
12593
+ });
12594
+
12595
+ function SearchForm(_ref) {
12596
+ var searchFormData = _ref.searchFormData,
12597
+ form = _ref.form,
12598
+ showColumnsDataIndexList = _ref.showColumnsDataIndexList,
12599
+ submit = _ref.submit,
12600
+ reset = _ref.reset;
12601
+ var _useState = useState({}),
12602
+ _useState2 = _slicedToArray(_useState, 2),
12603
+ searchData = _useState2[0],
12604
+ setSearchData = _useState2[1];
12605
+ var submitForm = /*#__PURE__*/function () {
12606
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
12607
+ var values;
12608
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
12609
+ while (1) switch (_context.prev = _context.next) {
12610
+ case 0:
12611
+ _context.next = 2;
12612
+ return form.getFieldsValue();
12613
+ case 2:
12614
+ values = _context.sent;
12615
+ if (submitBtnClickFlag || !isEqual(values, searchData)) {
12616
+ setSearchData(values);
12617
+ submit();
12618
+ }
12619
+ case 4:
12620
+ case "end":
12621
+ return _context.stop();
12622
+ }
12623
+ }, _callee);
12624
+ }));
12625
+ return function submitForm(_x) {
12626
+ return _ref2.apply(this, arguments);
12627
+ };
12628
+ }();
12629
+ return /*#__PURE__*/React.createElement(Form, {
12376
12630
  layout: "inline",
12377
12631
  form: form
12378
- }, /*#__PURE__*/React.createElement(Form.Item, {
12379
- name: "skuName",
12380
- style: {
12381
- marginBottom: '12px'
12382
- }
12383
- }, /*#__PURE__*/React.createElement(Input, {
12384
- placeholder: "SKU\u540D\u79F0",
12385
- allowClear: true,
12386
- style: {
12387
- width: 150
12388
- }
12389
- })), /*#__PURE__*/React.createElement(Form.Item, {
12390
- name: "skuCode",
12391
- style: {
12392
- marginBottom: '12px'
12393
- }
12394
- }, /*#__PURE__*/React.createElement(Input, {
12395
- placeholder: "SKU\u7F16\u7801",
12396
- allowClear: true,
12397
- style: {
12398
- width: 150
12399
- }
12400
- })), /*#__PURE__*/React.createElement(Form.Item, {
12401
- name: "goodName",
12402
- style: {
12403
- marginBottom: '12px'
12404
- }
12405
- }, /*#__PURE__*/React.createElement(Input, {
12406
- placeholder: "\u5546\u54C1\u540D\u79F0",
12407
- allowClear: true,
12408
- style: {
12409
- width: 150
12410
- }
12411
- })), /*#__PURE__*/React.createElement(Form.Item, {
12412
- name: "goodNo",
12413
- style: {
12414
- marginBottom: '12px'
12415
- }
12416
- }, /*#__PURE__*/React.createElement(Input, {
12417
- placeholder: "\u5546\u54C1\u7F16\u7801",
12418
- allowClear: true,
12419
- style: {
12420
- width: 150
12421
- }
12422
- })), /*#__PURE__*/React.createElement(Form.Item, {
12423
- name: "brandIds",
12424
- style: {
12425
- marginBottom: '12px'
12426
- }
12427
- }, /*#__PURE__*/React.createElement(Select, {
12428
- mode: "multiple",
12429
- showSearch: true,
12430
- allowClear: true,
12431
- filterOption: function filterOption(input, option) {
12432
- return option.label.includes(input);
12433
- },
12434
- style: {
12435
- width: 150
12436
- },
12437
- placeholder: "\u54C1\u724C",
12438
- options: brandList.filter(function (item) {
12439
- return !item.isDisabled;
12440
- }).map(function (_ref2) {
12441
- var value = _ref2.brandId,
12442
- label = _ref2.brandName;
12443
- return {
12444
- value: value,
12445
- label: label
12446
- };
12447
- })
12448
- })), /*#__PURE__*/React.createElement(Form.Item, {
12632
+ }, searchFormData.map(function (item) {
12633
+ var label = item.label,
12634
+ name = item.name,
12635
+ dataIndex = item.dataIndex,
12636
+ type = item.type,
12637
+ _item$formItemProps = item.formItemProps,
12638
+ formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
12639
+ if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
12640
+ return /*#__PURE__*/React.createElement(Form.Item, {
12641
+ name: name,
12642
+ style: {
12643
+ marginBottom: '12px'
12644
+ }
12645
+ }, type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
12646
+ placeholder: label,
12647
+ showSearch: true,
12648
+ allowClear: true,
12649
+ style: {
12650
+ width: 150
12651
+ },
12652
+ onBlur: function onBlur() {
12653
+ return submitForm();
12654
+ }
12655
+ }, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
12656
+ placeholder: label,
12657
+ allowClear: true,
12658
+ style: {
12659
+ width: 150
12660
+ },
12661
+ onPressEnter: function onPressEnter() {
12662
+ return submitForm();
12663
+ },
12664
+ onBlur: function onBlur() {
12665
+ return submitForm();
12666
+ }
12667
+ }, formItemProps)));
12668
+ }), /*#__PURE__*/React.createElement(Form.Item, {
12449
12669
  style: {
12450
12670
  marginBottom: '12px'
12451
12671
  }
@@ -12454,10 +12674,154 @@ var GoodList = function GoodList(props, ref) {
12454
12674
  style: {
12455
12675
  marginRight: '8px'
12456
12676
  },
12457
- onClick: submit
12677
+ onClick: function onClick() {
12678
+ return submitForm(true);
12679
+ }
12458
12680
  }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
12459
12681
  onClick: reset
12460
12682
  }, "\u91CD\u7F6E")));
12683
+ }
12684
+
12685
+ var getTableData = function getTableData(_ref, formData) {
12686
+ var _formData$brandIds;
12687
+ var current = _ref.current,
12688
+ pageSize = _ref.pageSize;
12689
+ var data = {
12690
+ brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
12691
+ skuCode: formData.skuCode || null,
12692
+ skuName: formData.skuName || null,
12693
+ goodName: formData.goodName || null,
12694
+ goodNo: formData.goodNo || null
12695
+ };
12696
+ return extendRequest('/qy/gdfw/product/product/page', {
12697
+ method: 'post',
12698
+ data: _objectSpread2({
12699
+ pageSize: pageSize,
12700
+ pageNo: current,
12701
+ platform: 'WDT_ERP'
12702
+ }, data)
12703
+ }).then(function (res) {
12704
+ var _res$data = res.data,
12705
+ _res$data$productSkuL = _res$data.productSkuList,
12706
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12707
+ _res$data$total = _res$data.total,
12708
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12709
+ var newProducts = productSkuList.map(function (item, index) {
12710
+ return _objectSpread2(_objectSpread2({}, item), {}, {
12711
+ index: index + 1
12712
+ });
12713
+ });
12714
+ return {
12715
+ total: total,
12716
+ list: newProducts
12717
+ };
12718
+ });
12719
+ };
12720
+ var GoodList = function GoodList(props, ref) {
12721
+ var _useState = useState([]),
12722
+ _useState2 = _slicedToArray(_useState, 2),
12723
+ selectList = _useState2[0],
12724
+ setSelect = _useState2[1];
12725
+ var _useState3 = useState([]),
12726
+ _useState4 = _slicedToArray(_useState3, 2),
12727
+ selectIds = _useState4[0],
12728
+ setSelectIds = _useState4[1];
12729
+ var _useState5 = useState([]),
12730
+ _useState6 = _slicedToArray(_useState5, 2),
12731
+ brandList = _useState6[0],
12732
+ setBrandList = _useState6[1];
12733
+ var _useGetColumns = useGetColumns('wdt'),
12734
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
12735
+ columns = _useGetColumns2[0],
12736
+ showColumnsDataIndexList = _useGetColumns2[1],
12737
+ loading = _useGetColumns2[2];
12738
+ useImperativeHandle(ref, function () {
12739
+ return {
12740
+ getSelectGoodList: function getSelectGoodList() {
12741
+ return selectList;
12742
+ }
12743
+ };
12744
+ });
12745
+ var _Form$useForm = Form.useForm(),
12746
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
12747
+ form = _Form$useForm2[0];
12748
+ var _useAntdTable = useAntdTable(getTableData, {
12749
+ defaultPageSize: 10,
12750
+ form: form
12751
+ }),
12752
+ tableProps = _useAntdTable.tableProps,
12753
+ search = _useAntdTable.search,
12754
+ params = _useAntdTable.params;
12755
+ var submit = search.submit,
12756
+ reset = search.reset;
12757
+ var setGoodBrandList = function setGoodBrandList() {
12758
+ var list = [];
12759
+ var pageNo = 0;
12760
+ var pageSize = 100;
12761
+ var getMore = function getMore() {
12762
+ extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
12763
+ method: 'post',
12764
+ data: {
12765
+ pageSize: pageSize,
12766
+ pageNo: pageNo
12767
+ }
12768
+ }).then(function (res) {
12769
+ var _res$data2;
12770
+ if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
12771
+ var _res$data3, _res$data4;
12772
+ list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
12773
+ if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
12774
+ pageNo += 1;
12775
+ getMore();
12776
+ } else {
12777
+ setBrandList(list);
12778
+ }
12779
+ } else {
12780
+ reject(res);
12781
+ }
12782
+ }).catch(console.error);
12783
+ };
12784
+ getMore();
12785
+ };
12786
+ React.useEffect(function () {
12787
+ setGoodBrandList();
12788
+ }, []);
12789
+ var searchFormData = [{
12790
+ label: 'SKU名称',
12791
+ name: 'skuName',
12792
+ dataIndex: 'specName'
12793
+ }, {
12794
+ label: 'SKU编码',
12795
+ name: 'skuCode',
12796
+ dataIndex: 'specNo'
12797
+ }, {
12798
+ label: '商品名称',
12799
+ name: 'goodName'
12800
+ }, {
12801
+ label: '商品编码',
12802
+ name: 'goodNo'
12803
+ }, {
12804
+ label: '品牌',
12805
+ name: 'brandIds',
12806
+ dataIndex: 'brandName',
12807
+ type: 'select',
12808
+ formItemProps: {
12809
+ mode: 'multiple',
12810
+ filterOption: function filterOption(input, option) {
12811
+ return option.label.includes(input);
12812
+ },
12813
+ options: brandList.filter(function (item) {
12814
+ return !item.isDisabled;
12815
+ }).map(function (_ref2) {
12816
+ var value = _ref2.brandId,
12817
+ label = _ref2.brandName;
12818
+ return {
12819
+ value: value,
12820
+ label: label
12821
+ };
12822
+ })
12823
+ }
12824
+ }];
12461
12825
  var rowSelection = {
12462
12826
  selectedRowKeys: selectIds,
12463
12827
  fixed: true,
@@ -12513,7 +12877,7 @@ var GoodList = function GoodList(props, ref) {
12513
12877
  }
12514
12878
  }, "\u5220\u9664");
12515
12879
  }
12516
- }].concat(takeRight(columns$1, columns$1.length - 1));
12880
+ }].concat(takeRight(columns, columns.length - 1));
12517
12881
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
12518
12882
  style: {
12519
12883
  width: '100%',
@@ -12535,14 +12899,23 @@ var GoodList = function GoodList(props, ref) {
12535
12899
  }
12536
12900
  })) : null;
12537
12901
  };
12538
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
12902
+ return /*#__PURE__*/React.createElement(Skeleton, {
12903
+ active: true,
12904
+ loading: loading
12905
+ }, /*#__PURE__*/React.createElement(SearchForm, {
12906
+ searchFormData: searchFormData,
12907
+ form: form,
12908
+ showColumnsDataIndexList: showColumnsDataIndexList,
12909
+ submit: submit,
12910
+ reset: reset
12911
+ }), /*#__PURE__*/React.createElement("div", {
12539
12912
  style: {
12540
12913
  marginTop: '4px'
12541
12914
  }
12542
12915
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
12543
12916
  rowSelection: rowSelection,
12544
12917
  rowKey: "specNo",
12545
- columns: columns$1,
12918
+ columns: columns,
12546
12919
  scroll: {
12547
12920
  x: '100%',
12548
12921
  y: 250
@@ -12599,124 +12972,42 @@ var GoodsModal$3 = function GoodsModal(props, ref) {
12599
12972
  ref: wdtGoodListRef
12600
12973
  })));
12601
12974
  };
12602
- var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
12603
-
12604
- var getTableData$1 = function getTableData(_ref, formData) {
12605
- var current = _ref.current,
12606
- pageSize = _ref.pageSize;
12607
- return extendRequest('/qy/gdfw/product/product/page', {
12608
- method: 'post',
12609
- data: _objectSpread2({
12610
- pageSize: pageSize,
12611
- pageNo: current,
12612
- platform: 'JST_ERP'
12613
- }, formData)
12614
- }).then(function (res) {
12615
- var _res$data = res.data,
12616
- _res$data$productSkuL = _res$data.productSkuList,
12617
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12618
- _res$data$total = _res$data.total,
12619
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12620
- var newProducts = productSkuList.map(function (item, index) {
12621
- return _objectSpread2({}, item);
12622
- });
12623
- return {
12624
- total: total,
12625
- list: newProducts
12626
- };
12627
- });
12628
- };
12629
- var columns$2 = [{
12630
- dataIndex: 'index',
12631
- title: 'NO',
12632
- render: function render(val, record, index) {
12633
- return /*#__PURE__*/React.createElement("div", {
12634
- style: {
12635
- width: 25
12636
- }
12637
- }, index + 1);
12638
- },
12639
- width: 80
12640
- }, {
12641
- dataIndex: 'goodName',
12642
- title: '商品名称',
12643
- width: 250,
12644
- ellipsis: true
12645
- }, {
12646
- dataIndex: 'goodNo',
12647
- title: '商品编码',
12648
- width: 200,
12649
- ellipsis: true
12650
- }, {
12651
- dataIndex: 'styleCode',
12652
- title: '款式编码',
12653
- width: 200,
12654
- ellipsis: true
12655
- }, {
12656
- dataIndex: 'propertiesValue',
12657
- title: '规格值',
12658
- width: 200,
12659
- ellipsis: true
12660
- }, {
12661
- dataIndex: 'goodPicUrl',
12662
- title: '商品图片',
12663
- width: 100,
12664
- render: function render(picUrl) {
12665
- return /*#__PURE__*/React.createElement("img", {
12666
- style: {
12667
- width: '40px',
12668
- height: '40px',
12669
- objectFit: 'contain'
12670
- },
12671
- src: picUrl
12975
+ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
12976
+
12977
+ var getTableData$1 = function getTableData(_ref, formData) {
12978
+ var current = _ref.current,
12979
+ pageSize = _ref.pageSize;
12980
+ return extendRequest('/qy/gdfw/product/product/page', {
12981
+ method: 'post',
12982
+ data: _objectSpread2({
12983
+ pageSize: pageSize,
12984
+ pageNo: current,
12985
+ platform: 'JST_ERP'
12986
+ }, formData)
12987
+ }).then(function (res) {
12988
+ var _res$data = res.data,
12989
+ _res$data$productSkuL = _res$data.productSkuList,
12990
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12991
+ _res$data$total = _res$data.total,
12992
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
12993
+ var newProducts = productSkuList.map(function (item, index) {
12994
+ return _objectSpread2({}, item);
12672
12995
  });
12673
- }
12674
- }, {
12675
- dataIndex: 'goodShortName',
12676
- title: "\u5546\u54C1\u7B80\u79F0",
12677
- ellipsis: true,
12678
- width: 250
12679
- }, {
12680
- dataIndex: 'brandName',
12681
- title: '品牌名称',
12682
- width: 200,
12683
- ellipsis: true
12684
- }, {
12685
- dataIndex: 'retailPrice',
12686
- title: "\u9500\u552E\u4EF7\u683C",
12687
- ellipsis: true,
12688
- width: 100,
12689
- render: function render(price) {
12690
- return price || price === 0 ? Number(price).toFixed(2) : '';
12691
- }
12692
- }, {
12693
- dataIndex: 'marketPrice',
12694
- title: "\u5E02\u573A\u4EF7",
12695
- ellipsis: true,
12696
- width: 100,
12697
- render: function render(price) {
12698
- return price || price === 0 ? Number(price).toFixed(2) : '';
12699
- }
12996
+ return {
12997
+ total: total,
12998
+ list: newProducts
12999
+ };
13000
+ });
13001
+ };
13002
+ var searchFormData = [{
13003
+ label: '商品名称',
13004
+ name: 'goodName'
12700
13005
  }, {
12701
- dataIndex: 'costPrice',
12702
- title: "\u6210\u672C\u4EF7",
12703
- ellipsis: true,
12704
- width: 100,
12705
- render: function render(price) {
12706
- return price || price === 0 ? Number(price).toFixed(2) : '';
12707
- }
13006
+ label: '商品编码',
13007
+ name: 'goodNo'
12708
13008
  }, {
12709
- dataIndex: 'skuType',
12710
- title: "\u5546\u54C1\u7C7B\u578B",
12711
- ellipsis: true,
12712
- width: 100,
12713
- render: function render() {
12714
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'normal';
12715
- return {
12716
- 'combine': '组合装商品',
12717
- 'normal': '普通商品'
12718
- }[type] || type;
12719
- }
13009
+ label: '款式编码',
13010
+ name: 'styleCode'
12720
13011
  }];
12721
13012
  var GoodList$1 = function GoodList(props, ref) {
12722
13013
  var _useState = useState([]),
@@ -12727,6 +13018,11 @@ var GoodList$1 = function GoodList(props, ref) {
12727
13018
  _useState4 = _slicedToArray(_useState3, 2),
12728
13019
  selectIds = _useState4[0],
12729
13020
  setSelectIds = _useState4[1];
13021
+ var _useGetColumns = useGetColumns('jst'),
13022
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13023
+ columns = _useGetColumns2[0],
13024
+ showColumnsDataIndexList = _useGetColumns2[1],
13025
+ loading = _useGetColumns2[2];
12730
13026
  useImperativeHandle(ref, function () {
12731
13027
  return {
12732
13028
  getSelectGoodList: function getSelectGoodList() {
@@ -12746,55 +13042,6 @@ var GoodList$1 = function GoodList(props, ref) {
12746
13042
  params = _useAntdTable.params;
12747
13043
  var submit = search.submit,
12748
13044
  reset = search.reset;
12749
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
12750
- layout: "inline",
12751
- form: form
12752
- }, /*#__PURE__*/React.createElement(Form.Item, {
12753
- name: "goodName",
12754
- style: {
12755
- marginBottom: '12px'
12756
- }
12757
- }, /*#__PURE__*/React.createElement(Input, {
12758
- placeholder: "\u5546\u54C1\u540D\u79F0",
12759
- allowClear: true,
12760
- style: {
12761
- width: 150
12762
- }
12763
- })), /*#__PURE__*/React.createElement(Form.Item, {
12764
- name: "goodNo",
12765
- style: {
12766
- marginBottom: '12px'
12767
- }
12768
- }, /*#__PURE__*/React.createElement(Input, {
12769
- placeholder: "\u5546\u54C1\u7F16\u7801",
12770
- allowClear: true,
12771
- style: {
12772
- width: 150
12773
- }
12774
- })), /*#__PURE__*/React.createElement(Form.Item, {
12775
- name: "styleCode",
12776
- style: {
12777
- marginBottom: '12px'
12778
- }
12779
- }, /*#__PURE__*/React.createElement(Input, {
12780
- placeholder: "\u6B3E\u5F0F\u7F16\u7801",
12781
- allowClear: true,
12782
- style: {
12783
- width: 150
12784
- }
12785
- })), /*#__PURE__*/React.createElement(Form.Item, {
12786
- style: {
12787
- marginBottom: '12px'
12788
- }
12789
- }, /*#__PURE__*/React.createElement(Button, {
12790
- type: "primary",
12791
- style: {
12792
- marginRight: '8px'
12793
- },
12794
- onClick: submit
12795
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
12796
- onClick: reset
12797
- }, "\u91CD\u7F6E")));
12798
13045
  var rowSelection = {
12799
13046
  selectedRowKeys: selectIds,
12800
13047
  fixed: true,
@@ -12859,7 +13106,7 @@ var GoodList$1 = function GoodList(props, ref) {
12859
13106
  }
12860
13107
  }, "\u5220\u9664");
12861
13108
  }
12862
- }].concat(takeRight(columns$2, columns$2.length - 1));
13109
+ }].concat(takeRight(columns, columns.length - 1));
12863
13110
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
12864
13111
  style: {
12865
13112
  width: '100%',
@@ -12881,14 +13128,23 @@ var GoodList$1 = function GoodList(props, ref) {
12881
13128
  }
12882
13129
  })) : null;
12883
13130
  };
12884
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13131
+ return /*#__PURE__*/React.createElement(Skeleton, {
13132
+ active: true,
13133
+ loading: loading
13134
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13135
+ searchFormData: searchFormData,
13136
+ form: form,
13137
+ showColumnsDataIndexList: showColumnsDataIndexList,
13138
+ submit: submit,
13139
+ reset: reset
13140
+ }), /*#__PURE__*/React.createElement("div", {
12885
13141
  style: {
12886
13142
  marginTop: '4px'
12887
13143
  }
12888
13144
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
12889
13145
  rowSelection: rowSelection,
12890
13146
  rowKey: "goodNo",
12891
- columns: columns$2,
13147
+ columns: columns,
12892
13148
  scroll: {
12893
13149
  x: '100%',
12894
13150
  y: 250
@@ -12924,164 +13180,84 @@ var GyGoodsModal = function GyGoodsModal(props, ref) {
12924
13180
  setVisible = _useState2[1];
12925
13181
  var _useState3 = useState([]),
12926
13182
  _useState4 = _slicedToArray(_useState3, 2),
12927
- selectedRows = _useState4[0],
12928
- setSelectedRows = _useState4[1];
12929
- var gyGoodsListRef = useRef(null);
12930
- var _onCancel = function onCancel() {
12931
- setVisible(false);
12932
- };
12933
- var onOk = function onOk() {
12934
- var _gyGoodsListRef$curre;
12935
- var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
12936
- onSubmit(selectedList);
12937
- _onCancel();
12938
- };
12939
- return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
12940
- title: '选择商品',
12941
- okText: '确认',
12942
- cancelText: '取消',
12943
- visible: visible,
12944
- width: width || 850,
12945
- onCancel: function onCancel() {
12946
- _onCancel();
12947
- },
12948
- onOk: onOk,
12949
- wrapClassName: "goodModal"
12950
- }, /*#__PURE__*/React.createElement(GyGoodsList, {
12951
- ref: gyGoodsListRef,
12952
- selectedRows: selectedRows
12953
- })));
12954
- };
12955
- var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
12956
-
12957
- var getTableData$2 = function getTableData(_ref, formData) {
12958
- var current = _ref.current,
12959
- pageSize = _ref.pageSize;
12960
- var data = {
12961
- goodNo: formData.goodNo || null,
12962
- goodName: formData.goodName || null,
12963
- skuCode: formData.skuCode || null,
12964
- skuId: formData.skuId || null
12965
- };
12966
- return extendRequest('/qy/gdfw/product/product/page', {
12967
- method: 'post',
12968
- data: _objectSpread2({
12969
- pageSize: pageSize,
12970
- pageNo: current,
12971
- platform: 'BS_E3_ERP'
12972
- }, data)
12973
- }).then(function (res) {
12974
- var _res$data = res.data,
12975
- _res$data$productSkuL = _res$data.productSkuList,
12976
- productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
12977
- _res$data$total = _res$data.total,
12978
- total = _res$data$total === void 0 ? 0 : _res$data$total;
12979
- var newProducts = productSkuList.map(function (item, index) {
12980
- return _objectSpread2(_objectSpread2({}, item), {}, {
12981
- index: index + 1
12982
- });
12983
- });
12984
- return {
12985
- total: total,
12986
- list: newProducts
12987
- };
12988
- });
12989
- };
12990
- var columns$3 = [{
12991
- dataIndex: 'index',
12992
- title: 'NO',
12993
- render: function render(val, record, index) {
12994
- return /*#__PURE__*/React.createElement("div", {
12995
- style: {
12996
- width: 25
12997
- }
12998
- }, index + 1);
12999
- },
13000
- width: 80
13001
- }, {
13002
- dataIndex: 'specNo',
13003
- title: "SKU",
13004
- ellipsis: true,
13005
- width: 200
13006
- }, {
13007
- dataIndex: 'specId',
13008
- title: "SKU ID",
13009
- ellipsis: true,
13010
- width: 80
13011
- }, {
13012
- dataIndex: 'goodName',
13013
- title: "\u5546\u54C1\u540D\u79F0",
13014
- ellipsis: true,
13015
- width: 250
13016
- }, {
13017
- dataIndex: 'goodShortName',
13018
- title: "\u5546\u54C1\u7B80\u79F0",
13019
- ellipsis: true,
13020
- width: 250
13021
- },
13022
- // {
13023
- // dataIndex: 'goodPicUrl',
13024
- // title: `商品图片`,
13025
- // ellipsis: true,
13026
- // width: 100,
13027
- // render: (picUrl: string) => {
13028
- // return (
13029
- // <img
13030
- // style={{
13031
- // width: '40px',
13032
- // height: '40px',
13033
- // objectFit: 'contain',
13034
- // }}
13035
- // src={picUrl}
13036
- // ></img>
13037
- // );
13038
- // },
13039
- // },
13040
- {
13041
- dataIndex: 'goodNo',
13042
- title: "\u8D27\u53F7",
13043
- ellipsis: true,
13044
- width: 150
13045
- }, {
13046
- dataIndex: 'goodId',
13047
- title: "\u8D27\u53F7ID",
13048
- ellipsis: true,
13049
- width: 100
13050
- }, {
13051
- dataIndex: 'colorName',
13052
- title: "\u989C\u8272\u540D\u79F0",
13053
- ellipsis: true,
13054
- width: 100
13055
- }, {
13056
- dataIndex: 'colorCode',
13057
- title: "\u989C\u8272\u4EE3\u7801",
13058
- ellipsis: true,
13059
- width: 100
13060
- }, {
13061
- dataIndex: 'sizeName',
13062
- title: "\u5C3A\u7801\u540D\u79F0",
13063
- ellipsis: true,
13064
- width: 100
13065
- }, {
13066
- dataIndex: 'sizeCode',
13067
- title: "\u5C3A\u7801\u4EE3\u7801",
13068
- ellipsis: true,
13069
- width: 100
13183
+ selectedRows = _useState4[0],
13184
+ setSelectedRows = _useState4[1];
13185
+ var gyGoodsListRef = useRef(null);
13186
+ var _onCancel = function onCancel() {
13187
+ setVisible(false);
13188
+ };
13189
+ var onOk = function onOk() {
13190
+ var _gyGoodsListRef$curre;
13191
+ var selectedList = ((_gyGoodsListRef$curre = gyGoodsListRef.current) === null || _gyGoodsListRef$curre === void 0 ? void 0 : _gyGoodsListRef$curre.getSelectGoodList()) || [];
13192
+ onSubmit(selectedList);
13193
+ _onCancel();
13194
+ };
13195
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
13196
+ title: '选择商品',
13197
+ okText: '确认',
13198
+ cancelText: '取消',
13199
+ visible: visible,
13200
+ width: width || 850,
13201
+ onCancel: function onCancel() {
13202
+ _onCancel();
13203
+ },
13204
+ onOk: onOk,
13205
+ wrapClassName: "goodModal"
13206
+ }, /*#__PURE__*/React.createElement(GyGoodsList, {
13207
+ ref: gyGoodsListRef,
13208
+ selectedRows: selectedRows
13209
+ })));
13210
+ };
13211
+ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
13212
+
13213
+ var getTableData$2 = function getTableData(_ref, formData) {
13214
+ var current = _ref.current,
13215
+ pageSize = _ref.pageSize;
13216
+ var data = {
13217
+ goodShortName: formData.goodShortName || null,
13218
+ goodNo: formData.goodNo || null,
13219
+ goodName: formData.goodName || null,
13220
+ skuCode: formData.skuCode || null,
13221
+ skuId: formData.skuId || null
13222
+ };
13223
+ return extendRequest('/qy/gdfw/product/product/page', {
13224
+ method: 'post',
13225
+ data: _objectSpread2({
13226
+ pageSize: pageSize,
13227
+ pageNo: current,
13228
+ platform: 'BS_E3_ERP'
13229
+ }, data)
13230
+ }).then(function (res) {
13231
+ var _res$data = res.data,
13232
+ _res$data$productSkuL = _res$data.productSkuList,
13233
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
13234
+ _res$data$total = _res$data.total,
13235
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
13236
+ var newProducts = productSkuList.map(function (item, index) {
13237
+ return _objectSpread2(_objectSpread2({}, item), {}, {
13238
+ index: index + 1
13239
+ });
13240
+ });
13241
+ return {
13242
+ total: total,
13243
+ list: newProducts
13244
+ };
13245
+ });
13246
+ };
13247
+ var searchFormData$1 = [{
13248
+ label: '商品货号',
13249
+ name: 'goodNo'
13070
13250
  }, {
13071
- dataIndex: 'brandName',
13072
- title: "\u54C1\u724C\u540D\u79F0",
13073
- ellipsis: true,
13074
- width: 100
13251
+ label: '商品名称',
13252
+ name: 'goodName'
13075
13253
  }, {
13076
- dataIndex: 'marketPrice',
13077
- title: "\u5E02\u573A\u4EF7",
13078
- ellipsis: true,
13079
- width: 100
13254
+ label: 'SKU',
13255
+ name: 'skuCode',
13256
+ dataIndex: 'specNo'
13080
13257
  }, {
13081
- dataIndex: 'retailPrice',
13082
- title: "\u552E\u4EF7",
13083
- ellipsis: true,
13084
- width: 100
13258
+ label: 'SKU ID',
13259
+ name: 'skuId',
13260
+ dataIndex: 'specId'
13085
13261
  }];
13086
13262
  var GoodList$2 = function GoodList(props, ref) {
13087
13263
  var _useState = useState([]),
@@ -13092,6 +13268,11 @@ var GoodList$2 = function GoodList(props, ref) {
13092
13268
  _useState4 = _slicedToArray(_useState3, 2),
13093
13269
  selectIds = _useState4[0],
13094
13270
  setSelectIds = _useState4[1];
13271
+ var _useGetColumns = useGetColumns('bse3'),
13272
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13273
+ columns = _useGetColumns2[0],
13274
+ showColumnsDataIndexList = _useGetColumns2[1],
13275
+ loading = _useGetColumns2[2];
13095
13276
  useImperativeHandle(ref, function () {
13096
13277
  return {
13097
13278
  getSelectGoodList: function getSelectGoodList() {
@@ -13111,66 +13292,6 @@ var GoodList$2 = function GoodList(props, ref) {
13111
13292
  params = _useAntdTable.params;
13112
13293
  var submit = search.submit,
13113
13294
  reset = search.reset;
13114
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
13115
- layout: "inline",
13116
- form: form
13117
- }, /*#__PURE__*/React.createElement(Form.Item, {
13118
- name: "goodNo",
13119
- style: {
13120
- marginBottom: '12px'
13121
- }
13122
- }, /*#__PURE__*/React.createElement(Input, {
13123
- placeholder: "\u5546\u54C1\u8D27\u53F7",
13124
- allowClear: true,
13125
- style: {
13126
- width: 150
13127
- }
13128
- })), /*#__PURE__*/React.createElement(Form.Item, {
13129
- name: "goodName",
13130
- style: {
13131
- marginBottom: '12px'
13132
- }
13133
- }, /*#__PURE__*/React.createElement(Input, {
13134
- placeholder: "\u5546\u54C1\u540D\u79F0",
13135
- allowClear: true,
13136
- style: {
13137
- width: 150
13138
- }
13139
- })), /*#__PURE__*/React.createElement(Form.Item, {
13140
- name: "skuCode",
13141
- style: {
13142
- marginBottom: '12px'
13143
- }
13144
- }, /*#__PURE__*/React.createElement(Input, {
13145
- placeholder: "SKU",
13146
- allowClear: true,
13147
- style: {
13148
- width: 150
13149
- }
13150
- })), /*#__PURE__*/React.createElement(Form.Item, {
13151
- name: "skuId",
13152
- style: {
13153
- marginBottom: '12px'
13154
- }
13155
- }, /*#__PURE__*/React.createElement(Input, {
13156
- placeholder: "SKU ID",
13157
- allowClear: true,
13158
- style: {
13159
- width: 150
13160
- }
13161
- })), /*#__PURE__*/React.createElement(Form.Item, {
13162
- style: {
13163
- marginBottom: '12px'
13164
- }
13165
- }, /*#__PURE__*/React.createElement(Button, {
13166
- type: "primary",
13167
- style: {
13168
- marginRight: '8px'
13169
- },
13170
- onClick: submit
13171
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
13172
- onClick: reset
13173
- }, "\u91CD\u7F6E")));
13174
13295
  var rowSelection = {
13175
13296
  selectedRowKeys: selectIds,
13176
13297
  fixed: true,
@@ -13226,7 +13347,7 @@ var GoodList$2 = function GoodList(props, ref) {
13226
13347
  }
13227
13348
  }, "\u5220\u9664");
13228
13349
  }
13229
- }].concat(takeRight(columns$3, columns$3.length - 1));
13350
+ }].concat(takeRight(columns, columns.length - 1));
13230
13351
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
13231
13352
  style: {
13232
13353
  width: '100%',
@@ -13248,14 +13369,23 @@ var GoodList$2 = function GoodList(props, ref) {
13248
13369
  }
13249
13370
  })) : null;
13250
13371
  };
13251
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13372
+ return /*#__PURE__*/React.createElement(Skeleton, {
13373
+ active: true,
13374
+ loading: loading
13375
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13376
+ searchFormData: searchFormData$1,
13377
+ form: form,
13378
+ showColumnsDataIndexList: showColumnsDataIndexList,
13379
+ submit: submit,
13380
+ reset: reset
13381
+ }), /*#__PURE__*/React.createElement("div", {
13252
13382
  style: {
13253
13383
  marginTop: '4px'
13254
13384
  }
13255
13385
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
13256
13386
  rowSelection: rowSelection,
13257
13387
  rowKey: "specNo",
13258
- columns: columns$3,
13388
+ columns: columns,
13259
13389
  scroll: {
13260
13390
  x: '100%',
13261
13391
  y: 250
@@ -13346,71 +13476,23 @@ var getTableData$3 = function getTableData(_ref, formData) {
13346
13476
  };
13347
13477
  });
13348
13478
  };
13349
- var columns$4 = [{
13350
- dataIndex: 'index',
13351
- title: 'NO',
13352
- render: function render(val, record, index) {
13353
- return /*#__PURE__*/React.createElement("div", {
13354
- style: {
13355
- width: 25
13356
- }
13357
- }, index + 1);
13358
- },
13359
- width: 80
13360
- }, {
13361
- dataIndex: 'specName',
13362
- title: 'SKU名称',
13363
- width: 250,
13364
- ellipsis: true
13365
- }, {
13366
- dataIndex: 'specNo',
13367
- title: 'SKU编码',
13368
- width: 200,
13369
- ellipsis: true
13370
- }, {
13371
- dataIndex: 'goodName',
13372
- title: '商品名称',
13373
- width: 250,
13374
- ellipsis: true
13375
- }, {
13376
- dataIndex: 'goodShortName',
13377
- title: "\u5546\u54C1\u7B80\u79F0",
13378
- ellipsis: true,
13379
- width: 250
13380
- }, {
13381
- dataIndex: 'goodNo',
13382
- title: '商品编码',
13383
- width: 200,
13384
- ellipsis: true
13479
+ var searchFormData$2 = [{
13480
+ label: '商品简称',
13481
+ name: 'goodShortName'
13385
13482
  }, {
13386
- dataIndex: 'goodPicUrl',
13387
- title: '商品图片',
13388
- width: 100,
13389
- render: function render(picUrl) {
13390
- return /*#__PURE__*/React.createElement("img", {
13391
- style: {
13392
- width: '40px',
13393
- height: '40px',
13394
- objectFit: 'contain'
13395
- },
13396
- src: picUrl
13397
- });
13398
- }
13483
+ label: '商品sku名称',
13484
+ name: 'skuName',
13485
+ dataIndex: 'specName'
13399
13486
  }, {
13400
- dataIndex: 'brandName',
13401
- title: '品牌名称',
13402
- width: 200,
13403
- ellipsis: true
13487
+ label: '商品sku编码',
13488
+ name: 'skuCode',
13489
+ dataIndex: 'specNo'
13404
13490
  }, {
13405
- dataIndex: 'retailPrice',
13406
- title: "\u6807\u51C6\u552E\u4EF7",
13407
- ellipsis: true,
13408
- width: 100
13491
+ label: '商品名称',
13492
+ name: 'goodName'
13409
13493
  }, {
13410
- dataIndex: 'costPrice',
13411
- title: "\u6210\u672C\u4EF7",
13412
- ellipsis: true,
13413
- width: 100
13494
+ label: '商品编码',
13495
+ name: 'goodNo'
13414
13496
  }];
13415
13497
  var GoodList$3 = function GoodList(props, ref) {
13416
13498
  var _useState = useState([]),
@@ -13421,6 +13503,11 @@ var GoodList$3 = function GoodList(props, ref) {
13421
13503
  _useState4 = _slicedToArray(_useState3, 2),
13422
13504
  selectIds = _useState4[0],
13423
13505
  setSelectIds = _useState4[1];
13506
+ var _useGetColumns = useGetColumns('gy'),
13507
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
13508
+ columns = _useGetColumns2[0],
13509
+ showColumnsDataIndexList = _useGetColumns2[1],
13510
+ loading = _useGetColumns2[2];
13424
13511
  useImperativeHandle(ref, function () {
13425
13512
  return {
13426
13513
  getSelectGoodList: function getSelectGoodList() {
@@ -13440,77 +13527,6 @@ var GoodList$3 = function GoodList(props, ref) {
13440
13527
  params = _useAntdTable.params;
13441
13528
  var submit = search.submit,
13442
13529
  reset = search.reset;
13443
- var advanceSearchForm = /*#__PURE__*/React.createElement(Form, {
13444
- layout: "inline",
13445
- form: form
13446
- }, /*#__PURE__*/React.createElement(Form.Item, {
13447
- name: "goodShortName",
13448
- style: {
13449
- marginBottom: '12px'
13450
- }
13451
- }, /*#__PURE__*/React.createElement(Input, {
13452
- placeholder: "\u5546\u54C1\u7B80\u79F0",
13453
- allowClear: true,
13454
- style: {
13455
- width: 150
13456
- }
13457
- })), /*#__PURE__*/React.createElement(Form.Item, {
13458
- name: "skuName",
13459
- style: {
13460
- marginBottom: '12px'
13461
- }
13462
- }, /*#__PURE__*/React.createElement(Input, {
13463
- placeholder: "\u5546\u54C1sku\u540D\u79F0",
13464
- allowClear: true,
13465
- style: {
13466
- width: 150
13467
- }
13468
- })), /*#__PURE__*/React.createElement(Form.Item, {
13469
- name: "skuCode",
13470
- style: {
13471
- marginBottom: '12px'
13472
- }
13473
- }, /*#__PURE__*/React.createElement(Input, {
13474
- placeholder: "\u5546\u54C1sku\u7F16\u7801",
13475
- allowClear: true,
13476
- style: {
13477
- width: 150
13478
- }
13479
- })), /*#__PURE__*/React.createElement(Form.Item, {
13480
- name: "goodName",
13481
- style: {
13482
- marginBottom: '12px'
13483
- }
13484
- }, /*#__PURE__*/React.createElement(Input, {
13485
- placeholder: "\u5546\u54C1\u540D\u79F0",
13486
- allowClear: true,
13487
- style: {
13488
- width: 150
13489
- }
13490
- })), /*#__PURE__*/React.createElement(Form.Item, {
13491
- name: "goodNo",
13492
- style: {
13493
- marginBottom: '12px'
13494
- }
13495
- }, /*#__PURE__*/React.createElement(Input, {
13496
- placeholder: "\u5546\u54C1\u7F16\u7801",
13497
- allowClear: true,
13498
- style: {
13499
- width: 150
13500
- }
13501
- })), /*#__PURE__*/React.createElement(Form.Item, {
13502
- style: {
13503
- marginBottom: '12px'
13504
- }
13505
- }, /*#__PURE__*/React.createElement(Button, {
13506
- type: "primary",
13507
- style: {
13508
- marginRight: '8px'
13509
- },
13510
- onClick: submit
13511
- }, "\u67E5\u8BE2"), /*#__PURE__*/React.createElement(Button, {
13512
- onClick: reset
13513
- }, "\u91CD\u7F6E")));
13514
13530
  var rowSelection = {
13515
13531
  selectedRowKeys: selectIds,
13516
13532
  fixed: true,
@@ -13566,7 +13582,7 @@ var GoodList$3 = function GoodList(props, ref) {
13566
13582
  }
13567
13583
  }, "\u5220\u9664");
13568
13584
  }
13569
- }].concat(takeRight(columns$4, columns$4.length - 1));
13585
+ }].concat(takeRight(columns, columns.length - 1));
13570
13586
  return selectList.length ? /*#__PURE__*/React.createElement("div", {
13571
13587
  style: {
13572
13588
  width: '100%',
@@ -13588,14 +13604,23 @@ var GoodList$3 = function GoodList(props, ref) {
13588
13604
  }
13589
13605
  })) : null;
13590
13606
  };
13591
- return /*#__PURE__*/React.createElement(React.Fragment, null, advanceSearchForm, /*#__PURE__*/React.createElement("div", {
13607
+ return /*#__PURE__*/React.createElement(Skeleton, {
13608
+ active: true,
13609
+ loading: loading
13610
+ }, /*#__PURE__*/React.createElement(SearchForm, {
13611
+ searchFormData: searchFormData$2,
13612
+ form: form,
13613
+ showColumnsDataIndexList: showColumnsDataIndexList,
13614
+ submit: submit,
13615
+ reset: reset
13616
+ }), /*#__PURE__*/React.createElement("div", {
13592
13617
  style: {
13593
13618
  marginTop: '4px'
13594
13619
  }
13595
13620
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
13596
13621
  rowSelection: rowSelection,
13597
13622
  rowKey: "id",
13598
- columns: columns$4,
13623
+ columns: columns,
13599
13624
  scroll: {
13600
13625
  x: '100%',
13601
13626
  y: 250
@@ -14075,7 +14100,7 @@ var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
14075
14100
  var disabled = _ref2.disabled,
14076
14101
  updateHandle = _ref2.updateHandle,
14077
14102
  operate = _ref2.operate;
14078
- return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
14103
+ return getColumnsMap$1()['WDT_REISSUE_GOODS'].map(function (item) {
14079
14104
  var newItem = _objectSpread2({
14080
14105
  align: 'center',
14081
14106
  ellipsis: true
@@ -15598,7 +15623,7 @@ var getColumns$6 = function getColumns(_ref) {
15598
15623
  };
15599
15624
  };
15600
15625
 
15601
- var getColumnsMap = function getColumnsMap(args) {
15626
+ var getColumnsMap$1 = function getColumnsMap(args) {
15602
15627
  var _ref = args || {},
15603
15628
  _ref$text = _ref.text,
15604
15629
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -15638,8 +15663,8 @@ var getColumnsMap = function getColumnsMap(args) {
15638
15663
  })['default']
15639
15664
  });
15640
15665
  };
15641
- var getColumnsBaseInfo = function getColumnsBaseInfo() {
15642
- var clone_columnsMap = cloneDeep(getColumnsMap());
15666
+ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
15667
+ var clone_columnsMap = cloneDeep(getColumnsMap$1());
15643
15668
  var newColumns = {};
15644
15669
  Object.keys(clone_columnsMap).forEach(function (key) {
15645
15670
  newColumns[key] = clone_columnsMap[key].map(function (col) {
@@ -15651,7 +15676,7 @@ var getColumnsBaseInfo = function getColumnsBaseInfo() {
15651
15676
  });
15652
15677
  return newColumns;
15653
15678
  };
15654
- var columnsBaseInfoMap = getColumnsBaseInfo();
15679
+ var columnsBaseInfoMap = getColumnsBaseInfo$1();
15655
15680
 
15656
15681
  var renderFieldMap$1 = {
15657
15682
  goodsNumber: function goodsNumber(_ref) {
@@ -15718,7 +15743,7 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
15718
15743
  var disabled = _ref4.disabled,
15719
15744
  updateHandle = _ref4.updateHandle,
15720
15745
  operate = _ref4.operate;
15721
- return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
15746
+ return getColumnsMap$1()['BS_E3_REISSUE_GOODS'].map(function (item) {
15722
15747
  var newItem = _objectSpread2({
15723
15748
  align: 'center',
15724
15749
  ellipsis: true
@@ -15977,7 +16002,7 @@ var GoodItem$1 = function GoodItem(props) {
15977
16002
  case 'GY_REISSUE_GOODS':
15978
16003
  case 'GY_RETURN_GOODS':
15979
16004
  {
15980
- columns = getColumnsMap({
16005
+ columns = getColumnsMap$1({
15981
16006
  text: text,
15982
16007
  disabled: disabled || columnsOptions.disabled,
15983
16008
  updateHandle: updateHandle,
@@ -16004,7 +16029,7 @@ var GoodItem$1 = function GoodItem(props) {
16004
16029
  }
16005
16030
  break;
16006
16031
  default:
16007
- columns = getColumnsMap({
16032
+ columns = getColumnsMap$1({
16008
16033
  text: text,
16009
16034
  disabled: disabled || columnsOptions.disabled,
16010
16035
  updateHandle: updateHandle,
@@ -17141,7 +17166,7 @@ var rowKeyMap = {
17141
17166
  GY_SYSTEM_ORDER: 'billNo',
17142
17167
  JST_SYSTEM_ORDER: 'oId'
17143
17168
  };
17144
- var index$2 = (function (props) {
17169
+ var index$3 = (function (props) {
17145
17170
  var value = props.value,
17146
17171
  _onChange = props.onChange,
17147
17172
  disabled = props.disabled,
@@ -19146,7 +19171,7 @@ var Goods$1 = function Goods(props, ref) {
19146
19171
  userNick: userNick
19147
19172
  }));
19148
19173
  };
19149
- var index$3 = /*#__PURE__*/forwardRef(Goods$1);
19174
+ var index$4 = /*#__PURE__*/forwardRef(Goods$1);
19150
19175
 
19151
19176
  var _excluded$k = ["onChange", "value", "failValue"];
19152
19177
  function CommonStatus(props) {
@@ -19407,7 +19432,7 @@ var MsgStatus = function MsgStatus(props) {
19407
19432
  onClick: function onClick() {
19408
19433
  return setChangeIndex(index);
19409
19434
  }
19410
- }, msgTypeCh[key], item.ruleName);
19435
+ }, msgTypeCh[key] || key, item.ruleName);
19411
19436
  }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
19412
19437
  showSearch: true,
19413
19438
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -20244,4 +20269,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
20244
20269
  })));
20245
20270
  };
20246
20271
 
20247
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$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, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
20272
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, index$2 as erpModalColumnsMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };