@kmkf-fe-packages/basic-components 2.1.0 → 2.1.1
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,384 +3,370 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, MinusCircleFilled, 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, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, 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, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, 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, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject, isEmpty, intersection } 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(
|
|
14
|
-
var
|
|
15
|
-
if (null !=
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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;
|
|
23
23
|
try {
|
|
24
|
-
if (
|
|
25
|
-
if (Object(
|
|
26
|
-
|
|
27
|
-
} else for (; !(
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
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;
|
|
30
30
|
} finally {
|
|
31
31
|
try {
|
|
32
|
-
if (!
|
|
32
|
+
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
33
33
|
} finally {
|
|
34
|
-
if (
|
|
34
|
+
if (_d) throw _e;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return _arr;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function ownKeys(
|
|
41
|
-
var
|
|
40
|
+
function ownKeys(object, enumerableOnly) {
|
|
41
|
+
var keys = Object.keys(object);
|
|
42
42
|
if (Object.getOwnPropertySymbols) {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
return Object.getOwnPropertyDescriptor(
|
|
46
|
-
})),
|
|
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);
|
|
47
47
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
function _objectSpread2(
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
_defineProperty(
|
|
55
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
56
|
-
Object.defineProperty(
|
|
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));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return target;
|
|
60
60
|
}
|
|
61
61
|
function _regeneratorRuntime() {
|
|
62
62
|
_regeneratorRuntime = function () {
|
|
63
|
-
return
|
|
63
|
+
return exports;
|
|
64
64
|
};
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
t[e] = r.value;
|
|
65
|
+
var exports = {},
|
|
66
|
+
Op = Object.prototype,
|
|
67
|
+
hasOwn = Op.hasOwnProperty,
|
|
68
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
69
|
+
obj[key] = desc.value;
|
|
71
70
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function define(
|
|
77
|
-
return Object.defineProperty(
|
|
78
|
-
value:
|
|
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,
|
|
79
78
|
enumerable: !0,
|
|
80
79
|
configurable: !0,
|
|
81
80
|
writable: !0
|
|
82
|
-
}),
|
|
81
|
+
}), obj[key];
|
|
83
82
|
}
|
|
84
83
|
try {
|
|
85
84
|
define({}, "");
|
|
86
|
-
} catch (
|
|
87
|
-
define = function (
|
|
88
|
-
return
|
|
85
|
+
} catch (err) {
|
|
86
|
+
define = function (obj, key, value) {
|
|
87
|
+
return obj[key] = value;
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
function wrap(
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return
|
|
96
|
-
value: makeInvokeMethod(
|
|
97
|
-
}),
|
|
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;
|
|
98
97
|
}
|
|
99
|
-
function tryCatch(
|
|
98
|
+
function tryCatch(fn, obj, arg) {
|
|
100
99
|
try {
|
|
101
100
|
return {
|
|
102
101
|
type: "normal",
|
|
103
|
-
arg:
|
|
102
|
+
arg: fn.call(obj, arg)
|
|
104
103
|
};
|
|
105
|
-
} catch (
|
|
104
|
+
} catch (err) {
|
|
106
105
|
return {
|
|
107
106
|
type: "throw",
|
|
108
|
-
arg:
|
|
107
|
+
arg: err
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
|
|
113
|
-
var
|
|
114
|
-
l = "suspendedYield",
|
|
115
|
-
f = "executing",
|
|
116
|
-
s = "completed",
|
|
117
|
-
y = {};
|
|
111
|
+
exports.wrap = wrap;
|
|
112
|
+
var ContinueSentinel = {};
|
|
118
113
|
function Generator() {}
|
|
119
114
|
function GeneratorFunction() {}
|
|
120
115
|
function GeneratorFunctionPrototype() {}
|
|
121
|
-
var
|
|
122
|
-
define(
|
|
116
|
+
var IteratorPrototype = {};
|
|
117
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
123
118
|
return this;
|
|
124
119
|
});
|
|
125
|
-
var
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
var
|
|
129
|
-
function defineIteratorMethods(
|
|
130
|
-
["next", "throw", "return"].forEach(function (
|
|
131
|
-
define(
|
|
132
|
-
return this._invoke(
|
|
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);
|
|
133
128
|
});
|
|
134
129
|
});
|
|
135
130
|
}
|
|
136
|
-
function AsyncIterator(
|
|
137
|
-
function invoke(
|
|
138
|
-
var
|
|
139
|
-
if ("throw" !==
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
return
|
|
143
|
-
invoke("next",
|
|
144
|
-
}, function (
|
|
145
|
-
invoke("throw",
|
|
146
|
-
}) :
|
|
147
|
-
|
|
148
|
-
}, function (
|
|
149
|
-
return invoke("throw",
|
|
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);
|
|
150
145
|
});
|
|
151
146
|
}
|
|
152
|
-
|
|
147
|
+
reject(record.arg);
|
|
153
148
|
}
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
value: function (
|
|
149
|
+
var previousPromise;
|
|
150
|
+
defineProperty(this, "_invoke", {
|
|
151
|
+
value: function (method, arg) {
|
|
157
152
|
function callInvokeWithMethodAndArg() {
|
|
158
|
-
return new
|
|
159
|
-
invoke(
|
|
153
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
154
|
+
invoke(method, arg, resolve, reject);
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
|
-
return
|
|
157
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
163
158
|
}
|
|
164
159
|
});
|
|
165
160
|
}
|
|
166
|
-
function makeInvokeMethod(
|
|
167
|
-
var
|
|
168
|
-
return function (
|
|
169
|
-
if (
|
|
170
|
-
if (
|
|
171
|
-
if ("throw" ===
|
|
172
|
-
return
|
|
173
|
-
value: t,
|
|
174
|
-
done: !0
|
|
175
|
-
};
|
|
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();
|
|
176
168
|
}
|
|
177
|
-
for (
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
180
|
-
var
|
|
181
|
-
if (
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
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;
|
|
184
176
|
}
|
|
185
177
|
}
|
|
186
|
-
if ("next" ===
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
} else "return" ===
|
|
190
|
-
|
|
191
|
-
var
|
|
192
|
-
if ("normal" ===
|
|
193
|
-
if (
|
|
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;
|
|
194
186
|
return {
|
|
195
|
-
value:
|
|
196
|
-
done:
|
|
187
|
+
value: record.arg,
|
|
188
|
+
done: context.done
|
|
197
189
|
};
|
|
198
190
|
}
|
|
199
|
-
"throw" ===
|
|
191
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
200
192
|
}
|
|
201
193
|
};
|
|
202
194
|
}
|
|
203
|
-
function maybeInvokeDelegate(
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
var
|
|
208
|
-
if ("throw" ===
|
|
209
|
-
var
|
|
210
|
-
return
|
|
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);
|
|
211
203
|
}
|
|
212
|
-
function pushTryEntry(
|
|
213
|
-
var
|
|
214
|
-
tryLoc:
|
|
204
|
+
function pushTryEntry(locs) {
|
|
205
|
+
var entry = {
|
|
206
|
+
tryLoc: locs[0]
|
|
215
207
|
};
|
|
216
|
-
1 in
|
|
208
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
217
209
|
}
|
|
218
|
-
function resetTryEntry(
|
|
219
|
-
var
|
|
220
|
-
|
|
210
|
+
function resetTryEntry(entry) {
|
|
211
|
+
var record = entry.completion || {};
|
|
212
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
221
213
|
}
|
|
222
|
-
function Context(
|
|
214
|
+
function Context(tryLocsList) {
|
|
223
215
|
this.tryEntries = [{
|
|
224
216
|
tryLoc: "root"
|
|
225
|
-
}],
|
|
217
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
226
218
|
}
|
|
227
|
-
function values(
|
|
228
|
-
if (
|
|
229
|
-
var
|
|
230
|
-
if (
|
|
231
|
-
if ("function" == typeof
|
|
232
|
-
if (!isNaN(
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
for (; ++
|
|
236
|
-
return next.value =
|
|
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;
|
|
237
229
|
};
|
|
238
|
-
return
|
|
230
|
+
return next.next = next;
|
|
239
231
|
}
|
|
240
232
|
}
|
|
241
|
-
|
|
233
|
+
return {
|
|
234
|
+
next: doneResult
|
|
235
|
+
};
|
|
242
236
|
}
|
|
243
|
-
|
|
237
|
+
function doneResult() {
|
|
238
|
+
return {
|
|
239
|
+
value: undefined,
|
|
240
|
+
done: !0
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
244
244
|
value: GeneratorFunctionPrototype,
|
|
245
245
|
configurable: !0
|
|
246
|
-
}),
|
|
246
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
247
247
|
value: GeneratorFunction,
|
|
248
248
|
configurable: !0
|
|
249
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
250
|
-
var
|
|
251
|
-
return !!
|
|
252
|
-
},
|
|
253
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
254
|
-
},
|
|
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) {
|
|
255
255
|
return {
|
|
256
|
-
__await:
|
|
256
|
+
__await: arg
|
|
257
257
|
};
|
|
258
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
258
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
259
259
|
return this;
|
|
260
|
-
}),
|
|
261
|
-
void 0 ===
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
return
|
|
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();
|
|
265
265
|
});
|
|
266
|
-
}, defineIteratorMethods(
|
|
266
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
267
267
|
return this;
|
|
268
|
-
}), define(
|
|
268
|
+
}), define(Gp, "toString", function () {
|
|
269
269
|
return "[object Generator]";
|
|
270
|
-
}),
|
|
271
|
-
var
|
|
272
|
-
|
|
273
|
-
for (var
|
|
274
|
-
return
|
|
275
|
-
for (;
|
|
276
|
-
var
|
|
277
|
-
if (
|
|
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;
|
|
278
278
|
}
|
|
279
279
|
return next.done = !0, next;
|
|
280
280
|
};
|
|
281
|
-
},
|
|
281
|
+
}, exports.values = values, Context.prototype = {
|
|
282
282
|
constructor: Context,
|
|
283
|
-
reset: function (
|
|
284
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
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);
|
|
285
285
|
},
|
|
286
286
|
stop: function () {
|
|
287
287
|
this.done = !0;
|
|
288
|
-
var
|
|
289
|
-
if ("throw" ===
|
|
288
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
289
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
290
290
|
return this.rval;
|
|
291
291
|
},
|
|
292
|
-
dispatchException: function (
|
|
293
|
-
if (this.done) throw
|
|
294
|
-
var
|
|
295
|
-
function handle(
|
|
296
|
-
return
|
|
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;
|
|
297
297
|
}
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
if ("root" ===
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (this.prev <
|
|
307
|
-
if (this.prev <
|
|
308
|
-
} else if (
|
|
309
|
-
if (this.prev <
|
|
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);
|
|
310
310
|
} else {
|
|
311
|
-
if (!
|
|
312
|
-
if (this.prev <
|
|
311
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
312
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
abrupt: function (
|
|
318
|
-
for (var
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
var
|
|
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;
|
|
322
322
|
break;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
var
|
|
327
|
-
return
|
|
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);
|
|
328
328
|
},
|
|
329
|
-
complete: function (
|
|
330
|
-
if ("throw" ===
|
|
331
|
-
return "break" ===
|
|
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;
|
|
332
332
|
},
|
|
333
|
-
finish: function (
|
|
334
|
-
for (var
|
|
335
|
-
var
|
|
336
|
-
if (
|
|
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;
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
|
-
catch: function (
|
|
340
|
-
for (var
|
|
341
|
-
var
|
|
342
|
-
if (
|
|
343
|
-
var
|
|
344
|
-
if ("throw" ===
|
|
345
|
-
var
|
|
346
|
-
resetTryEntry(
|
|
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);
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return thrown;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
throw new Error("illegal catch attempt");
|
|
352
352
|
},
|
|
353
|
-
delegateYield: function (
|
|
353
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
354
354
|
return this.delegate = {
|
|
355
|
-
iterator: values(
|
|
356
|
-
resultName:
|
|
357
|
-
nextLoc:
|
|
358
|
-
}, "next" === this.method && (this.arg =
|
|
359
|
-
}
|
|
360
|
-
},
|
|
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);
|
|
355
|
+
iterator: values(iterable),
|
|
356
|
+
resultName: resultName,
|
|
357
|
+
nextLoc: nextLoc
|
|
358
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
359
|
+
}
|
|
360
|
+
}, exports;
|
|
375
361
|
}
|
|
376
|
-
function _typeof(
|
|
362
|
+
function _typeof(obj) {
|
|
377
363
|
"@babel/helpers - typeof";
|
|
378
364
|
|
|
379
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
380
|
-
return typeof
|
|
381
|
-
} : function (
|
|
382
|
-
return
|
|
383
|
-
}, _typeof(
|
|
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);
|
|
384
370
|
}
|
|
385
371
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
386
372
|
try {
|
|
@@ -538,6 +524,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
538
524
|
}
|
|
539
525
|
};
|
|
540
526
|
}
|
|
527
|
+
function _toPrimitive(input, hint) {
|
|
528
|
+
if (typeof input !== "object" || input === null) return input;
|
|
529
|
+
var prim = input[Symbol.toPrimitive];
|
|
530
|
+
if (prim !== undefined) {
|
|
531
|
+
var res = prim.call(input, hint || "default");
|
|
532
|
+
if (typeof res !== "object") return res;
|
|
533
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
534
|
+
}
|
|
535
|
+
return (hint === "string" ? String : Number)(input);
|
|
536
|
+
}
|
|
537
|
+
function _toPropertyKey(arg) {
|
|
538
|
+
var key = _toPrimitive(arg, "string");
|
|
539
|
+
return typeof key === "symbol" ? key : String(key);
|
|
540
|
+
}
|
|
541
541
|
|
|
542
542
|
function ApaasCascader(props) {
|
|
543
543
|
return /*#__PURE__*/React.createElement(Cascader, _objectSpread2({
|
|
@@ -17003,6 +17003,14 @@ var GoodsModalMap = {
|
|
|
17003
17003
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
17004
17004
|
OTHER_GOODS: GoodsModal$2
|
|
17005
17005
|
};
|
|
17006
|
+
var systemOrderNoMap = {
|
|
17007
|
+
GY_GOODS: 'code',
|
|
17008
|
+
KM_GOODS: 'sid',
|
|
17009
|
+
WDT_GOODS: 'tradeNo',
|
|
17010
|
+
BS_E3_GOODS: 'orderSn',
|
|
17011
|
+
JST_GOODS: 'oId',
|
|
17012
|
+
WLN_GOODS: 'tradeNo'
|
|
17013
|
+
};
|
|
17006
17014
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
17007
17015
|
var columns = _ref.columns,
|
|
17008
17016
|
dataSource = _ref.dataSource,
|
|
@@ -17010,35 +17018,60 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
17010
17018
|
selectedRowKeys = _ref.selectedRowKeys,
|
|
17011
17019
|
onChangeSelectedKeys = _ref.onChangeSelectedKeys,
|
|
17012
17020
|
_ref$uniqueKey = _ref.uniqueKey,
|
|
17013
|
-
uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey
|
|
17014
|
-
|
|
17021
|
+
uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey,
|
|
17022
|
+
_ref$isGoods = _ref.isGoods,
|
|
17023
|
+
isGoods = _ref$isGoods === void 0 ? false : _ref$isGoods,
|
|
17024
|
+
_ref$systemOrders = _ref.systemOrders,
|
|
17025
|
+
systemOrders = _ref$systemOrders === void 0 ? [] : _ref$systemOrders,
|
|
17026
|
+
_ref$selectedSystemOr = _ref.selectedSystemOrders,
|
|
17027
|
+
_ref$type = _ref.type,
|
|
17028
|
+
type = _ref$type === void 0 ? '' : _ref$type,
|
|
17029
|
+
width = _ref.width;
|
|
17030
|
+
var _useState = useState(),
|
|
17015
17031
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17016
|
-
|
|
17017
|
-
|
|
17032
|
+
selectSystemNo = _useState2[0],
|
|
17033
|
+
setSelectSystemNo = _useState2[1];
|
|
17034
|
+
var _useState3 = useState(false),
|
|
17035
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
17036
|
+
tradeGoodsVisible = _useState4[0],
|
|
17037
|
+
setTradeGoodsVisible = _useState4[1];
|
|
17018
17038
|
var openModal = function openModal() {
|
|
17019
|
-
if (getDataSourceAsync) {
|
|
17039
|
+
if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
|
|
17020
17040
|
getDataSourceAsync().then(function () {
|
|
17021
17041
|
setTradeGoodsVisible(true);
|
|
17022
17042
|
});
|
|
17023
17043
|
} else {
|
|
17024
17044
|
setTradeGoodsVisible(true);
|
|
17025
17045
|
}
|
|
17046
|
+
// 暂时先去掉带入系统自订单组件所选值作为默认筛选项
|
|
17047
|
+
// if (isGoods) {
|
|
17048
|
+
// const codeList: string[] = selectedSystemOrders?.map(
|
|
17049
|
+
// (item) => item?.[systemOrderNoMap?.[type]],
|
|
17050
|
+
// );
|
|
17051
|
+
// setSelectSystemNo(codeList || []);
|
|
17052
|
+
// }
|
|
17026
17053
|
};
|
|
17054
|
+
|
|
17027
17055
|
var closeModal = function closeModal() {
|
|
17028
17056
|
return setTradeGoodsVisible(false);
|
|
17029
17057
|
};
|
|
17030
|
-
var
|
|
17058
|
+
var filterDataSource = useMemo(function () {
|
|
17059
|
+
return (selectSystemNo === null || selectSystemNo === void 0 ? void 0 : selectSystemNo.length) ? dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
17060
|
+
return selectSystemNo === null || selectSystemNo === void 0 ? void 0 : selectSystemNo.includes(item.systemOrderNo);
|
|
17061
|
+
}) : dataSource;
|
|
17062
|
+
}, [dataSource, selectSystemNo]);
|
|
17063
|
+
var currentTradeOriginGoods = intersection(filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
17031
17064
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
17032
17065
|
}), selectedRowKeys);
|
|
17033
|
-
var unCurrentTradeOriginGoods = difference(selectedRowKeys,
|
|
17066
|
+
var unCurrentTradeOriginGoods = difference(selectedRowKeys, filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.map(function (item) {
|
|
17034
17067
|
return item === null || item === void 0 ? void 0 : item[uniqueKey];
|
|
17035
17068
|
}));
|
|
17036
17069
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
17037
|
-
// console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
17038
17070
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
17039
17071
|
};
|
|
17040
17072
|
var rowSelection = {
|
|
17041
17073
|
selectedRowKeys: selectedRowKeys,
|
|
17074
|
+
fixed: true,
|
|
17042
17075
|
onChange: handleChangeSelectedKeys
|
|
17043
17076
|
};
|
|
17044
17077
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -17048,18 +17081,44 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
17048
17081
|
title: "\u8BA2\u5355\u5546\u54C1",
|
|
17049
17082
|
visible: tradeGoodsVisible,
|
|
17050
17083
|
footer: null,
|
|
17051
|
-
onCancel: closeModal
|
|
17052
|
-
|
|
17084
|
+
onCancel: closeModal,
|
|
17085
|
+
width: width || 850,
|
|
17086
|
+
style: {
|
|
17087
|
+
maxWidth: '1000px'
|
|
17088
|
+
}
|
|
17089
|
+
}, isGoods && /*#__PURE__*/React.createElement(Row, {
|
|
17090
|
+
style: {
|
|
17091
|
+
marginBottom: '20px'
|
|
17092
|
+
}
|
|
17093
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17094
|
+
span: 12
|
|
17095
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
17096
|
+
placeholder: "\u7B5B\u9009\u7CFB\u7EDF\u8BA2\u5355\u5546\u54C1",
|
|
17097
|
+
style: {
|
|
17098
|
+
width: '100%'
|
|
17099
|
+
},
|
|
17100
|
+
mode: "multiple",
|
|
17101
|
+
value: selectSystemNo,
|
|
17102
|
+
onChange: function onChange(val) {
|
|
17103
|
+
return setSelectSystemNo(val);
|
|
17104
|
+
},
|
|
17105
|
+
options: systemOrders === null || systemOrders === void 0 ? void 0 : systemOrders.map(function (item) {
|
|
17106
|
+
return {
|
|
17107
|
+
label: item === null || item === void 0 ? void 0 : item[systemOrderNoMap === null || systemOrderNoMap === void 0 ? void 0 : systemOrderNoMap[type]],
|
|
17108
|
+
value: item === null || item === void 0 ? void 0 : item[systemOrderNoMap === null || systemOrderNoMap === void 0 ? void 0 : systemOrderNoMap[type]]
|
|
17109
|
+
};
|
|
17110
|
+
})
|
|
17111
|
+
}))), /*#__PURE__*/React.createElement(Table, {
|
|
17053
17112
|
rowKey: uniqueKey,
|
|
17054
17113
|
rowSelection: rowSelection,
|
|
17055
17114
|
columns: columns,
|
|
17056
|
-
dataSource:
|
|
17115
|
+
dataSource: filterDataSource,
|
|
17057
17116
|
pagination: false,
|
|
17058
17117
|
scroll: {
|
|
17059
17118
|
x: 500,
|
|
17060
17119
|
y: 500
|
|
17061
17120
|
}
|
|
17062
|
-
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/",
|
|
17121
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
17063
17122
|
};
|
|
17064
17123
|
var getButtonText = function getButtonText() {
|
|
17065
17124
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -17069,7 +17128,7 @@ var getButtonText = function getButtonText() {
|
|
|
17069
17128
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
17070
17129
|
return '选择百胜ERP商品';
|
|
17071
17130
|
}
|
|
17072
|
-
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
17131
|
+
if (['WDT_GOODS', 'WDT_REISSUE_GOODS'].includes(type)) {
|
|
17073
17132
|
return '选择旺店通商品';
|
|
17074
17133
|
}
|
|
17075
17134
|
if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
@@ -17120,11 +17179,15 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17120
17179
|
onDelete = props.onDelete,
|
|
17121
17180
|
onModeChange = props.onModeChange,
|
|
17122
17181
|
tradeGoods = props.tradeGoods,
|
|
17123
|
-
form = props.form
|
|
17182
|
+
form = props.form,
|
|
17183
|
+
systemOrders = props.systemOrders,
|
|
17184
|
+
selectedSystemOrders = props.selectedSystemOrders;
|
|
17124
17185
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
17125
17186
|
// 监听聚水潭退货商品
|
|
17126
17187
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
17127
17188
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
17189
|
+
// 判断是否为商品信息组件
|
|
17190
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS'].includes(type) || false;
|
|
17128
17191
|
var refModal = useRef();
|
|
17129
17192
|
console.debug('表格数据', value);
|
|
17130
17193
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -17134,14 +17197,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17134
17197
|
});
|
|
17135
17198
|
onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(newList));
|
|
17136
17199
|
};
|
|
17137
|
-
var
|
|
17138
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
17139
|
-
selectedRowKeys = _useState4[0],
|
|
17140
|
-
setSelectedRowKeys = _useState4[1];
|
|
17141
|
-
var _useState5 = useState(null),
|
|
17200
|
+
var _useState5 = useState([]),
|
|
17142
17201
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
17143
|
-
|
|
17144
|
-
|
|
17202
|
+
selectedRowKeys = _useState6[0],
|
|
17203
|
+
setSelectedRowKeys = _useState6[1];
|
|
17204
|
+
var _useState7 = useState(null),
|
|
17205
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
17206
|
+
hoveredRowIndex = _useState8[0],
|
|
17207
|
+
setHoveredRowIndex = _useState8[1];
|
|
17145
17208
|
useEffect(function () {
|
|
17146
17209
|
setSelectedRowKeys([]);
|
|
17147
17210
|
}, [tableSelect, selectType]);
|
|
@@ -17311,6 +17374,21 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17311
17374
|
}
|
|
17312
17375
|
return columnList;
|
|
17313
17376
|
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
17377
|
+
var orderModalColumns = useMemo(function () {
|
|
17378
|
+
var list = newColumns.filter(function (col) {
|
|
17379
|
+
return !['操作', '序号'].includes(col.title);
|
|
17380
|
+
});
|
|
17381
|
+
return [{
|
|
17382
|
+
dataIndex: '',
|
|
17383
|
+
title: '序号',
|
|
17384
|
+
align: 'center',
|
|
17385
|
+
ellipsis: true,
|
|
17386
|
+
width: 80,
|
|
17387
|
+
render: function render(val, record, index) {
|
|
17388
|
+
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
17389
|
+
}
|
|
17390
|
+
}].concat(_toConsumableArray(list));
|
|
17391
|
+
}, [newColumns]);
|
|
17314
17392
|
var orderColumns = useMemo(function () {
|
|
17315
17393
|
var columns = COLUMNS_MAP('', {
|
|
17316
17394
|
operate: false,
|
|
@@ -17370,12 +17448,17 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
17370
17448
|
checked: isStrict,
|
|
17371
17449
|
onChange: handleCheckboxChange
|
|
17372
17450
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
17451
|
+
isGoods: isGoods,
|
|
17373
17452
|
uniqueKey: uniqueKey,
|
|
17374
|
-
|
|
17453
|
+
type: type,
|
|
17454
|
+
columns: orderModalColumns,
|
|
17375
17455
|
dataSource: tradeGoods.originDataSource,
|
|
17376
17456
|
getDataSourceAsync: tradeGoods.getDataSourceAsync,
|
|
17377
17457
|
selectedRowKeys: selectedGoods,
|
|
17378
|
-
onChangeSelectedKeys: tradeGoods.selectedGoodsChange
|
|
17458
|
+
onChangeSelectedKeys: tradeGoods.selectedGoodsChange,
|
|
17459
|
+
systemOrders: systemOrders,
|
|
17460
|
+
selectedSystemOrders: selectedSystemOrders,
|
|
17461
|
+
width: width || 850
|
|
17379
17462
|
}), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
|
|
17380
17463
|
type: "link",
|
|
17381
17464
|
onClick: handleChangeGoods
|
|
@@ -18226,7 +18309,7 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
18226
18309
|
extendRequest('/qy/gdfw/order/wlnOrderList', {
|
|
18227
18310
|
method: 'post',
|
|
18228
18311
|
data: {
|
|
18229
|
-
|
|
18312
|
+
billCode: orderNo
|
|
18230
18313
|
}
|
|
18231
18314
|
}).then(function (data) {
|
|
18232
18315
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
@@ -18658,6 +18741,85 @@ var index$3 = (function (props) {
|
|
|
18658
18741
|
}));
|
|
18659
18742
|
});
|
|
18660
18743
|
|
|
18744
|
+
var isErpType$1 = {
|
|
18745
|
+
isWdt: function isWdt(type) {
|
|
18746
|
+
return ['WDT_GOODS'].includes(type);
|
|
18747
|
+
},
|
|
18748
|
+
isBsE3: function isBsE3(type) {
|
|
18749
|
+
return ['BS_E3_GOODS'].includes(type);
|
|
18750
|
+
},
|
|
18751
|
+
isGy: function isGy(type) {
|
|
18752
|
+
return ['GY_GOODS'].includes(type);
|
|
18753
|
+
},
|
|
18754
|
+
isWln: function isWln(type) {
|
|
18755
|
+
return ['WLN_GOODS'].includes(type);
|
|
18756
|
+
}
|
|
18757
|
+
};
|
|
18758
|
+
var processAllOrders = function processAllOrders(_ref) {
|
|
18759
|
+
var data = _ref.data,
|
|
18760
|
+
orderNo = _ref.orderNo,
|
|
18761
|
+
type = _ref.type;
|
|
18762
|
+
var newList = [];
|
|
18763
|
+
// 根据商品类型处理数据
|
|
18764
|
+
if (isErpType$1.isWdt(type)) {
|
|
18765
|
+
newList = processWdtOrders({
|
|
18766
|
+
data: data,
|
|
18767
|
+
orderNo: orderNo
|
|
18768
|
+
});
|
|
18769
|
+
} else if (isErpType$1.isBsE3(type)) {
|
|
18770
|
+
newList = processBsE3Orders({
|
|
18771
|
+
data: data,
|
|
18772
|
+
orderNo: orderNo
|
|
18773
|
+
});
|
|
18774
|
+
} else if (isErpType$1.isGy(type)) {
|
|
18775
|
+
newList = processGyOrders({
|
|
18776
|
+
data: data,
|
|
18777
|
+
orderNo: orderNo
|
|
18778
|
+
});
|
|
18779
|
+
} else if (isErpType$1.isWln(type)) {
|
|
18780
|
+
newList = processWlnOrders({
|
|
18781
|
+
data: data
|
|
18782
|
+
});
|
|
18783
|
+
} else {
|
|
18784
|
+
newList = processDefaultOrders({
|
|
18785
|
+
data: data
|
|
18786
|
+
});
|
|
18787
|
+
}
|
|
18788
|
+
return newList;
|
|
18789
|
+
};
|
|
18790
|
+
var processWdtOrders = function processWdtOrders(_ref2) {
|
|
18791
|
+
var data = _ref2.data,
|
|
18792
|
+
orderNo = _ref2.orderNo;
|
|
18793
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
18794
|
+
return (item.srcTid || '').split(',').includes(orderNo);
|
|
18795
|
+
});
|
|
18796
|
+
return trades;
|
|
18797
|
+
};
|
|
18798
|
+
var processBsE3Orders = function processBsE3Orders(_ref3) {
|
|
18799
|
+
var data = _ref3.data,
|
|
18800
|
+
orderNo = _ref3.orderNo;
|
|
18801
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.orderList) || []).filter(function (item) {
|
|
18802
|
+
return (item === null || item === void 0 ? void 0 : item.dealCode) === orderNo;
|
|
18803
|
+
});
|
|
18804
|
+
return trades;
|
|
18805
|
+
};
|
|
18806
|
+
var processGyOrders = function processGyOrders(_ref4) {
|
|
18807
|
+
var data = _ref4.data,
|
|
18808
|
+
orderNo = _ref4.orderNo;
|
|
18809
|
+
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
18810
|
+
return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
|
|
18811
|
+
});
|
|
18812
|
+
return trades;
|
|
18813
|
+
};
|
|
18814
|
+
var processWlnOrders = function processWlnOrders(_ref5) {
|
|
18815
|
+
var data = _ref5.data;
|
|
18816
|
+
return (data === null || data === void 0 ? void 0 : data.orders) || [];
|
|
18817
|
+
};
|
|
18818
|
+
var processDefaultOrders = function processDefaultOrders(_ref6) {
|
|
18819
|
+
var data = _ref6.data;
|
|
18820
|
+
return data || [];
|
|
18821
|
+
};
|
|
18822
|
+
|
|
18661
18823
|
var WlnGoods = function WlnGoods(props) {
|
|
18662
18824
|
var value = props.value,
|
|
18663
18825
|
disabled = props.disabled,
|
|
@@ -18667,15 +18829,53 @@ var WlnGoods = function WlnGoods(props) {
|
|
|
18667
18829
|
wlnGoods: list
|
|
18668
18830
|
}));
|
|
18669
18831
|
};
|
|
18832
|
+
// 找到该订单号下所有商品
|
|
18833
|
+
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
18834
|
+
var goodDetails = updateWlnGoodsHandle((value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
18835
|
+
return goodDetails;
|
|
18836
|
+
};
|
|
18837
|
+
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
18838
|
+
var getDataSourceAsync = function getDataSourceAsync() {
|
|
18839
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? wlnUtils === null || wlnUtils === void 0 ? void 0 : wlnUtils.getOrderListSingleton(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
18840
|
+
var list = processAllOrders({
|
|
18841
|
+
data: data,
|
|
18842
|
+
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
18843
|
+
type: 'WLN_GOODS'
|
|
18844
|
+
});
|
|
18845
|
+
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
18846
|
+
allOrders: list || []
|
|
18847
|
+
}));
|
|
18848
|
+
}) : Promise.resolve();
|
|
18849
|
+
};
|
|
18850
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
18851
|
+
var _uniqBy;
|
|
18852
|
+
var newValue = _objectSpread2({}, value);
|
|
18853
|
+
// 原订单商品
|
|
18854
|
+
var originTradeGoodList = getAllTradeGoodsDetails() || [];
|
|
18855
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
18856
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value.wlnGoods) || [];
|
|
18857
|
+
newValue['wlnGoods'] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
18858
|
+
return skuList.includes(item.uuid);
|
|
18859
|
+
});
|
|
18860
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
18861
|
+
}, [value === null || value === void 0 ? void 0 : value.wlnGoods]);
|
|
18670
18862
|
return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
18671
18863
|
key: 'wlnGoods'
|
|
18672
18864
|
}, props), {}, {
|
|
18673
18865
|
disabled: disabled,
|
|
18674
18866
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
18675
18867
|
value: value === null || value === void 0 ? void 0 : value.wlnGoods,
|
|
18676
|
-
showChangeBtn:
|
|
18868
|
+
showChangeBtn: true,
|
|
18869
|
+
showErpGoodsBtn: false,
|
|
18677
18870
|
onChange: function onChange(val) {
|
|
18678
18871
|
return changeHandle(val);
|
|
18872
|
+
},
|
|
18873
|
+
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
18874
|
+
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
18875
|
+
tradeGoods: {
|
|
18876
|
+
originDataSource: getAllTradeGoodsDetails(),
|
|
18877
|
+
selectedGoodsChange: selectedGoodsChange,
|
|
18878
|
+
getDataSourceAsync: getDataSourceAsync
|
|
18679
18879
|
}
|
|
18680
18880
|
}));
|
|
18681
18881
|
};
|
|
@@ -18704,7 +18904,8 @@ var componentMap$1 = {
|
|
|
18704
18904
|
deleteGood: 'wdtDeleteGood',
|
|
18705
18905
|
returnDeleteGood: 'wdtReturnDeleteGood',
|
|
18706
18906
|
exchangeDeleteGood: 'wdtExchangeDeleteGood'
|
|
18707
|
-
}
|
|
18907
|
+
},
|
|
18908
|
+
getOrderList: wdtUtils.getWdtOrderListSingleton
|
|
18708
18909
|
},
|
|
18709
18910
|
BS_E3_GOODS: {
|
|
18710
18911
|
type: 'e3',
|
|
@@ -18729,7 +18930,8 @@ var componentMap$1 = {
|
|
|
18729
18930
|
deleteGood: 'bsE3DeleteGood',
|
|
18730
18931
|
returnDeleteGood: 'bsE3ReturnDeleteGood',
|
|
18731
18932
|
exchangeDeleteGood: 'bsE3ExchangeDeleteGood'
|
|
18732
|
-
}
|
|
18933
|
+
},
|
|
18934
|
+
getOrderList: bsE3Utils.getBsE3OrderListSingleton
|
|
18733
18935
|
},
|
|
18734
18936
|
GY_GOODS: {
|
|
18735
18937
|
type: 'gy',
|
|
@@ -18754,7 +18956,8 @@ var componentMap$1 = {
|
|
|
18754
18956
|
deleteGood: 'gyDeleteGood',
|
|
18755
18957
|
returnDeleteGood: 'gyReturnDeleteGood',
|
|
18756
18958
|
exchangeDeleteGood: 'gyExchangeDeleteGood'
|
|
18757
|
-
}
|
|
18959
|
+
},
|
|
18960
|
+
getOrderList: gyUtils.getGyOrderListSingleton
|
|
18758
18961
|
},
|
|
18759
18962
|
JST_GOODS: {
|
|
18760
18963
|
type: 'jst',
|
|
@@ -18779,7 +18982,8 @@ var componentMap$1 = {
|
|
|
18779
18982
|
deleteGood: 'jstDeleteGood',
|
|
18780
18983
|
returnDeleteGood: 'jstReturnDeleteGood',
|
|
18781
18984
|
exchangeDeleteGood: 'jstExchangeDeleteGood'
|
|
18782
|
-
}
|
|
18985
|
+
},
|
|
18986
|
+
getOrderList: jstUtils.getJstOrderListSingleton
|
|
18783
18987
|
},
|
|
18784
18988
|
KM_GOODS: {
|
|
18785
18989
|
type: 'km',
|
|
@@ -18804,11 +19008,12 @@ var componentMap$1 = {
|
|
|
18804
19008
|
deleteGood: 'kmDeleteGood',
|
|
18805
19009
|
returnDeleteGood: 'kmReturnDeleteGood',
|
|
18806
19010
|
exchangeDeleteGood: 'kmExchangeDeleteGood'
|
|
18807
|
-
}
|
|
19011
|
+
},
|
|
19012
|
+
getOrderList: kmUtils.getOrderListSingleton
|
|
18808
19013
|
}
|
|
18809
19014
|
};
|
|
18810
19015
|
var CommonGoods = function CommonGoods(props) {
|
|
18811
|
-
var _withInfo$current3, _withInfo$current4;
|
|
19016
|
+
var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
|
|
18812
19017
|
var value = props.value,
|
|
18813
19018
|
disabled = props.disabled,
|
|
18814
19019
|
onChange = props.onChange,
|
|
@@ -18910,7 +19115,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
18910
19115
|
});
|
|
18911
19116
|
}
|
|
18912
19117
|
}), pubsub.subscribeOnce(componentMap$1[compType].eventNameMap.changeShopCode, function (type, data) {
|
|
18913
|
-
// console.log(data);
|
|
18914
19118
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
|
|
18915
19119
|
shopCode: data.shopCode
|
|
18916
19120
|
}));
|
|
@@ -18966,15 +19170,58 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
18966
19170
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
18967
19171
|
var mode = _ref2.mode;
|
|
18968
19172
|
var updateHandle = componentMap$1[compType].eventNameMap['updateGoodsHandle'];
|
|
18969
|
-
var goodDetails = updateHandle(value.orders || [], {
|
|
19173
|
+
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
|
|
18970
19174
|
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
18971
19175
|
});
|
|
18972
|
-
var orderNo = value.orderNo;
|
|
19176
|
+
var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
|
|
18973
19177
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
18974
19178
|
var _componentMap$compTyp;
|
|
18975
19179
|
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp = componentMap$1[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.goodDetailOrderNo]) === orderNo;
|
|
18976
19180
|
}) : goodDetails;
|
|
18977
19181
|
};
|
|
19182
|
+
// 找到该订单号下所有商品
|
|
19183
|
+
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails(_ref3) {
|
|
19184
|
+
var mode = _ref3.mode;
|
|
19185
|
+
var updateHandle = componentMap$1[compType].eventNameMap['updateGoodsHandle'];
|
|
19186
|
+
console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
|
|
19187
|
+
var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
|
|
19188
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
19189
|
+
});
|
|
19190
|
+
var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
|
|
19191
|
+
return mode ? goodDetails.filter(function (goodItem) {
|
|
19192
|
+
var _componentMap$compTyp2;
|
|
19193
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$1[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
|
|
19194
|
+
}) : goodDetails;
|
|
19195
|
+
};
|
|
19196
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
19197
|
+
var _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
|
|
19198
|
+
var newValue = _objectSpread2({}, value);
|
|
19199
|
+
var isStrict = value.isStrict;
|
|
19200
|
+
// 原订单商品
|
|
19201
|
+
var originTradeGoodList = getAllTradeGoodsDetails({
|
|
19202
|
+
mode: isStrict
|
|
19203
|
+
}) || [];
|
|
19204
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
19205
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(componentMap$1 === null || componentMap$1 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$1[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.key)]) || [];
|
|
19206
|
+
newValue["".concat(componentMap$1 === null || componentMap$1 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$1[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
19207
|
+
return skuList.includes(item.uuid);
|
|
19208
|
+
});
|
|
19209
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
19210
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(componentMap$1 === null || componentMap$1 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$1[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)], value === null || value === void 0 ? void 0 : value.isStrict]);
|
|
19211
|
+
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
19212
|
+
var getDataSourceAsync = function getDataSourceAsync() {
|
|
19213
|
+
var _componentMap$compTyp6;
|
|
19214
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$1[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
19215
|
+
var list = processAllOrders({
|
|
19216
|
+
data: data,
|
|
19217
|
+
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
19218
|
+
type: compType
|
|
19219
|
+
});
|
|
19220
|
+
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
19221
|
+
allOrders: list || []
|
|
19222
|
+
}));
|
|
19223
|
+
}) : Promise.resolve();
|
|
19224
|
+
};
|
|
18978
19225
|
return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
18979
19226
|
key: componentMap$1[compType].key
|
|
18980
19227
|
}, props), {}, {
|
|
@@ -18994,7 +19241,16 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
18994
19241
|
},
|
|
18995
19242
|
onModeChange: handleModeChange,
|
|
18996
19243
|
showModeBtn: showModeBtn,
|
|
18997
|
-
isStrict: value === null || value === void 0 ? void 0 : value.isStrict
|
|
19244
|
+
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
19245
|
+
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
19246
|
+
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
19247
|
+
tradeGoods: {
|
|
19248
|
+
originDataSource: getAllTradeGoodsDetails({
|
|
19249
|
+
mode: value === null || value === void 0 ? void 0 : value.isStrict
|
|
19250
|
+
}),
|
|
19251
|
+
getDataSourceAsync: getDataSourceAsync,
|
|
19252
|
+
selectedGoodsChange: selectedGoodsChange
|
|
19253
|
+
}
|
|
18998
19254
|
}));
|
|
18999
19255
|
};
|
|
19000
19256
|
|
|
@@ -21209,6 +21465,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
21209
21465
|
sysOrderNo: val
|
|
21210
21466
|
});
|
|
21211
21467
|
}
|
|
21468
|
+
valueRef.current = newValue;
|
|
21212
21469
|
pushGyLog('afterChangeSystemOrder', newValue);
|
|
21213
21470
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
21214
21471
|
};
|